threads
listlengths
1
2.99k
[ { "msg_contents": ">I think it's also important to suggest to the users how they can turn\n>on hot_standby on their standby. So, perhaps-a-bit-verbose hint would\n>be like this.\n>\"Either start this standby from base backup taken after setting\n>wal_level to \\\"replica\\\" on the primary, or turn off hot_stan...
[ { "msg_contents": "I learned a few things when working on the key management patch that I\nwant to share here in case it helps anyone:\n\n* git diff effectively creates a squashed diff of all commits/changes\n* git format-patch wants to retain each commit (no squash)\n* git format-patch has information about...
[ { "msg_contents": "I wrote this patch last year in response to a customer issue and I\nthought I had submitted it here, but evidently I didn't. So here it is.\n\nThe short story is: in commit 5364b357fb11 we increased the size of\npg_commit (n�e pg_clog) but we didn't increase the size of pg_commit_ts\nto ma...
[ { "msg_contents": "Hi\n\nI released pspg 4.0.0 https://github.com/okbob/pspg/releases/tag/4.0.0\n\nNow with the possibility to export content to file or clipboard in CSV,\nTSVC, text or INSERT formats.\n\npspg is a pager like \"less\" or \"more\" designed specially for usage in TUI\ndatabase clients like \"psql...
[ { "msg_contents": "I've been looking into the planner failure reported at [1].\nThe given test case is comparable to this query in the\nregression database:\n\nregression=# select i8.*, ss.v, t.unique2\n from int8_tbl i8\n left join int4_tbl i4 on i4.f1 = 1\n left join lateral (select i4.f1 + 1 as v) as ...
[ { "msg_contents": "After a short time (ahem, several years) of badgering of me my a\ncertain community member, I've finally gotten around to putting up a\ncgit instance on our git server, to allow for browsing of the git\nrepositories. You can find this at:\n\nhttps://git.postgresql.org/cgit/\n\nor specifically...
[ { "msg_contents": "The below references are already properly documented in\n\n https://www.postgresql.org/docs/current/catalog-pg-event-trigger.html\n\nbut missing in src/tools/findoidjoins/README.\n\nJoin pg_catalog.pg_event_trigger.evtowner => pg_catalog.pg_authid.oid\nJoin pg_catalog.pg_event_trigger.evtfo...
[ { "msg_contents": "As of 257836a75, this returns:\n\n|postgres=# SELECT pg_collation_actual_version(123);\n|ERROR: cache lookup failed for collation 123\n|postgres=# \\errverbose \n|ERROR: XX000: cache lookup failed for collation 123\n|LOCATION: get_collation_version_for_oid, pg_locale.c:1754\n\nI'm of the i...
[ { "msg_contents": "Hi,\n\nI find that the outputstr variable in logicalrep_write_tuple() only use in\n`else` branch, I think we can narrow the scope, just like variable outputbytes\nin `if` branch (for more readable).\n\n /*\n * Send in binary if requested and type has suitable send function.\n ...
[ { "msg_contents": "Hi all\n\nThe attached comments-only patch expands the signal handling section in\nmiscadmin.h a bit so that it mentions ProcSignal, deferred signal handling\nduring blocking calls, etc. It adds cross-refs between major signal\nhandling routines and the miscadmin comment to help readers track...
[ { "msg_contents": "Hi folks\n\nThe attached patch expands the xfunc docs and bgworker docs a little,\nproviding a starting point for developers to learn how to do some common\ntasks the Postgres Way.\n\nIt mentions in brief these topics:\n\n* longjmp() based exception handling with elog(ERROR), PG_CATCH() and\n...
[ { "msg_contents": "Hi folks\n\nA few times lately I've been doing things in extensions that've made me\nwant to be able to run my own code whenever InterruptPending is true and\nCHECK_FOR_INTERRUPTS() calls ProcessInterrupts()\n\nSo here's a simple patch to add ProcessInterrupts_hook. It follows the\nusual patt...
[ { "msg_contents": "Hi hackers,\n\nWhile working with cursors that reference plans with CustomScanStates \nnodes, I encountered a segfault which originates from \nsearch_plan_tree(). The query plan is the result of a simple SELECT \nstatement into which I inject a Custom Scan node at the root to do some \npost-p...
[ { "msg_contents": "While discussing the topic of foreign key performance off-list with\nRobert and Corey (also came up briefly on the list recently [1], [2]),\na few ideas were thrown around to simplify our current system of RI\nchecks to enforce foreign keys with the aim of reducing some of its\noverheads. Th...
[ { "msg_contents": "Hi,\n\nWhen I created a table consisting of 400 VARCHAR columns and tried\nto INSERT a record which rows were all the same size, there were\ncases where I got an error due to exceeding the size limit per\nrow.\n\n =# -- create a table consisting of 400 VARCHAR columns\n =# CREATE TABLE t1...
[ { "msg_contents": "Hi hackers,\n\nAs suggested by Masao, I am starting a new thread to follow up about \nstandby recovery conflicts.\n\nThe initial patch proposed in [1] has been split in 3 parts:\n\n- Add block information in error context of WAL REDO apply: committed \n(9d0bd95fa90a7243047a74e29f265296a9fc556...
[ { "msg_contents": "Hello, hackers.\n\n[ABSTRACT]\n\nExecution of queries to hot standby is one of the most popular ways to\nscale application workload. Most of the modern Postgres installations\nhave two standby nodes for high-availability support. So, utilization\nof replica's CPU seems to be a reasonable idea...
[ { "msg_contents": "whelk failed today [1] with this surprising symptom:\n\n--- snip ---\ndiff -w -U3 C:/buildfarm/buildenv/HEAD/pgsql.build/contrib/pageinspect/expected/page.out C:/buildfarm/buildenv/HEAD/pgsql.build/contrib/pageinspect/results/page.out\n--- C:/buildfarm/buildenv/HEAD/pgsql.build/contrib/pagein...
[ { "msg_contents": "Looking over the recently committed work for btree tuple deletion (d168b66)\nshould this variable not be declared static as in the attached patch?\n\nThanks,\nMark.", "msg_date": "Mon, 18 Jan 2021 19:19:46 -0500", "msg_from": "Mark G <markg735@gmail.com>", "msg_from_op": true, ...
[ { "msg_contents": "PSA a trivial patch just to pgindent the file\nsrc/backend/replication/logical/worker.c\n\n(I am modifying this file in a separate patch, but every time I used\npgindent for my own code I would keep seeing these existing format\nproblems).\n\n----\nKind Regards,\nPeter Smith.\nFujitsu Austral...
[ { "msg_contents": "Hi all,\n\nThe following functions in ilist.h and bufpage.h use some arguments\nonly in assertions:\n- dlist_next_node\n- dlist_prev_node\n- slist_has_next\n- slist_next_node\n- PageValidateSpecialPointer\n\nWithout PG_USED_FOR_ASSERTS_ONLY, this can lead to compilation\nwarnings when not usi...
[ { "msg_contents": "Hi,\n\nPostgreSQL has the feature to warn about running out of transaction ID.\nThe following message is an example.\n\n```\n2021-01-19 10:59:27 JST [client backend] WARNING: database \"postgres\" \nmust be vacuumed within xxx transactions\n2021-01-19 10:59:27 JST [client backend] HINT: To ...
[ { "msg_contents": "Hi all\r\n\r\nAfter executing command [pg_dump -?], some help information is as follows.\r\n\r\npg_dump -?\r\n-----------------------------------------------------------------\r\n -N, --exclude-schema=PATTERN do NOT dump the specified schema(s) ※\r\n -T, --exclude-table=PATTERN do...
[ { "msg_contents": "Presently there doesn't seem to be a way to tell whether a lock is\nsession-level or transaction-level in the pg_locks view.\n\nI was expecting this to be a quick patch, but the comment on the definition\nof PROCLOCKTAG in lock.h notes that shmem state for heavyweight locks does\nnot track wh...
[ { "msg_contents": "Fixes:\ngcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -I../../../../src/include -isysroot /Applications/Xcode.app/Contents...
[ { "msg_contents": "Hi all,\n\nI was looking again at the thread that reported a problem when using\nALTER DEFAULT PRIVILEGES with duplicated object names:\nhttps://www.postgresql.org/message-id/ae2a7dc1-9d71-8cba-3bb9-e4cb7eb1f44e@hot.ee\n\nAnd while reviewing the thing, I have spotted that there is a specific\...
[ { "msg_contents": "Hi,\n\nWhen I review the [1], I find that the tuple's nulls array use char type.\nHowever there are many places use boolean array to repsent the nulls array,\nso I think we can replace the char type nulls array to boolean type. This\nchange will break the SPI_xxx API, I'm not sure whether th...
[ { "msg_contents": "I have a memory of the catalog not being MVCC,\nso maybe this is normal and expected,\nbut I wanted to report it in case it's not.\n\nWhen copying all tables in pg_catalog, to a separate schema with the purpose\nof testing if foreign keys could be added for all oid columns, I got an error for...
[ { "msg_contents": "Fixes:\ngcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -I../../../../src/include -isysroot /Applications/Xcode.app/Contents...
[ { "msg_contents": "Do you know if the old travis build environment had liblz4 installed ?\n\nI'm asking regarding Dilip's patch, which was getting to \"check world\" 2 weeks\nago but now failing to even compile, not apparently due to any change in the\npatch. Also, are the historic logs available somewhere ?\n...
[ { "msg_contents": "Hi Thomas,\n\nI am wondering if the cfbot at the moment is building the docs \n(html+pdf), for the patches that it tests. I suppose that it does? If \nso, what happens with the resulting (doc)files? To /dev/null? They are \nnot available as far as I can see. Would it be feasible to make ...
[ { "msg_contents": "JSON parsing reports the line number and relevant context info\nincorrectly when the JSON contains newlines. Current code mostly just\nsays \"LINE 1\" and is misleading for error correction. There were no\ntests for this previously.\n\nProposed changes mean a JSON error such as this\n{\n \"on...
[ { "msg_contents": "Hi all,\n\nI am interested in figuring out how to get the names and types of the columns from an arbitrary query. Essentially, I want to be able to take a query like:\n\nCREATE TABLE foo(\n bar bigserial,\n baz varchar(256)\n);\n\nSELECT * FROM foo WHERE bar = 42;\n\nand figure out prog...
[ { "msg_contents": "Hello,\r\n\r\n\r\nWhile I'm investigating problems with parallel DML on another thread, I encountered a fishy behavior of EXPLAIN on HEAD. Is this a bug?\r\n\r\n\r\nAs follows, the rows and width values of Update node is 0. These were 1 and 10 respectively in versions 9.4.26 and 10.12 at ha...
[ { "msg_contents": "I just made the mistake of trying to run pgbench without first running\ncreatedb and got this:\n\npgbench: error: connection to database \"\" failed: could not connect to\nsocket \"/tmp/.s.PGSQL.5432\": FATAL: database \"rhaas\" does not exist\n\nThis looks pretty bogus because (1) I was not...
[ { "msg_contents": "Hi!\n\nWe have a bug report which says that jsonpath ** operator behaves strangely\nin the lax mode [1].\n\nNaturally, the result of this query looks counter-intuitive.\n\n# select jsonb_path_query_array('[{\"a\": 1, \"b\": [{\"a\": 2}]}]', 'lax\n$.**.a');\n jsonb_path_query_array\n----------...
[ { "msg_contents": "Some catalog tables have references to pg_attribute.attnum.\n\nIn the documentation, it only says \"(references pg_attribute.attnum)\"\nbut not which oid column to include in the two-column \"foreign key\".\n\nThis would not be a problem if there would only be one reference to pg_class.oid,\n...
[ { "msg_contents": "Hackers,\n\nIt looks like both heapgettup() and heapgettup_pagemode() are coded\nincorrectly when setting the page to start the scan on for a backwards\nscan when heap_setscanlimits() has been used.\n\nIt looks like the code was not updated during 7516f5259.\n\nThe current code is:\n\n/* star...
[ { "msg_contents": "While analyzing one of the customer issues, based on the log it\nappeared that there is a race condition in the recovery process.\n\nThe summary of the issue is, that one of the standby is promoted as\nthe new primary (Node2) and another standby (Node3) is restarted and\nset the primary_info ...
[ { "msg_contents": "In an attempt to slice off as much non-NSS specific changes as possible from\nthe larger libnss patch proposed in [0], the attached patch contains the ssl\ntest harness refactoring to support multiple TLS libraries.\n\nThe changes are mostly a refactoring to hide library specific setup in the...
[ { "msg_contents": "Hi,\n\nCreating/altering subscription is successful when we specify a\npublication which does not exist in the publisher. I felt we should\nthrow an error in this case, that will help the user to check if there\nis any typo in the create subscription command or to create the\npublication befo...
[ { "msg_contents": "Hi,\n\nRecently I was trying to copy some of the data of one database to\nanother through postgres_fdw, and found that it wouldn't import that\npartition through IMPORT FOREIGN SCHEMA, even when I explicitly\nspecified the name of the table that contained the data in the LIMIT\nTO clause.\n\n...
[ { "msg_contents": "Hello,\n\nWe found an issue in pg_upgrade on a cluster with a third-party\nbackground worker. The upgrade goes fine, but the new cluster is then in\nan inconsistent state. The background worker comes from the PoWA\nextension but the issue does not appear to related to this particular\ncode.\n...
[ { "msg_contents": "Hey, all,\n\nI'm working with native logical replication, and I don't fully understand\nwhy logical replication subscribers need to be superusers, nor do I fully\nunderstand the implication of some of the comments made on this page:\n\nhttps://www.postgresql.org/docs/current/logical-replicati...
[ { "msg_contents": "Hi,\n\nEvery nbtree index build currently does an smgrimmedsync at the end:\n\n/*\n * Read tuples in correct sort order from tuplesort, and load them into\n * btree leaves.\n */\nstatic void\n_bt_load(BTWriteState *wstate, BTSpool *btspool, BTSpool *btspool2)\n...\n\t/*\n\t * When we WAL-logg...
[ { "msg_contents": "I happened to notice that PQreset is documented thus:\n\n This function will close the connection to the server and attempt to\n reestablish a new connection to the same server, using all the same\n parameters previously used.\n\nSince we invented multi-host connection parameters, a ...
[ { "msg_contents": "hi,\n\nno noticed after the assignment with union ( https://www.postgresql.org/message-id/flat/20210105201257.f0d76aff%40mail.verfriemelt.org ), that the assignment with distinct is broken aswell.\n\n\n\n DO $$\n DECLARE \n _test bool;\n BEGIN\n\n _test := DISTINCT a FROM ( VALUES ( ...
[ { "msg_contents": "Hi!\n\nin src/tools/make_diff/ there is a reference:\n\n\"If I use mkid (from ftp.postgreSQL.org), I can do:\"\n\nThere is no such thing on our download site, and I can't find what it\neven was at one point.\n\nWas this part of some other package, since removed?\n\nAnd maybe even more interes...
[ { "msg_contents": "I was recently surprised by the following inconsistencies in returned\ncommand tags for CTAS:\n\n\npostgres=# create table a as select 123;\nSELECT 1\n\npostgres=# create table b as select 123 with data;\nSELECT 1\n\npostgres=# create table c as select 123 with no data;\nCREATE TABLE AS\n\n\n...
[ { "msg_contents": "the code provided is just a little poc to get the error ( which i have not included with my first mail sorry. )\n\n ERROR: syntax error at or near \"DISTINCT\"\n LINE 8: _test := DISTINCT a FROM ( VALUES ( (true), ( true ) ) )...\n\n\nthe code in production looked like this:\n\n\n ...
[ { "msg_contents": "> Probably the fix is not hard, but it is almost the same situation as the\n> UNION case. The result of your code is not deterministic\n> \n> If there are more different ti_resource_id then some values can be randomly\n> ignored - when hash agg is used.\n> \n> The safe fix should be\n> \n> _r...
[ { "msg_contents": "Fixes:\ngcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -I../../../../src/include -isysroot /Applications/Xcode.app/Contents...
[ { "msg_contents": "Greetings -hackers,\n\nGoogle Summer of Code is back for 2021! They have changed some of how\nGSoC is going to work for this year, for a variety of reasons, so please\nbe sure to read this email and posts linked for the updates if you're\ninterested!\n\nEveryone interested in suggesting proj...
[ { "msg_contents": "Hi all\n\nI was surprised to see that there's no way to get `VACUUM VERBOSE`-like\noutput from autovacuum. Is there any interest in enabling this?\n\nAdditionally, is there any interest in exposing more vacuum options to be\nrun by autovac? Right now it runs FREEZE and ANALYZE, which leaves t...
[ { "msg_contents": "Hi\n\njsonb with subscripting support can be used as a dictionary object in\nplpgsql.\n\nCan be nice to have support for iteration over a set of tuples (key,\nvalue).\n\nSome like\n\nFOREACH fieldvar [ KEY keyvar] IN DICTIONARY sourceexpr [VALUE searchexpr]\nLOOP\nEND LOOP;\n\nand for JSON ar...
[ { "msg_contents": "I got annoyed about the lack of $SUBJECT. The attached patch\nadds a simple test case, bringing the module's coverage to 84%\naccording to my results. (The uncovered lines mostly are in\n_PG_fini(), which is unreachable, or else to do with chaining\nto additional occupiers of the same hooks...
[ { "msg_contents": "Hi,\n\nWhile working on pg14 compatibility for an extension relying on an apparently\nuncommon combination of FOR UPDATE and stored function calls, I hit some new\nAsserts introduced in 866e24d47db (Extend amcheck to check heap pages):\n\n+\t/*\n+\t * Do not allow tuples with invalid combinat...
[ { "msg_contents": "Hi:\n\n I recently found a use case like this. SELECT * FROM p, q WHERE p.partkey\n=\n q.colx AND (q.colx = $1 OR q.colx = $2); Then we can't do either planning\ntime\n partition prune or init partition prune. Even though we have run-time\n partition pruning work at last, it is too late in ...
[ { "msg_contents": "Hi,\n\nI'm trying to understand how pg_proc.protrftypes works.\n\nThe documentation says \"Data type OIDs for which to apply transforms.\".\nFor this column, there is no reference to any catalog table?\nI would guess it should be \"(references pg_type.oid)\", right?\n\nI tried to generate a v...
[ { "msg_contents": "Hi,\n\nThis patch fixes $SUBJECT.\n\n/Joel", "msg_date": "Mon, 25 Jan 2021 08:57:48 +0100", "msg_from": "\"Joel Jacobson\" <joel@compiler.org>", "msg_from_op": true, "msg_subject": "\n =?UTF-8?Q?[PATCH]_Document_the_fact_that_pg=5Fproc.protrftypes_reference?=\n =?UTF-8?Q?s_pg=...
[ { "msg_contents": "Hi all,\n\nSHA-1 is now an option available for cryptohashes, and like the\nexisting set of functions of SHA-2, I don't really see a reason why we\nshould not have a SQL function for SHA1. Attached is a patch doing\nthat.\n\nThe same code pattern was repeated 4 times on HEAD for the SHA-2\nf...
[ { "msg_contents": "The following is a request for discussion and comments, not a refined\nproposal accompanied by a working patch.\n\nAs recently publicly announced Amazon Web Services is working on Babelfish,\na set of extensions that will allow PostgreSQL to be compatible with other\ndatabase systems. One par...
[ { "msg_contents": "I attach a series of proposed patches to slightly improve some minor\nthings related to the CLOG code.\n\n0001 - Always call StartupCLOG() just after initializing\nShmemVariableCache. Right now, the hot_standby=off code path does this\nat end of recovery, and the hot_standby=on code path does...
[ { "msg_contents": "In SnapBuildFinalSnapshot(), we have this comment:\n> \t/*\n> \t * c) transition from START to BUILDING_SNAPSHOT.\n> \t *\n> \t * In START state, and a xl_running_xacts record with running xacts is\n> \t * encountered. In that case, switch to BUILDING_SNAPSHOT state, and\n> \t * record xl_ru...
[ { "msg_contents": "Hi all,\r\n\r\nI was running tests with a GSS-enabled stack, and ran into some very\r\nlong psql timeouts after running the Kerberos test suite. It turns out\r\nthe suite pushes test credentials into the user's global cache, and\r\nthese no-longer-useful credentials persist after the suite ha...
[ { "msg_contents": "\nHi, hackers\n\nWhen I read the discussion in [1], I found that update subscription's publications\nis complicated.\n\nFor example, I have 5 publications in subscription.\n\n CREATE SUBSCRIPTION mysub1 CONNECTION 'host=localhost port=5432 dbname=postgres'\n PUBLICATION mypub1, mypub2, ...
[ { "msg_contents": "Hi,\n\nWhen I read the documentation of ALTER SUBSCRIPTION ... SET PUBLICATION ... WITH (...),\nit says \"set_publication_option\" only support \"refresh\" in documentation [1].\nHowever, we can also supply the \"copy_data\" option, and the code is:\n\n case ALTER_SUBSCRIPTION_PUBLICAT...
[ { "msg_contents": "Here are the remaining parts of the original 64bit XID patch set that I was able to apply manually, albeit with TBD's and FIXME's. I was unable to apply some small parts of the original patch set. What is contained here should 'git apply' cleanly today, but doesn't compile. It documents mo...
[ { "msg_contents": "I've created a new page, and added some unresolved items that I've been keeping\nin my head.\n\nhttps://wiki.postgresql.org/wiki/PostgreSQL_14_Open_Items\n\n\n", "msg_date": "Tue, 26 Jan 2021 15:55:15 -0600", "msg_from": "Justin Pryzby <pryzby@telsasoft.com>", "msg_from_op": true,...
[ { "msg_contents": "Hi Hackers.\n\nAs discovered elsewhere [ak0125] there is a potential race condition\nin the pg_replication_origin_drop API\n\nThe current code of pg_replication_origin_drop looks like:\n====\nroident = replorigin_by_name(name, false);\nAssert(OidIsValid(roident));\n\nreplorigin_drop(roident, ...
[ { "msg_contents": "Hi,\n\n${subject} happened while executing ${attached query} at regresssion\ndatabase, using 14dev (commit\nd5a83d79c9f9b660a6a5a77afafe146d3c8c6f46) and produced ${attached\nstack trace}.\n\nSadly just loading the regression database and executing this query is\nnot enough to reproduce. Not ...
[ { "msg_contents": "While reading pg_rewind code I found two things could speed up pg_rewind.\r\nAttached are the patches.\r\n\r\nFirst one: pg_rewind would fsync the whole pgdata directory on the target by default,\r\nbut that is a waste since usually just part of the files/directories on\r\nthe target are modi...
[ { "msg_contents": "Here is the simple patch,\r\n\r\ndiff --git a/src/backend/commands/createas.c b/src/backend/commands/createas.c\r\nindex dce882012e..0391699423 100644\r\n--- a/src/backend/commands/createas.c\r\n+++ b/src/backend/commands/createas.c\r\n@@ -552,7 +552,7 @@ intorel_startup(DestReceiver *self, i...
[ { "msg_contents": "\r\n\r\n> On Jan 27, 2021, at 19:41, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> wrote:\r\n> \r\n> On Wed, Jan 27, 2021 at 4:42 PM Amit Kapila <amit.kapila16@gmail.com> wrote:\r\n>>> On Wed, Jan 27, 2021 at 3:16 PM Bharath Rupireddy\r\n>>> <bharath.rupireddyforpostgres@gmail.c...
[ { "msg_contents": "I noticed that some of the newer compilers in the buildfarm\n(e.g., caiman, with gcc 11.0) whine about the definitions of\nrjulmdy() and rmdyjul() not quite matching their external\ndeclarations:\n\ninformix.c:516:23: warning: argument 2 of type `short int[3]' with mismatched bound [-Warray-p...
[ { "msg_contents": "Original thread is:\nhttps://www.postgresql.org/message-id/flat/196f1e1a-5464-ed07-ab3c-0c9920564af7%40postgrespro.ru\n\nFollowing Yugo's advice, I have splitted this patch into two:\n1. Extending auto_explain extension to generate extended statistics in \ncase of bad selectivity estimation.\...
[ { "msg_contents": "Hi,\n\nAttached is a small patch for ${subject}\n\n--\nJaime Casanova\nDirector de Servicios Profesionales\nSystemGuards - Consultores de PostgreSQL", "msg_date": "Wed, 27 Jan 2021 14:53:08 -0500", "msg_from": "Jaime Casanova <jcasanov@systemguards.com.ec>", "msg_from_op": true, ...
[ { "msg_contents": "Hi!\n\nWe're currently having issues with serializable contention at our shop, and\nafter tracking it down very carefully, we found that there are two main\nreasons for one such conflict:\n1. Page-level predicate locks on primary key indexes, whose associated\ncolumn gets their Id from a sequ...
[ { "msg_contents": "Hey, all,\n\nWhen creating a logical replication connection that isn't allowed by the\ncurrent pg_hba.conf, the error message states that a \"replication\nconnection\" is not allowed.\n\nThis error message is confusing because although the user is trying to\ncreate a replication connection an...
[ { "msg_contents": "Hi all,\n\nWe're about 3 days from the end of this Commitfest. The current status is:\n\nNeeds review: 150 (+1)\nWaiting on Author: 24 (-5)\nReady for Committer: 24 (+0)\nCommitted: 52 (+2)\nWithdrawn: 8 (+0)\nMoved to next CF: 2 (+2)\n\nThis weekend, I'm planning to look through Waiting-on-A...
[ { "msg_contents": "Hello all,\r\n\r\nFirst, the context: recently I've been digging into the use of third-\r\nparty authentication systems with Postgres. One sticking point is the\r\nneed to have a Postgres role corresponding to the third-party user\r\nidentity, which becomes less manageable at scale. I've been...
[ { "msg_contents": "Hi,\n\nJust found another crash.\n\nSeems that commit a929e17e5a8c9b751b66002c8a89fdebdacfe194 broke something.\nAttached is a minimal case and the stack trace.\n\n--\nJaime Casanova\nDirector de Servicios Profesionales\nSystemGuards - Consultores de PostgreSQL", "msg_date": "Thu, 28 Jan ...
[ { "msg_contents": "Hi All,\n\nI realize using foreign data wrappers with transaction pooling may not be\nstrictly supported, but for the most part they work. I am however\noccasionally noticing errors stemming from the prepared statement names\ncreated by the fdw modify code colliding between sessions/DBs.\n\nW...
[ { "msg_contents": "I got annoyed (not for the first time) by the fact that the\npartitioned_rels field of AppendPath and MergeAppendPath is a list of\nRelids, i.e., Bitmapsets. This is problematic because a Bitmapset is\nnot a type of Node, and thus a List of them is really an invalid data\nstructure. The mai...
[ { "msg_contents": "Hello,\n\nIn tablespace.c, a comment explains that DROP TABLESPACE can fail\nbogusly because of Windows file semantics:\n\n * XXX On Windows, an unlinked file persists in the directory listing\n * until no process retains an open handle for the file. The DDL\n * comma...
[ { "msg_contents": "Doc: improve documentation of oid columns that can be zero.\n\npg_attribute.atttypid\nZero if column is dropped.\n\npg_class.relam\nCan be zero, e.g. for views.\n\npg_depend.classid\nZero for pinned objects.\n\npg_language.lanplcallfoid\nZero for internal languages.\n\npg_operator.oprcode\nZe...
[ { "msg_contents": "Please ignore previous email, the attached file was 0 bytes.\nHere comes the patch again, now including data.\n\n--\n\nDoc: improve documentation of oid columns that can be zero.\n\npg_attribute.atttypid\nZero if column is dropped.\n\npg_class.relam\nCan be zero, e.g. for views.\n\npg_depend....
[ { "msg_contents": "Implementation of subscripting for jsonb\n\nSubscripting for jsonb does not support slices, does not have a limit for the\nnumber of subscripts, and an assignment expects a replace value to have jsonb\ntype. There is also one functional difference between assignment via\nsubscripting and ass...
[ { "msg_contents": "Now that dfb75e478 is in, I looked into whether we can have some\nmachine-readable representation of the catalogs' foreign key\nrelationships. As per the previous discussion [1], it's not\npractical to have \"real\" SQL foreign key constraints, because\nthe semantics we use aren't quite righ...
[ { "msg_contents": "Hi all,\n\nCommitfest 2021-01 is now closed. All patches have now been dealt\nwith. Before starting on moving and closing patches the stats were:\n\nNeeds review: 146 (-4)\nWaiting on Author: 25 (+1)\nReady for Committer : 23 (-1)\nCommitted: 56 (+4)\nMoved to next CF: 2 (+2)\nWithdrawn: 8 (+...
[ { "msg_contents": "Hi,\n\nAs of b80e10638e3, there is a new API for validating the encoding of\nstrings, and one of the side effects is that we have a wider choice of\nalgorithms. For UTF-8, it has been demonstrated that SIMD is much faster at\ndecoding [1] and validation [2] than the standard approach we use.\...
[ { "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": "\nAt long last I have just pushed Release 12 of the PostgreSQL Buildfarm\nclient. It's been about 16 months since the last release.\n\nApart from some minor fixes and code tidy up. this includes the\nfollowing more notable changes:\n\n * the TextUpgradeXVersion module is brought up to date w...
[ { "msg_contents": "I accidentally tried to populate a test case\nwhile auto_explain.log_min_duration was set to\nzero. auto_explain.log_nested_statements was also on.\n\ncreate or replace function gibberish(int) returns text language SQL as $_$\nselect left(string_agg(md5(random()::text),$$$$),$1) from\ngenera...
[ { "msg_contents": "PSA a trivial patch to correct what seems like a typo in the tablesync comment.\n\n----\nKind Regards,\nPeter Smith.\nFujitsu Australia", "msg_date": "Tue, 2 Feb 2021 10:38:31 +1100", "msg_from": "Peter Smith <smithpb2250@gmail.com>", "msg_from_op": true, "msg_subject": "Typo ...
[ { "msg_contents": "Hi,\n\nAt a customer we came across a curious plan (see attached testcase).\n\nGiven the testcase we see that the outer semi join tries to join the \nouter with the inner table id columns, even though the middle table id \ncolumn is also there. Is this expected behavior?\n\nThe reason i'm ask...
[ { "msg_contents": "I had a bit of trouble parsing the error message \"every hash partition \nmodulus must be a factor of the next larger modulus\", so I went into the \ncode, added some comments and added errdetail messages for each case. I \nthink it's a bit clearer now.", "msg_date": "Tue, 2 Feb 2021 11:...
[ { "msg_contents": "A race with KeepFileRestoredFromArchive() can cause a restartpoint to fail, as\nseen once on the buildfarm[1]. The attached patch adds a test case; it\napplies atop the \"stop events\" patch[2]. We have two systems for adding\nlong-term pg_wal directory entries. KeepFileRestoredFromArchive...
[ { "msg_contents": "Hi\n\nWhen I fixed one plpgsql_check issue, I found another plpgsql issue. Now we\nhave field nstatements that hold a number of plpgsql statements in\nfunction. Unfortunately I made an error when I wrote this functionality and\nfor FOR statements, this counter is incremented 2x. Higher number...
[ { "msg_contents": "Hi,\n\nCan we have a new function, say pg_postgres_pid(), to return\npostmaster PID similar to pg_backend_pid()? At times, it will be\ndifficult to use OS level commands to get the postmaster pid of a\nbackend to which it is connected. It's even worse if we have multiple\npostgres server inst...