threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nSharedRecoveryState member of XLogCtl is no longer a boolean flag, got changes\nin 4e87c4836ab9 to enum but, comment referring to it still referred as the\nboolean flag which is pretty confusing and incorrect.\n\nAlso, the last part of the same comment is as:\n\n\" .. although the bool...
[ { "msg_contents": "Hi Hackers.\n\nAs discovered in another thread [master] there is an *existing* bug in\nthe PG HEAD code which can happen if a DROP TABLE is done at same time\na replication tablesync worker is running.\n\nIt seems the table's relid that the sync worker is using gets ripped\nout from underneat...
[ { "msg_contents": "Hi,\n\nWhile playing with COPY FROM refactorings in another thread, I noticed \ncorner case where I think backslash escaping doesn't work correctly. \nConsider the following input:\n\n\\么.foo\n\nI hope that came through in this email correctly as UTF-8. The string \ncontains a sequence of: ba...
[ { "msg_contents": "Something that came out of work on pg_dump recently. I added const \ndecorations to the *info arguments of the dump* functions, to clarify \nthat they don't modify that argument. Many other nearby functions \nmodify their arguments, so this can help clarify these different APIs a bit.", ...
[ { "msg_contents": "Hi,\n\nHas anybody seen this:\n\n$ psql regression\nTiming is on.\npsql (14devel)\nType \"help\" for help.\n\nregression=# set force_parallel_mode to on;\nSET\nTime: 0.888 ms\nregression=# set jit to on;\nSET\nTime: 0.487 ms\nregression=# set jit_above_cost to 1;\nSET\nTime: 0.476 ms\nregress...
[ { "msg_contents": "Hi,\n\nThe server still supports the old protocol version 2. Protocol version 3 \nwas introduced in PostgreSQL 7.4, so there shouldn't be many clients \naround anymore that don't support it.\n\nCOPY FROM STDIN is particularly problematic with the old protocol, \nbecause the end-of-copy can on...
[ { "msg_contents": "Cluster file encryption plans to use the LSN and page number as the\nnonce for heap/index pages. I am looking into the use of a unique nonce\nduring hint bit changes. (You need to use a new nonce for re-encrypting\na page that changes.)\n\nlog_hint_bits already gives us a unique nonce for t...
[ { "msg_contents": "Hackers,\n\nThe following errhint in pg_read_file() makes little sense:\n\n errhint(\"Consider using %s, which is part of core, instead.\",\n \"pg_file_read()\")));\n\nGrep'ing through master, there is almost nothing named pg_file_read, and what does ex...
[ { "msg_contents": "Hi,\n\nSecond paragraph of this comment (procarray.c:1604) says:\n* See the definition of ComputedXidHorizonsResult for the various computed\n\nIt should say ComputeXidHorizonsResult (it has an extra \"d\" in Computed)\n\n--\nJaime Casanova\nDirector de Servicios Profesionales\nSystemGuards -...
[ { "msg_contents": "Hello,\n\nI noticed that CheckAttributeNamesTypes() prevents to create a table that has\nmore than MaxHeapAttributeNumber (1600) columns, for foreign-table also.\nIIUC, this magic number comes from length of the null-bitmap can be covered\nwith t_hoff in HeapTupleHeaderData.\nFor heap-tables,...
[ { "msg_contents": "Hi, hacker\n\nI found in function ECPGconnect, the connect string in comment is written as:\n\n/*------\n * new style:\n *\t<tcp|unix>:postgresql://server[:port|:/unixsocket/path:]\n *\t[/db-name][?options]\n *------\n*/\n\nBut, the parse logical seems wrong, like:\n\ntmp = strrchr(dbname + o...
[ { "msg_contents": "Hello !\n\nWe encountered the following bug recently in production: when running REINDEX \nCONCURRENTLY on an index, the attstattarget is reset to 0.\n\nConsider the following example: \n\njunk=# \\d+ t1_date_trunc_idx \n Index \"public.t1_date_trunc_idx\"\n...
[ { "msg_contents": "hi,\n\ni tested the temporal patch ( https://commitfest.postgresql.org/26/2316/ ) with the current 14devel applied ontop of ef3d461 without any conflicts.\ni build with no special options passed to ./configure and noticed, that the postgresql-client-13 from the debian repositories crashes wit...
[ { "msg_contents": "Hi,\n\nWhile looking at the proposed removal of the v2 protocol, I noticed that we\nitalicize some, but not all, instances of 'per se', 'pro forma', and 'ad\nhoc'. I'd say these are widespread enough in formal registers of English\nthat they hardly need to be called out as foreign, so I propo...
[ { "msg_contents": "Greetings\n\nThis morning I was overcome by an urge to create a database with a specific\nlocale, and my insufficiently caffeinated brain reminded me there was a\nhandy\nLOCALE option added not so long ago, but was confused by its stubborn\nabsence\nfrom the list of tab completion options pre...
[ { "msg_contents": "Hi. When running a query with a not exist table in SPI_exec. the process exit with -1 in SPI_exec function.the error code SPI_ERROR_REL_NOT_FOUND never return. I made a minimal reproduction code in https://github.com/Sasasu/worker_spi_table_not_exist The core code is:    int spi = SPI_exec(\"...
[ { "msg_contents": "Hi,\n\nThe following is written in the comments of PQputCopyEnd().\n\n (snip)\n * Returns 1 if successful, 0 if data could not be sent (only possible\n * in nonblock mode), or -1 if an error occurs.\n (snip)\n\nThe PQputCopyEnd() section of the manual (libpq.sgml) describes the following.\n\n...
[ { "msg_contents": "Hi,\n\nI've been mucking around with COPY FROM lately, and to test it, I wrote \nsome tools to generate input files and load them with COPY FROM:\n\nhttps://github.com/hlinnaka/pgcopyfuzz\n\nI used a fuzz testing tool called honggfuzz [1] to generate test inputs \nfor COPY FROM. At first I tr...
[ { "msg_contents": "Hi,\n\npg_terminate_backend and pg_cancel_backend with postmaster PID produce\n\"PID XXXX is not a PostgresSQL server process\" warning [1], which\nbasically implies that the postmaster is not a PostgreSQL process at\nall. This is a bit misleading because the postmaster is the parent of\nall ...
[ { "msg_contents": "See\n\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=805093113df3f09979cb0e55e857976aad77b8af\n\nPlease send any corrections by Sunday.\n\n\t\t\tregards, tom lane\n\n\n", "msg_date": "Fri, 05 Feb 2021 15:07:16 -0500", "msg_from": "Tom Lane <tgl@sss.pgh.pa.us>", ...
[ { "msg_contents": "While working on [1] I ended up running into a couple issues with the\r\nKerberos test suite. Attached are two patches with possible\r\nimprovements:\r\n\r\nSome tests check for expected log messages. They currently search\r\nthrough the entire log file, from the beginning, for every match. S...
[ { "msg_contents": "Hello,\n\nThe attached patch is for supporting \"TRUNCATE\" on foreign tables.\n\nThis patch includes:\n* Adding \"ExecForeignTruncate\" function into FdwRoutine.\n* Enabling \"postgres_fdw\" to use TRUNCATE.\n\nThis patch was proposed by Kaigai-san in March 2020,\nbut it was returned becaus...
[ { "msg_contents": "Why is GlobalVisIsRemovableFullXid() not named\nGlobalVisCheckRemovableFullXid() instead? ISTM that that name makes\nmuch more sense, since it is what I'd expect for a function that is\nthe \"Full XID equivalent\" of GlobalVisCheckRemovableXid().\n\nNote also that GlobalVisIsRemovableFullXid(...
[ { "msg_contents": "Hi,\n\nI just noticed that if you load a file using psql:\n\n\\copy <table> from <local file>\n\nit sends every line as a separate FE/BE protocol CopyData packet. That's \npretty wasteful if the lines are narrow. The overhead of each CopyData \npacket is 5 bytes.\n\nTo demonstrate, I generate...
[ { "msg_contents": "Hi Hackers,\n\nI found a bug in the query rewriter. If a query that has a modifying\nCTE is re-written, the hasModifyingCTE flag is not getting set in the\nre-written query. This bug can result in the query being allowed to\nexecute in parallel-mode, which results in an error.\n\nI originally...
[ { "msg_contents": "Hi Hackers,\n\nWhen using psql I found there's no tab completion for upper character inputs. It's really inconvenient sometimes so I try to fix this problem in the attached patch.\n\nHere is the examples to show what this patch can do.\nAction: \n1. connect the db using psql \n2. input SQL co...
[ { "msg_contents": "Hi,\n\nA particular useful feature of jsonb arrays,\nis the ability to represent multidimensional arrays without matching dimensions,\nwhich is not possible with normal PostgreSQL arrays.\n\nSELECT array[[5,2],1,[8,[3,2],6]];\nERROR: multidimensional arrays must have array expressions with m...
[ { "msg_contents": "Amit, Ajin, hackers,\n\ntesting logical decoding for two-phase transactions, I stumbled over \nwhat I first thought is a bug. But comments seems to indicate this is \nintended behavior. Could you please clarify or elaborate on the design \ndecision? Or indicate this indeed is a bug?\n\nWha...
[ { "msg_contents": "Hi Hackers\n\nWhen reading code related ECPG I found 75220fb was committed in PG13 and master.\nI don't know why it shouldn't be backpatched in PG12 or before.\nCan anyone take a look at this and kindly tell me why.\n\nRegards,\nTang\n\n\n\n\n", "msg_date": "Mon, 8 Feb 2021 09:42:53 +0000...
[ { "msg_contents": "Hi, hackers!\n\nIt seems that if btree index with a unique constraint is corrupted by\nduplicates, amcheck now can not catch this. Reindex becomes impossible as\nit throws an error but otherwise the index will let the user know that it\nis corrupted, and amcheck will tell that the index is cl...
[ { "msg_contents": "Hello,\r\n I recently looked at what it would take to make a running autovacuum pick-up a change to either cost_delay or cost_limit. Users frequently will have a conservative value set, and then wish to change it when autovacuum initiates a freeze on a relation. Most users end up finding ...
[ { "msg_contents": "Hi,\n\nWith [0] we got COPY progress reporting. Before the column names of\nthis newly added view are effectively set in stone with the release of\npg14, I propose the following set of relatively small patches. These\nare v2, because it is a patchset that is based on a set of patches\nthat I ...
[ { "msg_contents": "I noticed that the file src/backend/utils/adt/inet_cidr_ntop.c has no \ntest coverage at all. The only way to reach this appears to be by \ncalling abbrev(cidr). It was easy to add a test case for this into the \nexisting, otherwise pretty complete, cidr tests.", "msg_date": "Mon, 8 Feb...
[ { "msg_contents": "Hi everyone,\nI wanted to see why we do not allow the following statements to be allowed\nwithin a transaction block:\n1. Create database\n2. Drop Database\nIs there a detailed reasoning behind disallowing the above statements as\npart of the design. Will appreciate it if someone can share on...
[ { "msg_contents": "Hi Craig, Robert,\n\n\nThe 011_crash_recovery.pl test test starts a transaction, creates a\ntable, fetches the transaction's xid. Then shuts down the server in\nimmediate mode. It then asserts that after crash recovery the previously\nassigned xid is shown as aborted, and that new xids are as...
[ { "msg_contents": "Hi, can someone point me to the code that cleans up temp files should a\nquery crashed unexpectedly? Thanks!\n\nHi, can someone point me to the code that cleans up temp files should a query crashed unexpectedly? Thanks!", "msg_date": "Mon, 8 Feb 2021 14:09:51 -0800", "msg_from": "CK T...
[ { "msg_contents": "Hi,\n\nAttached is a draft of the release announcement for the upcoming\n2021-02-11 cumulative update release. Please review for technical\naccuracy (I did screen for typos, but would not be surprised if any\nslipped in).\n\nPlease provide feedback on this thread no later than 2020-02-10 AoE[...
[ { "msg_contents": "Hi all,\n\nIn recent history, we have had two bugs causing a crash of the backend\nbecause of the default behavior of rd_tableam to be NULL for a\nrelcache entry for relkinds that have no storage:\n1) Sequential attempt for a view:\nhttps://www.postgresql.org/message-id/16856-0363e05c6e1612fd...
[ { "msg_contents": "Several information schema views track dependencies between \nfunctions/procedures and objects used by them. These had not been\nimplemented so far because PostgreSQL doesn't track objects used in a\nfunction body. However, formally, these also show dependencies used\nin parameter default e...
[ { "msg_contents": "Hi,\n\nCommit 3b733fcd04 caused the buildfarm member \"rorqual\" to report\nthe following error and fail the regression test. The cause of this issue\nis a bug in that commit.\n\n ERROR: invalid spinlock number: 0\n\nBut while investigating the issue, I found that this error could happen...
[ { "msg_contents": "Hi,\n\nI personally use it as a checksum for a large unordered set, where \nperformance and simplicity is prioritized over collision resilience.\nMaybe there are other ways to use them.\n\nBest, Alex", "msg_date": "Tue, 9 Feb 2021 15:25:19 +0000", "msg_from": "Alexey Bashtanov <bashta...
[ { "msg_contents": "Hello,\r\n\r\nI'm hoping to gather some early feedback on a heap optimization I've\r\nbeen working on. In short, I'm hoping to add \"partial heap only\r\ntuple\" (PHOT) support, which would allow you to skip updating indexes\r\nfor unchanged columns even when other indexes require updates. ...
[ { "msg_contents": "There is a long standing problem with the way that nbtree page\ndeletion places deleted pages in the FSM for recycling: The use of a\n32-bit XID within the deleted page (in the special\narea's/BTPageOpaqueData struct's btpo.xact field) is not robust\nagainst XID wraparound, which can lead to ...
[ { "msg_contents": "Over in [1] it was noted that the system behaves rather oddly if\nyou try to do ALTER USER/DATABASE SET with a custom GUC name\ncontaining \"=\" or \"-\". I think we should just disallow such cases.\nRelaxing the restriction is harder than it might seem:\n\n* The convention for entries in pg...
[ { "msg_contents": "Hi Hackers,\n\nPer Coverity.\n\nCoverity complaints about pg_cryptohash_final function.\nAnd I agree with Coverity, it's a bad design.\nIts allows this:\n\n#define MY_RESULT_LENGTH 32\n\nfunction pgtest(char * buffer, char * text) {\npg_cryptohash_ctx *ctx;\nuint8 digest[MY_RESULT_LENGTH];\n\...
[ { "msg_contents": "Hi:\n\nThis patch is the first patch in UniqueKey patch series[1], since I need to\nrevise\nthat series many times but the first one would be not that often, so I'd\nlike to\nsubmit this one for review first so that I don't need to maintain it again\nand again.\n\nv1-0001-Introduce-notnullatt...
[ { "msg_contents": "Hi,\n\nI need to filter out any system catalog objects from SQL,\nand I've learned it's not possible to simply filter based on namespace name,\nsince there are objects such as pg_am that don't have any namespace belonging,\nexcept indirectly via their handler, but since you can define a new a...
[ { "msg_contents": "Hi\n My company is looking for a team of developers to implement the \"flashback database\" functionality in PostgreSQL.\n Do you think it's feasible to implement? how many days of development?\n\n Thanks in advance\n\nBest Regards\nDidier ROS\nE.D.F\nCe...
[ { "msg_contents": "Hi\n\nIs there some reason why \\copy statement (parse_slash_copy parser) doesn't\nsupport psql variables?\n\nRegards\n\nPavel\n\nHiIs there some reason why \\copy statement (parse_slash_copy parser) doesn't support psql variables?RegardsPavel", "msg_date": "Wed, 10 Feb 2021 14:33:11 +010...
[ { "msg_contents": "Hi,\n\nPer Coverity.\n\nThe functions ExecGetInsertedCols and ExecGetUpdatedCols at ExecUtils.c\nonly are safe to call if the variable \"ri_RangeTableIndex\" is != 0.\n\nOtherwise a possible Dereference after null check (FORWARD_NULL) can be\nraised.\n\nExemple:\n\nvoid\n1718ExecPartitionChe...
[ { "msg_contents": "Hi,\n\nPer Coverity.\n\nIf xid is a subtransaction, the setup of base snapshot on the top-level\ntransaction,\ncan be not optional, otherwise a Dereference null return value\n(NULL_RETURNS) can be raised.\n\nPatch suggestion to fix this.\n\ndiff --git a/src/backend/replication/logical/reorder...
[ { "msg_contents": "Hi,\n\nPer Coverity.\n\nThe use of type \"long\" is problematic with Windows 64bits.\nLong type on Windows 64bits is 32 bits.\n\nSee at:\nhttps://docs.microsoft.com/pt-br/cpp/cpp/data-type-ranges?view=msvc-160\n\n\n*long* 4 *long int*, *signed long int* -2.147.483.648 a 2.147.483.647\nTherefo...
[ { "msg_contents": "As I mentioned in connection with adding the src/test/modules/test_regex\ntest code, I've been fooling with some performance improvements to our\nregular expression engine. Here's the first fruits of that labor.\nThis is mostly concerned with cutting the overhead for handling trivial\nuncons...
[ { "msg_contents": "A few more easy tests for things not covered at all:\n\n bytea LIKE bytea (bytealike)\n bytea NOT LIKE bytea (byteanlike)\n ESCAPE clause for the above (like_escape_bytea)\n\nalso\n\n name NOT ILIKE text (nameicnlike)\n\nSee also \n<https://coverage.postgresql.org/src/backend/...
[ { "msg_contents": "Greetings\n\nWe have following syntax:\n\n ALTER THING name [ NO ] DEPENDS ON EXTENSION name\n\nfor the following THINGs:\n\n- ALTER TRIGGER\n- ALTER FUNCTION\n- ALTER PROCEDURE\n- ALTER ROUTINE\n- ALTER MATERIALIZED VIEW\n- ALTER INDEX\n\nIn the documentation, the \"[ NO ]\" option is lis...
[ { "msg_contents": "ts=# \\errverbose \nERROR: XX000: invalid memory alloc request size 18446744073709551613\n\n#0 pg_re_throw () at elog.c:1716\n#1 0x0000000000a33b12 in errfinish (filename=0xbff20e \"mcxt.c\", lineno=959, funcname=0xbff2db <__func__.6684> \"palloc\") at elog.c:502\n#2 0x0000000000a6760d in...
[ { "msg_contents": "There is another snowball release out, and I have prepared a patch to \nintegrate it. It's very big and mostly boring, so I'm not attaching it \nhere, but you can see it at\n\nhttps://github.com/petere/postgresql/commit/d0aa6c2148bcef10942959035ce14f1810873593.patch\n\nMajor changes are new ...
[ { "msg_contents": "Hello,\n\nI am seeing errors in replication in a test program that I've been running for years with very little change (since 2017, really [1]).\n\nThe symptom:\nHEAD-replication fails (most of the time) when cascading 3 instances (master+2 replicas).\n\nHEAD-replication works with 2 instance...
[ { "msg_contents": "Hi,\n\nI wonder, is there a specific reason that MakeTupleTableSlot is\nwrapped up in MakeSingleTupleTableSlot without doing anything than\njust returning the slot created by MakeTupleTableSlot? Do we really\nneed MakeSingleTupleTableSlot? Can't we just use MakeTupleTableSlot\ndirectly? Am I ...
[ { "msg_contents": "I was trying to use triggers, and ran into something I hadn't realized\nuntil now: triggers run, not as the owner of the table, but as the user who\nis doing the insert/update/delete.\n\nIt seems to me that for a lot of the suggested uses of triggers this is not\nthe desired behaviour. For ex...
[ { "msg_contents": "\n    I would like to share my thoughts in the list about the potential\nPostgreSQL <-> Babelfish integration. There is already a thread about\nprotocol hooks [1], but I'd like to offer my PoV from a higher level\nperspective and keep that thread for the technical aspects of the\nprotocol hoo...
[ { "msg_contents": "Hello,\n\nI am working on a project where I do not want Postgres to reuse free space\nin old pages (see\nhttps://www.postgresql.org/message-id/flat/CABjy%2BRhbFu_Hs8ZEiOzaPaJSGB9jqFF0gDU5gtwCLiurG3NLjQ%40mail.gmail.com\nfor details). I found that the HEAP_INSERT_SKIP_FSM flag accomplishes thi...
[ { "msg_contents": "Hello,\n\nAs a very simple exploration of the possible gains from batching redo\nrecords during replay, I tried to avoid acquiring and releasing\nbuffers pins and locks while replaying records that touch the same\npage as the previous record. The attached experiment-grade patch\nworks by try...
[ { "msg_contents": "Greetings!\n\nI would like to know if there is a better way to pass a relation or if the\nrelation name (CString) as a parameter in a C function and thus be able to\nmanipulate its tuples. The documentation is available here:\nhttps://www.postgresql.org/docs/13/xfunc-c.html#id-1.8.3.13.11. Bu...
[ { "msg_contents": "Hi,\n\nguc.c: In function ‘RestoreGUCState’:\nguc.c:9455:4: error: ‘varsourceline’ may be used uninitialized in this\nfunction [-Werror=maybe-uninitialized]\n 9455 | set_config_sourcefile(varname, varsourcefile, varsourceline);\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
[ { "msg_contents": "The call to heap_page_prune() within lazy_scan_heap() passes a bool\nliteral ('false') as its fourth argument. But the fourth argument is\nof type TransactionId, not bool. This has been the case since the\nsnapshot scalability work performed by commit dc7420c2c92. Surely\nsomething is amiss h...
[ { "msg_contents": "hi,\n\nIt turns out parallel_workers may be a useful reloption for certain uses of partitioned tables, at least if they're made up of fancy column store partitions (see https://www.postgresql.org/message-id/7d6fdc20-857c-4cbe-ae2e-c0ff9520ed55%40www.fastmail.com).\n\nWould somebody tell me wh...
[ { "msg_contents": "Hi,\n\nProblem description:\nWhile working on a homegrown limited solution to replace (a very limited set of) golden gate capabilities we have created a CDC solution using the WAL capabilities.\n\nThe data flows like this:\nPG1 --> Debezium(wal2json) --> Kafka1 --> MM2 --> Kafka2 --> Kafka Co...
[ { "msg_contents": "A customer asked about including Server Name Indication (SNI) into the \nSSL connection from the client, so they can use an SSL-aware proxy to \nroute connections. There was a thread a few years ago where this was \nbriefly discussed but no patch appeared.[0] I whipped up a quick patch \nan...
[ { "msg_contents": "Not sure that previous email was sent correctly. If it was duplicated,\nsorry for the inconvenience.\n\nHi, hackers,\n\nI have one question related to returned information in the row description\nfor prepared statement.\n\nFor example Select $1 * 2 and then Bind 1.6 to it.\nThe returned resul...
[ { "msg_contents": "Hi all\n\nThis morning for the the umpteenth time I saw:\n\n some error message: [blank here]\n\noutput from a libpq program.\n\nThat's because passing a NULL PGresult to PQgetResultErrorMessage() returns\n\"\". But a NULL PGresult is a normal result from PQexec when it fails to\nsubmit a que...
[ { "msg_contents": "It looks like we missed this in a6642b3ae.\n\nI think it's an odd behavior of pg_stat_progress_create_index to simultaneously\nshow the global progress as well as the progress for the current partition ...\n\nIt seems like for partitioned reindex, reindex_index() should set the AM, which\nis ...
[ { "msg_contents": "Hello,\n\nIf I invoked a wrong ALTER TABLE command like this, I would see an\nunexpected error.\n\n=# ALTER TABLE <foreign table> ATTACH PARTITION ....\nERROR: \"ft1\" is of the wrong type\n\nThe cause is that ATWrongRelkidError doesn't handle ATT_TABLE |\nATT_ATT_PARTITIONED_INDEX.\n\nAfter...
[ { "msg_contents": "Hi,\r\n\r\nProblem statement:\r\nI have to develop a solution in which a single source populates a table. Once the table is populated, it is considered as read-only and then we run many read-only queries on it.\r\nSuch read-only tables are generated by multiple simulation runs: each simulatio...
[ { "msg_contents": "The SQL standard defines a function called TRIM_ARRAY that surprisingly\nhas syntax that looks like a function! So I implemented it using a thin\nwrapper around our array slice syntax. It is literally just ($1)[1:$2].\n\nAn interesting case that I decided to handle by explaining it in the\n...
[ { "msg_contents": "Hey, all,\n\nThe configuration parameter max_replication_slots is most notably used\nto control how many replication slots can be created on a server, but it\nalso controls how many replication origins can be tracked on the\nsubscriber side.\n\nThis is noted in the Configuration Settings sect...
[ { "msg_contents": "Hi -\n\nI saw that one of our commitfest entries (32/2914) is recently\nreporting a fail on the cfbot site [1]. I thought this was all ok a\nfew days ago.\n\nWe can see the test log indicating what was the test that failed [2]\nTest Summary Report\n-------------------\nt/002_twophase_streamin...
[ { "msg_contents": "While reviewing the NSS patch [1], I noticed that the cryptohash\r\nimplementation for OpenSSL doesn't set up any locking callbacks in\r\nfrontend code. I think there has to be a call to\r\nOPENSSL_set_locking_callback() before libpq starts reaching into the\r\nEVP_* API, if ENABLE_THREAD_SAF...
[ { "msg_contents": "Hi hackers,\r\n\r\nI noticed some interesting role behavior that seems to be either a bug\r\nor a miss in the documentation. The documentation for SET ROLE claims\r\nthat RESET ROLE resets \"the current user identifier to be the current\r\nsession user identifier\" [0], but this doesn't seem...
[ { "msg_contents": "Hello,\n\nIn another thread[1], I proposed $SUBJECT, but then we found a better\nsolution to that thread's specific problem. The general idea is still\ngood though: it's possible to (1) replace several existing copies of\nour qsort algorithm with one, and (2) make new specialised versions a\...
[ { "msg_contents": "Based on the discussion at:\n\nhttps://www.postgresql.org/message-id/6929d485-2d2a-da46-3681-4a400a3d794f%40enterprisedb.com\n\nI'm posting the patch for $subject here in this new thread and I'll\nadd it to the next CF per Tomas' advice.\n\nWith 927f453a94106 committed earlier today, we limit...
[ { "msg_contents": "A few years ago we discussed whether to disable SSL compression [0] which ended\nup with it being off by default combined with a recommendation against it in\nthe docs.\n\nOpenSSL themselves disabled SSL compression by default in 2016 in 1.1.0 with\ndistros often having had it disabled for a ...
[ { "msg_contents": "\nI think our documentation is mistaken about what it means for a cursor\nto be \"sensitive\" or \"insensitive\".\n\nThe definition in SQL:2016 is:\n\n A change to SQL-data is said to be independent of a cursor CR if and\n only if it is not made by an <update statement: positioned> or...
[ { "msg_contents": "Hi,\n\nI’d like to use PG as an analytics engine on multiple separately created\nread-only datasets. The datasets, in my case, are independently created by\nbringing up a local PG instance, populating a table, and shutting down the\nPG instance. I do have control over both the creation and th...
[ { "msg_contents": "When I run \"autoreconf\" on the master branch, git generates the diff\nbelow. Shouldn't it just be applied? I suppose someone changed configure.ac\nand forgot to update the generated file.\n\n-- \nAntonin Houska\nWeb: https://www.cybertec-postgresql.com", "msg_date": "Fri, 19 Feb 2021 07...
[ { "msg_contents": "Hi,\n\nattached is a patch that I think is cleaning up the API between Postgres \nand the logical decoding plugin. Up until now, not only transactions \nrolled back, but also some committed transactions were filtered and not \npresented to the output plugin. While it is documented that abor...
[ { "msg_contents": "Suppose we have partitioned table defined as below:\n\nP(a, b, c, d) partition by (a)\n p1 (a=1)\n p2 (a=2)\n p3 (a=3)\n\nSince in PG, we can define different indexes among partitions, so each\nchild may\nhave different UniqueKeys, and some of them might be invalidated in parent's\nlev...
[ { "msg_contents": "Hello,\n\nAndrew Gierth pointed out that I left behind some outdated advice\nabout RAID spindles in the GUC's extra description field, in commit\nb09ff536. Let's just drop that description. Patch attached.", "msg_date": "Sat, 20 Feb 2021 21:28:39 +1300", "msg_from": "Thomas Munro <t...
[ { "msg_contents": "Hi,\n\nCan someone please tell me which of these two queries gives the correct result and which one the incorrect?\n\n/* * * *\n * dT in days for 1000 samples\n */\n\n// 2.922 (&)\nwith A1 as ( select make_interval (0, 0, 0, 0, 0, 0, ( extract ( epoch from interval '8 years' ) / 100...
[ { "msg_contents": "Our documentation says specifically \"A character class cannot be used\nas an endpoint of a range.\" This should apply to the character class\nshorthand escapes (\\d and so on) too, and for the most part it does:\n\n# select 'x' ~ '[\\d-a]';\nERROR: invalid regular expression: invalid chara...
[ { "msg_contents": "Hi,\n\nIn testing the regex engine, I found a strange case that puzzles me.\n\nWhen a text string of a single space character is casted to a character,\nI would assume the result to be, a space character,\nbut for some reason it's the null character.\n\nTrying to produce a text with null char...
[ { "msg_contents": "Hi,\n\nWhile reviewing progress reporting for COPY command patches [1], a\npoint on using pgstat_progress_update_multi_param instead of\npgstat_progress_update_param wherever possible was suggested in [1].\nWe could do multiple param updates at once with a single API than\ndoing each param up...
[ { "msg_contents": "When combining multiple grouping items, such as rollups and cubes, the\nresulting flattened grouping sets can contain duplicate items. The\nstandard provides for this by allowing GROUP BY DISTINCT to deduplicate\nthem prior to doing the actual work.\n\nFor example:\nGROUP BY ROLLUP (a,b), RO...
[ { "msg_contents": "Hello,\n\nI am designing and implementing a connection pool for psycopg3 [1][2].\nSome of the inspiration is coming from HikariCP [3], a Java connection\npool.\n\nOne of the HikariCP configuration parameters is \"maxLifetime\", whose\ndescription is: \"This property controls the maximum lifet...
[ { "msg_contents": "Hello.\n\nI do some very regular testing on HEAD and my scripts need to know if\nthe catalog version has changed to determine if it needs to pg_restore\nor if a basebackup is okay. In order to get it, I have to do this:\n\n\n# Get the catalog version (there is no better way to do this)\ntmp=...
[ { "msg_contents": "Hi.\n\nI created a patch which improves psql's TRUNCATE tab completion.\nCurrent tab completion can complement only a table name to be truncated.\nThis patch enables psql to complement other keywords related to \nTRUNCATE.\n\nRegards.\nKota Miyake", "msg_date": "Mon, 22 Feb 2021 16:04:10 ...
[ { "msg_contents": "Hi all,\n\nI am quite new to PostgreSQL so forgive me if my understanding of the code\nbelow is wrong and please clarify what I have misunderstood.\n\nI started to experiment with the table access method interface to see if it\ncan be used for some ideas I have.\n\nFor the experiment, I am us...
[ { "msg_contents": "Hi, hackers\n\nIn [1] wrote:\n\n> If you don't have lcov or prefer text output over an HTML report, you can also run\n> make coverage\n\n[1] https://www.postgresql.org/docs/13/regress-coverage.html\n\nIt seems the lcov is not a necessary program to run a coverage test.\n\nBut when I configure...
[ { "msg_contents": "pg_collation_actual_version() -> pg_collation_current_version().\n\nThe new name seems a bit more natural.\n\nDiscussion: https://postgr.es/m/20210117215940.GE8560%40telsasoft.com\n\nBranch\n------\nmaster\n\nDetails\n-------\nhttps://git.postgresql.org/pg/commitdiff/9cf184cc0599b6e65e7e5ecd9...
[ { "msg_contents": "As Jan mentioned in his thread about a pluggable wire protocol [0], AWS is\nworking on a set of extensions for Babelfish. The intention is to not\nnecessarily have it as a single monolithic extension, but be possible for\npeople to use pieces of it as they need when they are migrating to\nPos...