threads
listlengths
1
2.99k
[ { "msg_contents": "In a very common operation of accidentally specifying a recycled\nsegment, pg_waldump often returns the following obscure message.\n\n$ pg_waldump 00000001000000000000002D\npg_waldump: fatal: could not find a valid record after 0/2D000000\n\nThe more detailed message is generated internally a...
[ { "msg_contents": ">Just a note here. After examining the core dump I did notice something.\n\n>While in XidInMVCCSnapshot call the snapshot->suboverflowed is set true\n>although subxip == NULL and subxcnt == 0. As far as I understand,\n>snapshot->suboverflowed is set true in the GetRunningTransactionData\n>cal...
[ { "msg_contents": "Here's a completely trivial command to turn of echoing of a couple of\nWindows commands pg_upgrade writes to cleanup scripts. This makes them\nbehave more like the Unix equivalents.\n\n\ncheers\n\n\nandrew\n\n--\nAndrew Dunstan\nEDB: https://www.enterprisedb.com", "msg_date": "Fri, 4 Jun ...
[ { "msg_contents": "Hi all,\n\nAs said in $subject, installcheck fails once I set up a server with\ndefault_toast_compression = lz4 in the test indirect_toast. Please\nsee the attached for the diffs.\n\nThe issue is that the ordering of the tuples returned by UPDATE\nRETURNING is not completely stable. Perhaps...
[ { "msg_contents": "Hi,\n\nDuring a recent cleanup of brin_minmax_multi.c I noticed a few typos.\nI've attached a patch to fix these.\n\nI originally buried this in [1], but think it's likely better to have\na proper thread for it.\n\nThe patch does change some comments which reference parameter or\nvariable nam...
[ { "msg_contents": "Hi,\nI have observed the following behavior with PostgreSQL 13.3.\n\nThe WAL sender process sends approximately 500 keepalive messages per\nsecond to pg_recvlogical.\nThese keepalive messages are totally un-necessary.\nKeepalives should be sent only if there is no network traffic and a certai...
[ { "msg_contents": "> Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:\n\n> > Now, while this patch does seem to work correctly, it raises a number of\n> > weird cpluspluscheck warnings, which I think are attributable to the\n> > new macro definitions. I didn't look into it closely, but I suppose it\n...
[ { "msg_contents": "Hi all,\n\nWhile reading the code of pg_log_backend_memory_contexts(), I have\nbeen surprised to see that the code would attempt to look at a PROC\nentry based on the given input PID *before* checking if the function\nhas been called by a superuser. This does not strike me as a good\nidea as...
[ { "msg_contents": "Hi,\n\nThere seems to be a weird bug in Postgres (last tested 11.12) where it\nallows an INSERT into a table with a UNIQUE / UNIQUE CONSTRAINT index\non a TEXT/VARCHAR when there's already a value present in that index,\nbut only for UTF-8 input.\n\nI just had this happen on our user table an...
[ { "msg_contents": "An internal instance was rejecting connections with \"too many clients\".\nI found a bunch of processes waiting on a futex and I was going to upgrade the\nkernel (3.10.0-514) and dismiss the issue.\n\nHowever, I also found an autovacuum chewing 100% CPU, and it appears the\nproblem is actuall...
[ { "msg_contents": "husky just reported $SUBJECT:\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=husky&dt=2021-06-05%2013%3A42%3A17\n\nand I find I can reproduce that locally:\n\ndiff -U3 /home/postgres/pgsql/contrib/pg_visibility/expected/pg_visibility.out /home/postgres/pgsql/contrib/pg_visibility/...
[ { "msg_contents": "Hello, hackers,\n\nCurrently, REL_10_STABLE can't be compiled with gcc-10 or 11, -Werror \nand \"./configure\" without arguments. E.g. gcc-11 gives an error:\n\nobjectaddress.c:1618:99: error: ‘typeoids’ may be used uninitialized \n[-Werror=maybe-uninitialized]\n 1618 | \n ObjectId...
[ { "msg_contents": "\nHi, hackers\n\nWhen we write a extension using C language, we often add the dynamic library\ninto shared_preload_libraries, however, I found that the bloom, btree_gist and\nbtree_gin do not follow this rule. I'm a bit confused with this, could anybody\nexplain it for me?\n\nThanks in advan...
[ { "msg_contents": "One of the friction points I have found in migrating from Oracle to PostgreSQL is in the conversion of hierarchical queries from the Oracle START WITH/CONNECT BY/ORDER SIBLINGS by pattern to using the ANSI recursive subquery form.\n\nOnce you wrap your head around it, the ANSI form is not so ...
[ { "msg_contents": "I wrote a script to automatically generate the node support functions \n(copy, equal, out, and read, as well as the node tags enum) from the \nstruct definitions.\n\nThe first eight patches are to clean up various inconsistencies to make \nparsing or generation easier.\n\nThe interesting stuf...
[ { "msg_contents": "Hi,\n\nOne of the existing limitations of logical decoding / replication is\nthat it does no care about sequences. The annoying consequence is that\nafter a failover to logical replica, all the table data may be\nreplicated but the sequences are still at the initial values, requiring\nsome cu...
[ { "msg_contents": "In release-14.sgml:\n\n<!--\nAuthor: Heikki Linnakangas <heikki.linnakangas@iki.fi>\n2021-03-04 [3174d69fb] Remove server and libpq support for old FE/BE protocol v\n-->\n\n <para>\n Remove server and <link linkend=\"libpq\">libpq</link> support\n for the version 2 <link linkend...
[ { "msg_contents": "Hello!\n\nWhile I was using pgbench from the master branch, I discovered an error on\npgbench logs.\nWhen I run pgbench, the log file contains a lot of redundant 0s.\n\nI ran git bisect and found out that this error occured since the commit\n547f04e7348b6ed992bd4a197d39661fe7c25097 (Mar 10, 2...
[ { "msg_contents": "Hi,\n\nIn the KnownAssignedTransactionIdes sub-module, two lines of unused code \nwere found in a previous change.\n\n--\nQuan Zongliang\nCPUG", "msg_date": "Tue, 8 Jun 2021 17:32:37 +0800", "msg_from": "Quan Zongliang <quanzongliang@yeah.net>", "msg_from_op": true, "msg_subje...
[ { "msg_contents": "Hi,\n\nI noticed that the first function parameter in get_qual_from_partbound(**Relation rel**, Relation parent,\nis not used in the function.\n\nIs it better to remove it like the attached patch ?\n\nBest regards,\nhouzj", "msg_date": "Tue, 8 Jun 2021 09:50:28 +0000", "msg_from": "\"...
[ { "msg_contents": "It could be useful to use bool in exclusion constraints, but it's\ncurrently not nicely supported. The attached patch adds support for\nbool to the btree_gist extension, so we can do this.\n\nI am adding this to the commitfest 2021-07.", "msg_date": "Tue, 8 Jun 2021 13:48:10 +0300", ...
[ { "msg_contents": "Hi all,\r\n\r\nWe've been working on ways to expand the list of third-party auth\r\nmethods that Postgres provides. Some example use cases might be \"I want\r\nto let anyone with a Google account read this table\" or \"let anyone who\r\nbelongs to this GitHub organization connect as a superus...
[ { "msg_contents": "Hackers,\n\nOn master, when a statement level trigger is fired for a replicated truncate command, the following stack trace is generated:\n\nTRAP: FailedAssertion(\"portal != NULL\", File: \"pquery.c\", Line: 1760, PID: 93854)\n0 postgres 0x0000000108e269f2 Except...
[ { "msg_contents": "Hi,\n\ntest deadlock-simple ... ok 20 ms\ntest deadlock-hard ... ok 10624 ms\ntest deadlock-soft ... ok 147 ms\ntest deadlock-soft-2 ... ok 5154 ms\ntest deadlock-parallel ... ok 132 ...
[ { "msg_contents": "Hello\n\nI recently migrated from version 8.3 of postgreSQL to v11, previously in\nall my queries for passing parameters I used the character :\n\nExample\nWhere id =: searched\n\nIn the new version when I try to make this query it sends me an error\n\nERROR syntax error at or near \":\"\n\nC...
[ { "msg_contents": "Hi.\n\nThis patch allows pushing case expressions to foreign servers, so that \nmore types of updates could be executed directly.\n\nFor example, without patch:\n\nEXPLAIN (VERBOSE, COSTS OFF)\nUPDATE ft2 d SET c2 = CASE WHEN c2 > 0 THEN c2 ELSE 0 END\nWHERE c1 > 1000;\n ...
[ { "msg_contents": "Hi Hackers,\n\nMore than a year ago we submitted a patch that offered two primitives\n(ALIGN and NORMALIZE) to support the processing of temporal data with range\ntypes. During the ensuing discussion we decided to withdraw the original\npatch\nand to split it into smaller parts.\n\nIn the con...
[ { "msg_contents": "Is there a way to get ‘character expansions’ with the ICU collations that are available in PostgreSQL?\r\n\r\nUsing this example on a database with UTF-8 encoding:\r\n\r\nCREATE COLLATION CI_AS (provider = icu, locale=’utf8@colStrength=secondary’, deterministic = false);\r\n\r\nCREATE TABLE M...
[ { "msg_contents": "Good day,\n\nI'm trying to set up a chef recipe to reserve enough HugePages on a linux\nsystem for our PG servers. A given VM will only host one PG cluster and\nthat will be the only thing on that host that uses HugePages. Blogs that\nI've seen suggest that it would be as simple as taking the...
[ { "msg_contents": "Hi,\n\nI have been exploring multirange data types using PostgreSQL 14 Beta 1.\nThus far I'm really happy with the user experience, and it has allowed\nme to simplify some previously onerous queries!\n\nI do have a question about trying to \"unnest\" a multirange type into its\nindividual ran...
[ { "msg_contents": "Hi,\n\nNot sure if there is much chance of debugging this one-off failure in\nwithout a backtrace (long shot: any chance there's still a core\nfile?), but for the record: mandrill choked on a null pointer passed\nto GetMemoryChunkContext() inside a walsender running logical\nreplication. Pos...
[ { "msg_contents": "Hi,\n\nOn occasion it comes up that the genetic query optimizer (GEQO) doesn't\nproduce particularly great plans, and is slow ([1] for example). The only\nalternative that has gotten as far as a prototype patch (as far as I know)\nis simulated annealing some years ago, which didn't seem to ge...
[ { "msg_contents": "I thought it might be worth having this conversation before we branch for v15.\n\nIt seems we have no standard as to if we say \"a SQL\" or \"an SQL\".\n\nPersonally, I pronounce the language as es-que-ell, so I'd write \"an\nSQL\". If you say \"sequel\", then you'll think differently. The r...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 17056\nLogged by: Alexander Lakhin\nEmail address: exclusion@gmail.com\nPostgreSQL version: 14beta1\nOperating system: Ubuntu 20.04\nDescription: \n\nWhen executing the following query (based on ex...
[ { "msg_contents": "In the middle of GIN index testing, there are some selects that are on\na different table array_op_test that doesn't even have an index. They\nprobably were supposed to be selects to table array_index_op_test like\nthe other ones around the area.\n\nFix that. The expected output should stay...
[ { "msg_contents": "The docs currently say (introduced in commit 91fa853):\n\n\"In the event of a backend-detected error during copy-both mode, the\nbackend will issue an ErrorResponse message, discard frontend messages\nuntil a Sync message is received, and then issue ReadyForQuery and\nreturn to normal process...
[ { "msg_contents": "Hi\n\n\nI by chance found a timing issue that exists in PG9.6\nduring my process to make a patch-set that should be back-patched to 9.6.\nI don't judge this is unique in 9.6 or not from HEAD yet.\n(Then, I don't know like this is solved by HEAD already but not back-patched but can it be ?)\nP...
[ { "msg_contents": "StartLogicalReplication() calls CreateDecodingContext(), which says:\n\n else if (start_lsn < slot->data.confirmed_flush)\n {\n /*\n * It might seem like we should error out in this case, but it's\n * pretty common for a client to acknowledge a LSN it doesn't\nhave to\n * do ...
[ { "msg_contents": "Hi,\n\nThe Release Management Team (Peter Geoghegan, Andrew Dunstan and\nmyself) proposes that the date of the PostgreSQL 14 Beta 2 release\nwill be **Thursday June 24, 2021**, which aligns with the past\npractice.\n\nThanks,\n--\nMichael", "msg_date": "Fri, 11 Jun 2021 13:19:33 +0900", ...
[ { "msg_contents": "Hi Hackers,\n\nI played pgbench with wrong parameters, and I found bug-candidate.\nThe latest commit in my source is 3a09d75.\n\n1. Do initdb and start.\n2. Initialize schema and data with \"scale factor\" = 1.\n3. execute following command many times:\n\n$ pgbench -c 101 -j 10 postgres\n\nTh...
[ { "msg_contents": "Hi all,\n\nFollowing up with the recent thread that dealt with the same $subject\nfor the TAP tests, I have gone through pg_regress.c:\nhttps://www.postgresql.org/message-id/YLbjjRpucIeZ78VQ@paquier.xyz\n\nThe list of environment variables that had better be reset when using\na temporary inst...
[ { "msg_contents": "I noticed that we are getting random failures [1][2][3] in the\nrecovery test on hoverfly. The failures are in 022_crash_temp_files\nand 013_crash_restart. Both the tests failed due to same reason:\n\nack Broken pipe: write( 13, 'SELECT 1' ) at\n/home/nm/src/build/IPC-Run-0.94/lib/IPC/Run/IO....
[ { "msg_contents": ">>\r\n You can have these queries return both rows if you use an\r\n accent-ignoring collation, like this example in the documentation:\r\n\r\n CREATE COLLATION ignore_accents (provider = icu, locale =\r\n 'und-u-ks-level1-kc-true', deterministic = false);\r\n<<\r\n\r\nIndeed. Is...
[ { "msg_contents": "Hi,\n\nI just tried to add a, seemingly innocuous, assertion to\nProcArrayAdd()/Remove() that proc->pgprocno is < arrayP->maxProcs. That\nquickly fails.\n\nThe reason for that is that PGPROC are created in the following order\n1) MaxBackends normal (*[1]) backends\n2) NUM_AUXILIARY_PROCS auxi...
[ { "msg_contents": "Hi,\n\nRemoving legitimate warnings can it be worth it?\n\n-1 CAST can be wrong, when there is an invalid value defined\n(InvalidBucket, InvalidBlockNumber).\nI think depending on the compiler -1 CAST may be different from\nInvalidBucket or InvalidBlockNumber.\n\npg_rewind is one special case...
[ { "msg_contents": "Per sqlsmith.\n\npostgres=# SELECT pg_filenode_relation(0,0);\nERROR: unexpected duplicate for tablespace 0, relfilenode 0\n\npostgres=# \\errverbose \nERROR: XX000: unexpected duplicate for tablespace 0, relfilenode 0\nLOCATION: RelidByRelfilenode, relfilenodemap.c:220\n\nThe usual expect...
[ { "msg_contents": "Ok! Thanks\r\n----------\r\n\r\n\r\n\r\n\r\n--------------原始邮件--------------\r\n发件人:\"Andres Freund \"<andres@anarazel.de&gt;;\r\n发送时间:2021年6月12日(星期六) 中午12:43\r\n收件人:\"盏一\" <w@hidva.com&gt;;\r\n抄送:\"pgsql-hackers \"<pgsql-hackers@postgresql.org&gt;;\r\n主题:Re: use `proc-&gt;pgxactoff` as the v...
[ { "msg_contents": "Hi all,\n\nI am trying to implement a sort support function for geometry data types in\nPostGIS with the new feature `SortSupport`. However, I have a question\nabout this.\n\nI think it is hardly to apply a sort support function to a complex data\ntype without the `abbrev_converter` to simply...
[ { "msg_contents": "Hi all,\n\nwrasse has just failed with what looks like a timing error with a\nreplication slot drop:\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=wrasse&dt=2021-06-12%2006%3A16%3A30\n\nHere is the error:\nerror running SQL: 'psql:<stdin>:1: ERROR: could not drop replication\nslot...
[ { "msg_contents": "Much of nodeAgg.c does not really know the difference between the\naggregate's combine function and the aggregate's transition function.\nThis was done on purpose so that we can keep as much code the same as\npossible between partial aggregate and finalize aggregate.\n\nWe can take this a bit...
[ { "msg_contents": "Back in f0705bb62, we added pg_nextpower2_32 and pg_nextpower2_64 to\nefficiently obtain the next power of 2 of a given number using an\nintrinsic function to find the left-most 1 bit.\n\nIn d025cf88b and 02a2e8b44, I added some usages of these new functions\nbut I didn't quite get all of the...
[ { "msg_contents": "Hi,\n\nWith the recent changes at procarray.c, I take a look in.\nmsvc compiler, has some warnings about signed vs unsigned.\n\nSo.\n\n1. Size_t is weird, because all types are int.\n2. Wouldn't it be better to initialize static variables?\n3. There are some shadowing parameters.\n4. Possible...
[ { "msg_contents": "A few years ago I wrote a patch to implement the missing aggregate\ncombine functions for array_agg and string_agg [1]. In the end, the\npatch was rejected due to some concern [2] that if we allow these\naggregates to run in parallel then it might mess up the order in which\nvalues are being...
[ { "msg_contents": "So far as I can find, just about everyplace that deals with replication\nconnections has slipshod error reporting. An example from worker.c is\n\n LogRepWorkerWalRcvConn = walrcv_connect(MySubscription->conninfo, true,\n MySubscription->n...
[ { "msg_contents": "This confused me for a minute so took the opportunity to clean it up.\n\nSince: 2594cf0e8c04406ffff19b1651c5a406d376657c\n---\n src/backend/commands/variable.c | 12 +++++++-----\n 1 file changed, 7 insertions(+), 5 deletions(-)\n\ndiff --git a/src/backend/commands/variable.c b/src/backend/com...
[ { "msg_contents": "Hi,\n\nI found that pgbench could get stuck when every transaction\ncome to be skipped and the number of transaction is not limitted\nby -t option.\n\nFor example, when I usee a large rate (-R) for throttling and a\nsmall latency limit (-L) values with a duration (-T), pbbench\ngot stuck.\n\n...
[ { "msg_contents": "Re: \r\n >> Can a CI collation be ordered upper case first, or is this a limitation of ICU?\r\n\r\n > I don't know the authoritative answer to that, but to me it doesn't make\r\n > sense, since the effect of a case-insensitive collation is to throw away\r\n > the third-level weigh...
[ { "msg_contents": "Hi,\n\nCurrently we don't allow a sub-transaction to be spawned from inside a\nparallel worker (and also from a leader who is in parallel mode). This\nimposes a restriction that pl/pgsql functions that use an exception block\ncan't be marked parallel safe, even when the exception block is the...
[ { "msg_contents": "Hi,\n\nTState has a field called \"conn_duration\" and this is, the comment says,\n\"cumulated connection and deconnection delays\". This value is summed over\nthreads and reported as \"average connection time\" under -C/--connect.\nIf this options is not specified, the value is never used.\n...
[ { "msg_contents": "\nI've been looking at the recent spate of intermittent failures on my\nCygwin animal lorikeet. Most of them look something like this, where\nthere's 'VACUUM FULL pg_class' and an almost simultaneous \"CREATE TABLE'\nwhich fails.\n\n\n2021-06-14 05:04:00.220 EDT [60c71b7f.e8bf:60] pg_regress/...
[ { "msg_contents": "Hello hackers,\n\nI have a doubt regarding the positioning of clientAuthentication hook\nin function ClientAuthentication. Particularly, in case of hba errors,\ni.e. cases uaReject or uaImplicitReject it errors out, leading to no\ncalls to any functions attached to the authentication hook. Ca...
[ { "msg_contents": "In the past people have tried to ensure that the isolation tests\nwould pass regardless of the prevailing default_transaction_isolation\nsetting. (That was sort of the point, in fact, for the earliest\ntests using that infrastructure.)\n\nThis seems to have been forgotten about lately, as al...
[ { "msg_contents": "This is a followup to the conversation at [1], in which we speculated\nabout constraining the isolationtester's behavior by annotating the\nspecfiles, in order to eliminate common buildfarm failures such as [2]\nand reduce the need to use long delays to stabilize the test results.\n\nI've spe...
[ { "msg_contents": "Hi,\n\nI thought about using the dual, but wasn't sure how many languages\nsupport it.\n\nBest,\nDavid.\n-- \nDavid Fetter <david(at)fetter(dot)org> http://fetter.org/\nPhone: +1 415 235 3778\n\nRemember to vote!\nConsider donating to Postgres: http://www.postgresql.org/about/donate", "ms...
[ { "msg_contents": "Currently, CREATE DATABASE forces a checkpoint, then copies all the\nfiles, then forces another checkpoint. The comments in the createdb()\nfunction explain the reasons for this. The attached patch fixes this\nproblem by making CREATE DATABASE completely WAL-logged so that now we\ncan avoid c...
[ { "msg_contents": "I am just quoting the whole file here for simplicity, as its smallhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/port/pg_crc32c_sse42_choose.c;h=0608e02011f7f5d8dbba7673a5ab4ba071d017a0;hb=e4f9737fac77a5cb03a84d1f4038d300ffd28afd.In line #43 the compiler errors out, if there...
[ { "msg_contents": "In the NSS thread it was discussed (20210603210642.GF22012@momjian.us etc) that\nwe use SSL rather than TLS in the documentation, which is technically somewhat\nincorrect. Consensus came to using SSL/TLS instead for referring to encrypted\nconnections. Since this isn't really limited to the...
[ { "msg_contents": "Hi,\n\nMy use case is to create an isolated interface schema consisting of only\nviews and functions (possibly many schemas, for multi-tenancy or\nmulti-version), which has the minimal access exposure. To reduce the mental\nand maintenance burden, I am inclined to create one role per interfac...
[ { "msg_contents": "While working on some related issues I found that the wal receiver\ntries to call walrcv_receive() loop\nbefore replying the write/flush/apply LSN to wal senders in\nXLogWalRcvSendReply(). It is possible\nthat walrcv_receive() loop receives and writes a lot of xlogs, so it\ndoes not reply tho...
[ { "msg_contents": "I propose to change some defaults:\n\nlog_autovacuum_min_duration = 0\nlog_checkpoints = on\nlog_lock_waits = on (and log_recovery_conflict_waits too?)\nlog_temp_files = 128kB\n\nNote that pg_regress does this:\n| fputs(\"\\n# Configuration added by pg_regress\\n\\n\", pg_conf);\n| fputs(\"lo...
[ { "msg_contents": " From time to time, someone tells me that they've configured\nenable_nestloop=false on postgresql.conf, which is a pretty bad idea\nsince there are a significant number of cases where such plans are the\nonly reasonable way of executing some query. However, it's no great\nsecret that PostgreS...
[ { "msg_contents": "I've been spending a lot of time looking at isolationtester results\nover the past couple of days, and gotten really annoyed at how poorly\nit formats query results. In particular, any column heading or value\nthat is 15 characters or longer is not separated from the next column,\nrendering ...
[ { "msg_contents": "I am trying to add bulk operation support to ODB (a C++ ORM) using\nthe new pipeline mode added to libpq in PostgreSQL 14. However, things\ndon't seem to be working according to the documentation (or perhaps I\nam misunderstanding something). Specifically, the documentation[1]\nmakes it sound...
[ { "msg_contents": "Hi,\n\nThere's a couple of calls to GetMultiXactIdMembers() in heapam.c which\nsubsequently pfree() the returned \"members\" pointer (pass-by-reference\nparameter) if it's non-NULL.\nHowever, there's an error return within GetMultiXactIdMembers() that\nreturns -1 without NULLing out \"members...
[ { "msg_contents": "Hi,\n\nxlog.c is very large. We've split off some functions from it over the \nyears, but it's still large and it keeps growing.\n\nAttached is a proposal to split functions related to WAL replay, standby \nmode, fetching files from archive, computing the recovery target and so \non, to new s...
[ { "msg_contents": "Back on March 10 Thomas Munro committed and wrestled multiple reworks of\nthe pgbench code from Fabien and the crew. The feature to synchronize\nstartup I'm looking forward to testing now that I have a packaged beta.\nVariations on that problem have bit me so many times I added code last yea...
[ { "msg_contents": "Hi,\n\nDuring the recent \"CMU vaccination\" talk given by Robert [1], a couple \nof the attendees (some of which were engineers working on various other \ndatabase systems) asked whether PostgreSQL optimizer uses sketches. \nWhich it does not, as far as I'm aware. Perhaps some of our statist...
[ { "msg_contents": "[ new subject, new thread, new patch ]\n\nAlvaro Herrera <alvherre@alvh.no-ip.org> writes:\n> On 2021-Jun-16, Tom Lane wrote:\n>> BTW, as long as we're thinking of back-patching nontrivial specfile\n>> changes, I have another modest proposal. What do people think of\n>> removing the requirem...
[ { "msg_contents": "I haven't pushed my quick-hack fix for bug #17053 ([1]) because\nI wasn't really satisfied with band-aiding that problem in one\nmore place. I took a look around to see if we could protect\nagainst the whole class of scribble-on-a-utility-statement\nissues in a more centralized way.\n\nWhat ...
[ { "msg_contents": "Hi Amit,\n\nIn commit e7eea52b2d, you introduced a new function, RelationGetIdentityKeyBitmap(), which uses some odd logic for determining if a relation has a replica identity index. That code segfaults under certain conditions. A test case to demonstrate that is attached. Prior to patchin...
[ { "msg_contents": "I am making use of the new pipeline mode added to libpq in\nPostgreSQL 14. At the same time I would still like to support\nolder libpq versions by not providing the extended functionality\nthat depends on this mode.\n\nThe natural way to achieve this in C/C++ is to conditionally\nenable code ...
[ { "msg_contents": "Here's a patch I propose to apply to fix this bug (See\n<https://www.postgresql.org/message-id/flat/759e997e-e1ca-91cd-84db-f4ae963fada1%40dunslane.net#b1cf11c3eb1f450bed97c79ad473909f>)\n\n\ncheers\n\n\nandrew\n\n--\nAndrew Dunstan\nEDB: https://www.enterprisedb.com", "msg_date": "Thu, 1...
[ { "msg_contents": "Hackers,\n\nLogical replication apply workers for a subscription can easily get stuck in an infinite loop of attempting to apply a change, triggering an error (such as a constraint violation), exiting with an error written to the subscription worker log, and restarting.\n\nAs things currently...
[ { "msg_contents": "Hi,\n\nWhile another long thread discusses the situation of old_snapshot_threshold,\nI believe we can improve procarray.c by avoiding calling\nMaintainOldSnapshotTimeMapping (src/backend/utils/time/snapmgr.c).\n\nThere's a very explicit comment there, which says (line 1866):\n\"Never call thi...
[ { "msg_contents": "Hi hackers!\n\nStarting from v13 pg_rewind can use restore_command if it lacks necessary WAL segments. And this is awesome for HA clusters with many nodes! Thanks to everyone who worked on the feature!\n\nHere's some feedback on how to make things even better.\n\nIf we run 'pg_rewind --restor...
[ { "msg_contents": "Hi,\n\nStatistics for range types are not currently exposed in pg_stats view \n(i.e. STATISTIC_KIND_RANGE_LENGTH_HISTOGRAM and \nSTATISTIC_KIND_BOUNDS_HISTOGRAM).\n\nShouldn't they? If so, here is a patch for adding them.\n\nThe following is a simple example of what it looks like:\n\nCREATE T...
[ { "msg_contents": "I see that commit 547f04e73 caused pgbench to start printing its\nversion number. I think that's a good idea in general, but it\nappears to me that next to no thought went into the details\n(as perhaps evidenced by the fact that the commit message doesn't\neven mention it). I've got two bee...
[ { "msg_contents": "A few questions about this comment in walsender.c, originating in\ncommit abfd192b1b5b:\n\n/*\n * Found the requested timeline in the history. Check that\n * requested startpoint is on that timeline in our history.\n *\n * This is quite loose on purpose. We only check that we didn't\n * fork ...
[ { "msg_contents": "The recipe for running TAP tests in src/Makefile.global doesn't work for\nthe PGXS case. If you try it you get something like this:\n\n\nandrew@emma:tests $ make PG_CONFIG=../inst.head.5701/bin/pg_config installcheck\nrm -rf '/home/andrew/pgl/tests'/tmp_check\n/usr/bin/mkdir -p '/home/andrew/...
[ { "msg_contents": "I had an idea for another way to attack $SUBJECT, now that we have\nthe ability to adjust debug_invalidate_system_caches_always at\nruntime. Namely, that a lot of time goes into repeated initdb\nruns (especially if the TAP tests are enabled); but surely we\nlearn little from CCA initdb runs ...
[ { "msg_contents": "Hi all\r\n\r\nPQtraceSetFlags has been renamed PQsetTraceFlags, but the <indexterm> has not been modified,\r\nso PQtraceSetFlags is still displayed in bookindex.html.\r\n\r\n -<varlistentry id=\"libpq-PQtraceSetFlags\">\r\n - <term><function>PQtraceSetFlags</function><indexterm><primary>P...
[ { "msg_contents": "Hi,\n\nI noticed a striking similarity between the collation versions\nreported by Windows and ICU, and found my way to this new system copy\nof ICU (C APIs only) that you can use on recent enough Windows[1].\nNot planning to do anything with that observation myself but it seemed\ninteresting...
[ { "msg_contents": "Hello Hackers,\nwhile amending Npgsql to account for the Logical Streaming Replication\nProtocol changes in PostgreSQL 14 I stumbled upon two documentation\ninaccuracies in the Logical Replication Message Formats documentation\n(https://www.postgresql.org/docs/devel/protocol-logicalrep-messag...
[ { "msg_contents": "This patch changes places like this\n\nDECLARE_UNIQUE_INDEX_PKEY(pg_aggregate_fnoid_index, 2650, on \npg_aggregate using btree(aggfnoid oid_ops));\n#define AggregateFnoidIndexId 2650\n\nto this\n\nDECLARE_UNIQUE_INDEX_PKEY(pg_aggregate_fnoid_index, 2650, \nAggregateFnoidIndexId, on pg_aggreg...
[ { "msg_contents": "Hello,\n\nWhile discussing auto analyze on partitioned tables, we recognized that\nauto analyze should run on partitioned tables when ATTACH, DETACH\nand DROP commands are executed [1]. Partitioned tables are checked\nwhether they need auto analyze according to their\nchanges_since_analyze (...
[ { "msg_contents": "Hi,\n\nSequence MINVALUE/MAXVALUE values are read into \"int64\" variables and\nthen range-checked according to the sequence data-type.\nHowever, for a BIGINT sequence, checking whether these are <\nPG_INT64_MIN or > PG_INT64_MAX always evaluates to false, as an int64\ncan't hold such values....
[ { "msg_contents": "In [1], Yaoguang reported an Assert failure in expand_grouping_sets.\nSince beta2 deadline is looming, I pushed a quick fix for that.\n\nAs mentioned over on bugs, only 1 test triggers that code and because\nthe List of IntLists always had an empty list as the first element due\nto the code j...
[ { "msg_contents": "Seems like we can skip the uniqueness check if indexUnchanged, which\nwill speed up non-HOT UPDATEs on tables with B-Trees.\n\nPasses tests.\n\nComments?\n\n-- \nSimon Riggs http://www.EnterpriseDB.com/", "msg_date": "Mon, 21 Jun 2021 13:31:07 +0100", "msg_from": "Simon...
[ { "msg_contents": "New chapter for Hash Indexes, designed to help users understand how\nthey work and when to use them.\n\nMostly newly written, but a few paras lifted from README when they were helpful.\n\n-- \nSimon Riggs http://www.EnterpriseDB.com/", "msg_date": "Mon, 21 Jun 2021 14:08:12...
[ { "msg_contents": "Since https://github.com/postgres/postgres/commit/ea53100d5 (or Postgres \n12.0) the shipped pkg-config file is broken for statically linking libpq \nbecause libpgcommon and libpgport are missing. This patch adds those two \nmissing private dependencies.", "msg_date": "Mon, 21 Jun 2021 13...