threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nThe subscription worker was not getting invalidated when the\nsubscription owner changed from superuser to non-superuser. Here is a\ntest case for the same:\nPublisher:\n CREATE USER repl REPLICATION PASSWORD 'secret';\n CREATE TABLE t(i INT);\n INSERT INTO t VALUES(1);\n GRANT...
[ { "msg_contents": "\nsrc/backend/transam/README says:\n\n ...\n 4. Mark the shared buffer(s) as dirty with MarkBufferDirty(). (This \n must happen before the WAL record is inserted; see notes in \n SyncOneBuffer().)\n ...\n\nBut GenericXLogFinish() does this:\n\n ...\n /* Insert xlog record */\n lsn = ...
[ { "msg_contents": "Don't trust unvalidated xl_tot_len.\n\nxl_tot_len comes first in a WAL record. Usually we don't trust it to be\nthe true length until we've validated the record header. If the record\nheader was split across two pages, previously we wouldn't do the\nvalidation until after we'd already tried...
[ { "msg_contents": "I am not sure why REL_16_STABLE fails consistently as of ~4 days ago.\nIt seems like bad storage or something? Just now it happened also on\nHEAD. I wonder why it would be sensitive to the branch.\n\n\n", "msg_date": "Sat, 23 Sep 2023 13:53:47 +1200", "msg_from": "Thomas Munro <thom...
[ { "msg_contents": "Attached test case demonstrates an issue with nbtree's mark/restore\ncode. All supported versions are affected.\n\nMy suspicion is that bugfix commit 70bc5833 missed some subtlety\naround what we need to do to make sure that the array keys stay \"in\nsync\" with the scan. I'll have time to de...
[ { "msg_contents": "Hi,\n\nPer Coverity.\nCID 1518088 (#2 of 2): Improper use of negative value (NEGATIVE_RETURNS)\n\nThe function bms_singleton_member can returns a negative number.\n\n/*\n* Get a child rel for rel2 with the relids. See above comments.\n*/\nif (rel2_is_simple)\n{\nint varno = bms_singleton_mem...
[ { "msg_contents": "Hello hackers,\n\nWhen playing with oversized tuples, I've found that it's possible to set\nsuch oversized password for a user, that could not be validated.\nFor example:\nSELECT format('CREATE ROLE test_user LOGIN PASSWORD ''SCRAM-SHA-256$' || repeat('0', 2000000) || \n'4096:NuDacwYSUxeOeFUE...
[ { "msg_contents": "typedef struct TupleDescData\n{\n\tint\t\t\tnatts;\t\t\t/* number of attributes in the tuple */\n\tOid\t\t\ttdtypeid;\t\t/* composite type ID for tuple type */\n\tint32\t\ttdtypmod;\t\t/* typmod for tuple type */\n\tint\t\t\ttdrefcount;\t\t/* reference count, or -1 if not counting */\n\tTuple...
[ { "msg_contents": "typedef struct TupleDescData\n{\n\tint\t\t\tnatts;\t\t\t/* number of attributes in the tuple */\n\tOid\t\t\ttdtypeid;\t\t/* composite type ID for tuple type */\n\tint32\t\ttdtypmod;\t\t/* typmod for tuple type */\n\tint\t\t\ttdrefcount;\t\t/* reference count, or -1 if not counting */\n\tTuple...
[ { "msg_contents": "Hi,\n\nI have made various, mostly unrelated to each other,\nsmall improvements to the documentation. These\nare usually in the areas of plpgsql, schemas, and permissions.\nMost change 1 lines, but some supply short overviews.\n\n\"Short\" is subjective, so if these need to be\nbroken into d...
[ { "msg_contents": "\nHi, hackers\n\nI find src/backend/utils/mb/Unicode/Makefile has the following comments:\n\n> # Note that while each script call produces two output files, to be\n> # parallel-make safe we need to split this into two rules. (See for\n> # example gram.y for more explanation.)\n> #\n\nI could...
[ { "msg_contents": "\nHi, hackers\n\nI find src/backend/utils/mb/Unicode/Makefile has the following comments:\n\n> # Note that while each script call produces two output files, to be\n> # parallel-make safe we need to split this into two rules. (See for\n> # example gram.y for more explanation.)\n> #\n\nI could...
[ { "msg_contents": "Hi,\n\nRecently I read the document about ereport()[1].\nThen, I felt that there is little information about severity level.\nSo I guess it can be kind to clarify where severity level is defined(see\nattached patch please).\n\nAny thoughts?\n\n\n[1] https://www.postgresql.org/docs/devel/error...
[ { "msg_contents": "Hi,\n\nI found that \"taptest\" is missing in vcregress.bat command list in the\ndocumentation when I tested psql and pgbench on Windows. I know there\nis a plan to remove MSVC scripts[1], but is it worth adding one line\nto the list for now?\n\n[1] https://www.postgresql.org/message-id/flat/...
[ { "msg_contents": "\nHi, hackers\n\nWhen I try to update the unicode mapping table through *.xml in\nsrc/backend/utils/mb/Unicode/, it doesn't update the *.map files.\nI find the make cannot go to this directory, what can I do to update\nthe mapping tables?\n\n-- \nRegrads,\nJapin Li\nChengDu WenWu Information ...
[ { "msg_contents": "I think I've come across a wrong result issue with grouping sets, as\nshown by the query below.\n\n-- result is correct with only grouping sets\nselect a, b\nfrom (values (1, 1), (2, 2)) as t (a, b) where a = b\ngroup by grouping sets((a, b), (a));\n a | b\n---+---\n 1 | 1\n 1 |\n 2 | 2\n 2 |...
[ { "msg_contents": "In v16 and later, the following fails:\n\nCREATE TABLE boom (t character varying(5) DEFAULT 'a long string');\n\nCOPY boom FROM STDIN;\nERROR: value too long for type character varying(5)\n\nIn PostgreSQL v15 and earlier, the COPY statement succeeds.\n\nThe error is thrown in BeginCopyFrom i...
[ { "msg_contents": "I noticed a wrong comment in search_indexed_tlist_for_sortgroupref().\n\n foreach(lc, itlist->tlist)\n {\n TargetEntry *tle = (TargetEntry *) lfirst(lc);\n\n /* The equal() check should be redundant, but let's be paranoid */\n if (tle->ressortgroupref == sortgroupre...
[ { "msg_contents": "I find this in source code\n#define ShareLock\t\t\t\t5\t/* CREATE INDEX (WITHOUT CONCURRENTLY) */\nI think if there is no CONCURRENTLY, so why we need a lock, I think that’s unnecessary. What’s the point?\n\n", "msg_date": "Mon, 25 Sep 2023 23:04:18 +0800", "msg_from": "jacktby jacktb...
[ { "msg_contents": "\nHi, hackers\n\nWhen I try to update unicode mapping tables using make update-unicode [1],\nI encountered an error about following:\n\ngenerate_unaccent_rules.py --unicode-data-file ../../src/common/unicode/UnicodeData.txt --latin-ascii-file Latin-ASCII.xml >unaccent.rules\n/bin/sh: 1: gener...
[ { "msg_contents": "Hi,\n\nIn the regression test I see tests the one below [1], but generally, jsonb_path_query is a SRF,\nand the definition in pg_proc.dat has it as such [0], looking at the implementation it doesn’t look like it calls jsonb_query_first behind the scenes (say if it detects it’s being called in...
[ { "msg_contents": "Hi all,\n(Thomas in CC.)\n\nNow that becfbdd6c1c9 has improved the situation to detect the\ndifference between out-of-memory and invalid WAL data in WAL, I guess\nthat it is time to tackle the problem of what we should do when\nreading WAL records bit fail on out-of-memory.\n\nTo summarize, c...
[ { "msg_contents": "Hello,\n\n\nI read this article from Haproxy, they noticed OpenSSL v3 has huge \nperformance regressions :\nhttps://github.com/haproxy/wiki/wiki/SSL-Libraries-Support-Status#openssl\n\nThis is a known issue : \nhttps://github.com/openssl/openssl/issues/17627#issuecomment-1060123659\n\nUnfortu...
[ { "msg_contents": "Hi,\n\n\nPFA small code cleanup in twophase.sql. Which contains a drop table\nstatement for 'test_prepared_savepoint'. Which, to me, appears to be\nmissing in the cleanup section of that file.\n\nTo support it I have below points:-\n\n1) Grepping this table 'test_prepared_savepoint' shows occ...
[ { "msg_contents": "/* Typedef for callback function for table_index_build_scan */\ntypedef void (*IndexBuildCallback) (Relation index,\n\t\t\t\t\t\t\t\t\tItemPointer tid,\n\t\t\t\t\t\t\t\t\tDatum *values,\n\t\t\t\t\t\t\t\t\tbool *isnull,\n\t\t\t\t\t\t\t\t\tbool tupleIsAlive,\n\t\t\t\t\t\t\t\t\tvoid *state);\nWh...
[ { "msg_contents": "typedef bool (*aminsert_function) (Relation indexRelation,\n\t\t\t\t\t\t\t\t Datum *values,\n\t\t\t\t\t\t\t\t bool *isnull,\n\t\t\t\t\t\t\t\t ItemPointer heap_tid,\n\t\t\t\t\t\t\t\t Relation heapRelation,\n\t\t\t\t\t\t\t\t IndexUniqueCheck checkUnique,\n\t\t\t\t\t\t\t\t bool index...
[ { "msg_contents": "Since updating to Xcode 15.0, my macOS machines have been\nspitting a bunch of linker-generated warnings. There\nseems to be one instance of\n\nld: warning: -multiply_defined is obsolete\n\nfor each loadable module we link, and some program links complain\n\nld: warning: ignoring duplicate l...
[ { "msg_contents": "Hi -hackers,\n\nWe've got customer report that high max_connections (3k) with high\npgstat_track_activity_query_size (1MB) ends up with:\n\npostgres=# select * from pg_stat_get_activity(NULL);\nERROR: invalid memory alloc request size 18446744072590721024\npostgres=# select version();\n ...
[ { "msg_contents": "postgres=# SET enable_seqscan = off;\nSET\npostgres=# explain select * from t;\n QUERY PLAN \n-------------------------------------------------------------------------\n Seq Scan on t (cost=10000000000.00..10000000023.60 rows=1360 ...
[ { "msg_contents": "Hello.\n\nI noticed that -c option of initdb behaves in an unexpected\nmanner. Identical variable names with variations in letter casing are\ntreated as distinct variables.\n\n$ initdb -cwork_mem=100 -cWORK_MEM=1000 -cWork_mem=2000\n...\n$ grep -i 'work_mem ' $PGDATA/postgresql.conf\nwork_mem...
[ { "msg_contents": "Hello,\n\nOne of our customers recently complained that his pg_dump stopped \nabruptly with the message \"out of memory\".\n\nAfter some time, we understood that the 20 million of large objects were \nresponsible for the huge memory usage (more than 10 GB) by pg_dump.\n\nI think a more useful...
[ { "msg_contents": "Hello,\n\nI have a question about the automatic removal of unused WAL files. When\nloading data with pg_restore (200Gb) we noticed that a lot of WALs files\nare generated and they are not purged automatically nor recycled despite\nfrequent checkpoints, then pg_wal folder (150Gb) fill and beco...
[ { "msg_contents": "In [1] Andrey highlighted that I'd forgotten to add print_path()\nhandling for TidRangePaths in bb437f995.\n\nI know the OPTIMIZER_DEBUG code isn't exactly well used. I never\npersonally use it and I work quite a bit in the planner, however, if\nwe're keeping it, I thought maybe we might get...
[ { "msg_contents": "Greetings, everyone!\nI would like to offer my patch on the problem of removing values from enums\n\nIt adds support for expression ALTER TYPE <enum_name> DROP VALUE\n<value_name>\n\nAdded:\n1. expression in grammar\n2. function to drop enum values\n3. regression tests\n4. documentation", ...
[ { "msg_contents": "Hi hackers,\n\nPlease find attached a patch proposal to $SUBJECT.\n\nThis patch allows the role provided in BackgroundWorkerInitializeConnection()\nand BackgroundWorkerInitializeConnectionByOid() to lack login authorization.\n\nIn InitPostgres(), in case of a background worker, authentication...
[ { "msg_contents": "Branching off from [0], here is a for-discussion patch about some \ncorrections for the pg_resetwal -c (--commit-timestamp-ids) option.\n\nFirst, in the documentation for finding a manual value for the -c option\nbased on the files present in the data directory, it was missing a \nmultiplier,...
[ { "msg_contents": "Hackers,\n\nWhile reading through [1] I saw there were two instances where \nbackup_label was removed to achieve a \"successful\" restore. This might \nwork on trivial test restores but is an invitation to (silent) disaster \nin a production environment where the checkpoint stored in backup_l...
[ { "msg_contents": "In c4a1933b4 I pushed a fix for a 4 year old bug in print_path() where\nI'd forgotten to add handling for TidRangePaths while working on\nbb437f995.\n\n4 years is quite a long time for such a bug. Maybe that's because\nnobody uses OPTIMIZER_DEBUG. I certainly don't, and Tom mentions [1]\nhe d...
[ { "msg_contents": "Hi,\n\nI found a link in the docs that referred to the stats \"views\" section,\ninstead of the more relevant (IMO) stats \"functions\" section.\n\nPSA the 1 line patch -- it explains what I mean better than I can\ndescribe in words...\n\n======\nKind Regards,\nPeter Smith.\nFujitsu Australi...
[ { "msg_contents": "Dear hackers,\n(CC: Peter Eisentraut - committer of the problematic commit)\n\nWhile developing pg_upgrade patch, I found a candidate regression for pg_resetwal.\nIt might be occurred due to 1d863c2504.\n\nIs it really regression, or am I missing something?\n\n# Phenomenon\n\npg_resetwal with...
[ { "msg_contents": "I have a private repository on GitHub where I park PostgreSQL \ndevelopment work. I also have Cirrus activated on that repository, to \nbuild those branches, using the existing Cirrus configuration.\n\nNow under the new system of limited credits that started in September, \nthis blew through...
[ { "msg_contents": "Hello,\n\n \n\nThere is a problem on receiving large tsvector from binary format with\ngetting error \"invalid tsvector: maximum total lexeme length exceeded\".\nRequired simple steps to reproduce problem:\n\n- Make table with one column of type 'tsvector'\n\n- Add row with large tsvector (90...
[ { "msg_contents": "Hello,\n\nWhile working on my talk for PGConf.NYC next week I came across this\nbullet in the docs on heap only tuples:\n\n> Old versions of updated rows can be completely removed during normal\n> operation, including SELECTs, instead of requiring periodic vacuum\n> operations. (This is possi...
[ { "msg_contents": "Hi\n\nI had to fix plpgsql_check issue\nhttps://github.com/okbob/plpgsql_check/issues/155\n\nThe problem is in execution of _PG_init() in CREATE EXTENSION time.\n\nIt is a problem for any extension that uses plpgsql debug API, because it\nis quietly activated.\n\nIs it necessary?\n\nRegards\n...
[ { "msg_contents": "Hi I am trying to implement a LRU cache in postgres extension. Please find\nthe markdown file for more details. Looking forward to hearing from you.", "msg_date": "Sat, 30 Sep 2023 02:26:57 +0530", "msg_from": "Lakshmi Narayana Velayudam <dev.narayana.v@gmail.com>", "msg_from_op":...
[ { "msg_contents": "The committfest app is down for repairs. We will reply back here once it \nis back up.\n\n-- \nJoe Conway\nPostgreSQL Contributors Team\nRDS Open Source Databases\nAmazon Web Services: https://aws.amazon.com\n\n\n", "msg_date": "Sat, 30 Sep 2023 08:47:00 -0400", "msg_from": "Joe Conwa...
[ { "msg_contents": "Hi,\n\nRemove ParallelReadyList and worker_spi_state from typedefs.list,\nthese structures have been removed as part of an earlier commits,\nParallelReadyList was removed as part of\n9bfd44bbde4261181bf94738f3b041c629c65a7e. worker_spi_state was removed\nas part of af720b4c50a122647182f4a030b...
[ { "msg_contents": "Hello. While reading the docs for the enable_partitionwise_aggregate\nparameter on the Query Planning page, I thought the description had a small\nmistake that could be improved.\n\nThe current wording is: \"which allows grouping or aggregation on a\npartitioned tables performed separately \"...
[ { "msg_contents": "Hi, all\n\n\nWhen create  or refresh a Materialized View, if the view’s query has order by, we may sort and insert the sorted data into view.\n\n\tCreate Materialized View mv1 as select c1, c2 from t1 order by c2;\n\tRefresh Materialized View mv1;\n\nAnd it appears that we could get ordered d...
[ { "msg_contents": "Running pgstatindex on some !indisready indexes fails with \"ERROR: XX001:\ncould not read block 0 in file\". This reproduces it:\n\nbegin;\ndrop table if exists not_indisready_t;\ncreate table not_indisready_t (c int);\ninsert into not_indisready_t values (1),(1);\ncommit;\ncreate unique i...
[ { "msg_contents": "CREATE TABLE parent (id integer PRIMARY KEY);\n\nCREATE TABLE child (id integer REFERENCES parent ON DELETE CASCADE);\n\nCREATE FUNCTION silly() RETURNS trigger LANGUAGE plpgsql AS 'BEGIN RETURN NULL; END;';\n\nCREATE TRIGGER silly BEFORE DELETE ON child FOR EACH ROW EXECUTE FUNCTION silly();...
[ { "msg_contents": "Following [0], I did a broader analysis of some dubious or nonsensical \nlike/unlike combinations in the pg_dump tests.\n\nThis includes\n\n1) Remove useless entries from \"unlike\" lists. Runs that are not\n listed in \"like\" don't need to be excluded in \"unlike\".\n\n2) Ensure there i...
[ { "msg_contents": "Hello, all!\n\nI found a query which consumes a lot of memory and triggers OOM killer. \nMemory leak occurs in memoize node for numeric key.\nVersion postgresql is 14.9. The problem is very \nsimilar https://www.postgresql.org/message-id/17844-d2f6f9e75a622bed@postgresql.org\n\nI attached to ...
[ { "msg_contents": "Hi hackers,\n\nPlease find attached a tiny patch to $SUBJECT.\n\nIt:\n\n - provides more consistency to the way we get files size in TAP tests\n - seems more elegant that relying on a hardcoded result position\n\nRegards,\n\n-- \nBertrand Drouvot\nPostgreSQL Contributors Team\nRDS Open Sour...
[ { "msg_contents": "I posted this question to pgsql-general@lists.postgrsql.org<mailto:pgsql-general@lists.postgrsql.org> last week but on one has responded so posting here now.\n\nWe download the ODBC source from http://ftp.postgresql.org<http://ftp.postgresql.org/> and build it on-site, 13.02.0000 in this case...
[ { "msg_contents": "As September has ended, I have closed commitfest 2023-09. The status \nbefore I started moving patches over was\n\nStatus summary: Needs review: 189. Waiting on Author: 30. Ready for \nCommitter: 28. Committed: 68. Moved to next CF: 1. Returned with \nFeedback: 16. Rejected: 1. Withdrawn: 5....
[ { "msg_contents": "The following documentation comment has been logged on the website:\n\nPage: https://www.postgresql.org/docs/16/functions-range.html\nDescription:\n\nThe doc says:\r\n* unnest ( anymultirange ) → setof anyrange\r\n* Expands a multirange into a set of ranges. The ranges are read out in\nstorag...
[ { "msg_contents": "The attached v1-0001 patch adjusts some code in stringinfo.h to find\nmisusages of the appendStringInfo functions. I don't intend to commit\nthat, but I do intend to commit the patch for the new misusages that\nit found, which is also attached.\n\nThis is along the same lines as 8b26769bc, f...
[ { "msg_contents": "I noticed one or two \"monitoring\" links and linkends that are slightly\ninconsistent from all the others.\n\n~~~\n\n From \"Dynamic Statistics Views\"\n\npg_stat_activity, linkend=\"monitoring-pg-stat-activity-view\" ==> ok\npg_stat_replication, linkend=\"monitoring-pg-stat-replication-view...
[ { "msg_contents": "Hello,\n\nMy colleague has been working on submitting a patch [1] to the Ruby\nRails framework to address some of the problems discussed in [2].\nRegardless of whether that change lands, the change in Rails would be\nuseful since people will be running Postgres versions without this\npatch fo...
[ { "msg_contents": "The comment\n\n /* On some platforms, readline is declared as readline(char *) */\n\nis obsolete. The casting away of const can be removed.\n\nThe const in the readline() prototype was added in GNU readline 4.2, \nreleased in 2001. BSD libedit has also had const in the prototype since \...
[ { "msg_contents": "Hello all,\n \non pgsql-general this got no answers, so...\n\nAccording to:\n\nhttps://www.postgresql.org/docs/current/logical-replication-conflicts.html\n\nor\n\nhttps://www.postgresql.fastware.com/blog/addressing-replication-conflicts-using-alter-subscription-skip\n\nThe logfile is the _onl...
[ { "msg_contents": "The various command-line utilities that have recently acquired a\n--sync-method option document it like this:\n\n<term><option>--sync-method</option></term>\n\nBut that is not how we document options which take an argument. We do\nit like this:\n\n<term><option>--pgdata=<replaceable>directory...
[ { "msg_contents": "Hi,\n\nI'm opening this thread after a brief discussion regarding a potential \nnew syntax to enable annotations in pg_hba entries. [1]\n\nThis feature mainly aims to annotate pg_hba entries in a way that the \nannotations can be parsed and displayed in the pg_hba_file_rule view for \nreporti...
[ { "msg_contents": "\nHiya Hackers!\n\nSo I have some good news! At long last I've found a company/manager that \nwants to actually factually pay me to do some work on PG!!\n\nHad my performance review today, and Apple wants me to get a patch \naccepted this quarter, with the promise of more to come after that. ...
[ { "msg_contents": "Suppose we start with this nbtree (subset of a diagram from verify_nbtree.c):\n\n * 1\n * / \\\n * 2 <-> 3\n\nWe're deleting 2, the leftmost leaf under a leftmost internal page. After the\nMARK_PAGE_HALFDEAD record, the first downlink from 1 will ...
[ { "msg_contents": "Hi team,\n\n      We have observed that for logically same over clause two different window aggregate nodes are created in plan.  \nThe below query contains two window functions. Both Over clause contain the same partition & order clause in it. But in one over clause ordering option is mentio...
[ { "msg_contents": "Greetings,\n\nBefore 16 if I created an array type in schema1 it would be named\nschema1._array_type\nif I created the same type in schema 2 it would have been named\n\nschema2.__array_type\n\nCan someone point me to where the code was changed ?\n\nThanks,\nDave Cramer\n\nGreetings,Before 16 ...
[ { "msg_contents": "Dear Concern,\n\nWe are trying to connect SQL Server from PostgreSQL through odbc_fdw extension.\nWe are using PostgreSQL version 15 and enclosed installed extension is attached. First, we create the foreign server.\nThen we map the postgres user and created foreign table as per the requireme...
[ { "msg_contents": "On an instance running pg16.0:\n\nlog_time | 2023-10-05 10:03:00.014-05\nbackend_type | autovacuum worker\nleft | page verification failed, calculated checksum 5074 but expected 5050\ncontext | while scanning block 119 of relation \"public.postgres_log_2023_10...
[ { "msg_contents": "Hello,\n\nIs there a way, where an authorized user (Creates Table / Inserts Data) in\na DB, which the SuperUser cannot access the same.\n\nI understand SuperUser can revoke the access of the user, but he should not\nbe able to see the table structure and data inserted in those tables.\n\nBest...
[ { "msg_contents": "The \"Description\" and \"Notes\" parts of the following logical\nreplication PUB/SUB reference pages (almost always) link to each other\nwhenever a sibling command gets mentioned.\n\nCREATE PUBLICATION\nALTER PUBLICATION\nDROP PUBLICATION\n\nCREATE SUBSCRIPTION\nALTER SUBSCRIPTION\nDROP SUBS...
[ { "msg_contents": "Hi,\n\nI noticed a couple of typos in code. \"the the\" should have been \"the\",\nattached patch has the changes for the same.\n\nRegards,\nVignesh", "msg_date": "Fri, 6 Oct 2023 15:30:33 +0530", "msg_from": "vignesh C <vignesh21@gmail.com>", "msg_from_op": true, "msg_subject...
[ { "msg_contents": "There are a lot of Datum *values, bool *nulls argument pairs that should \nreally be const. The 0001 patch makes those changes. Some of these \nhunks depend on each other.\n\nThe 0002 patch, which I'm not proposing to commit at this time, makes \nsimilar changes but in a way that breaks the...
[ { "msg_contents": "Hi,\n\nI want to make a custom range (and multirange type) that carries a few useful details. \nLooks like I may have to implement the operators, custom functions and my own aggregator.\nWhere can I find the code SQL code for anything that relates to the tstzrange range type?\n\nOr would you ...
[ { "msg_contents": "Hello postgres hackers,\n\nI noticed that combination of prepared statement with generic plan and\n'IS NULL' clause could lead partition pruning to crash.\n\nAffected versions start from 12 it seems.\n\n'How to repeat' below and an attempt to fix it is in attachment.\n\n\nData set:\n------\nc...
[ { "msg_contents": "Hello hackers,\n\nFirst timer here with a question:\n\nI’ve searched through various e-mail threads and documents and could not find if pushdown of LIMIT clauses to FDW is implemented.\nSeen some conversation about that a couple of years ago when that was treated as a feature request but noth...
[ { "msg_contents": "Hello hackers,\n\nHere is an experimental POC of fast/cheap database cloning. For\nclones from little template databases, no one cares much, but it might\nbe useful to be able to create a snapshot or fork of very large\ndatabase for testing/experimentation like this:\n\n create database foo...
[ { "msg_contents": "In relation_excluded_by_constraints() when we're trying to figure out\nwhether the relation need not be scanned, one of the checks we do is to\ndetect constant-FALSE-or-NULL restriction clauses. Currently we perform\nthis check only when there is exactly one baserestrictinfo entry, and\nthe ...
[ { "msg_contents": "Hi All,\n\nAttached is a draft patch implementing LIMIT pushdown to Append and MergeAppend nodes.\n\nThis patch eliminates the need to resort to subqueries to optimise UNIONs.\nIt also enables more aggressive partition pruning.\nNot sure if it causes LIMIT pushdown to foreign partitions thoug...
[ { "msg_contents": "I just noticed that e8c334c47a fixes typos in e0b1ee17dc. I think there\nis an omission in _bt_readpage.\n\n--- a/src/backend/access/nbtree/nbtsearch.c\n+++ b/src/backend/access/nbtree/nbtsearch.c\n@@ -1784,7 +1784,7 @@ _bt_readpage(IndexScanDesc scan, ScanDirection dir,\nOffsetNumber offnum...
[ { "msg_contents": "Implement TODO item:\n\nFix log_line_prefix to display the transaction id (%x) for statements \nnot in a transaction block\n Currently it displays zero.\n\n\nCheck that the XID has been assigned at the location where the statement \nlog is now printed. If not, no statement log is output.\...
[ { "msg_contents": "I came across a crash in add_paths_to_append_rel() with the query below.\n\ncreate table t (a int);\n\ncreate table inh (b int);\ncreate table inh_child() inherits(inh);\n\nexplain (costs off)\nselect * from t left join lateral (select t.a from inh) on true limit 1;\nserver closed the connect...
[ { "msg_contents": "Hi,\n\nI've mentioned this to a few people before, but forgot to start an actual\nthread. So here we go:\n\nI think we should lower the default wal_blocksize / XLOG_BLCKSZ to 4096, from\nthe current 8192. The reason is that\n\na) We don't gain much from a blocksize above 4096, as we already ...
[ { "msg_contents": "The attached patch adds the word 'databases' to show that template0,\ntemplate1 and postgres are databases in a default installation.\n\nBest regards,\nGurjeet\nhttp://Gurje.et", "msg_date": "Mon, 9 Oct 2023 21:55:29 -0700", "msg_from": "Gurjeet Singh <gurjeet@singh.im>", "msg_fro...
[ { "msg_contents": "Hi all,\n\nWe have developed an extension, allowing PostgreSQL to run queries over\nencrypted data. This functionality is achieved via user-defined functions\nthat extend encrypted data types and support commonly used expression\noperations. Our tests validated its effectiveness with TPC-C an...
[ { "msg_contents": "The function has_multiple_baserels() is used in set_subquery_pathlist()\nto check and see if there are more than 1 base rel, by looping through\nsimple_rel_array[]. I think one simpler way to do that is to leverage\nroot->all_baserels by\n\n bms_membership(root->all_baserels) == BMS_MULTI...
[ { "msg_contents": "MobilityDB\nhttps://github.com/MobilityDB/MobilityDB\nis a PostgreSQL extension that depends on PosGIS.\n\nBradford Boyle who has been working on packaging MobilityDB\nhttps://www.postgresql.org/message-id/CAPqRbE716D3gpD0JDbaFAb72ELaJrPpG1LUZvobELNBgL3R0+g@mail.gmail.com\nhighlighted the iss...
[ { "msg_contents": "Dears,\n\nI noticed that in the `check_GUC_init` function, there is a direct\ncomparison using the != operator for two double values, which seems\nproblematic.\n\nI wrote this patch to fix this.\n\n--\nRegard,\nBowen Shi", "msg_date": "Tue, 10 Oct 2023 18:31:48 +0800", "msg_from": "Bo...
[ { "msg_contents": "Hi,\nI found a typo here while using psql. I think this should be a trivial patch.\nThe typo is that there is an extra `l` before `列出所有事件触发器`.\n\n-- \nregards,\nJinser Kafak.", "msg_date": "Wed, 11 Oct 2023 01:11:15 +0800", "msg_from": "jinser <aimer@purejs.icu>", "msg_from_op": t...
[ { "msg_contents": "Gents, I have a suggestion for DISTINCT ON clause syntax.\n \n DISTINCT ON (expression(s) [ORDER BY expression(s)]) \nDetermines the precedence within each DISTINCT ON group (i.e. the ‘first’ row to be picked)\n\nMotivation\n• Using the query-wide ORDER BY clause to determine which record...
[ { "msg_contents": "The btequalimage() header comment says:\n\n * Generic \"equalimage\" support function.\n *\n * B-Tree operator classes whose equality function could safely be replaced by\n * datum_image_eq() in all cases can use this as their \"equalimage\" support\n * function.\n\ninterval_ops, however, rec...
[ { "msg_contents": "Hi,\n\nThe parallel apply worker didn't add null termination to the string received\nfrom the leader apply worker via the shared memory queue. This action doesn't\nbring bugs as it's binary data but violates the rule established in StringInfo,\nwhich guarantees the presence of a terminating '...
[ { "msg_contents": "The small size of the SLRU buffer pools can sometimes become a\nperformance problem because it’s not difficult to have a workload\nwhere the number of buffers actively in use is larger than the\nfixed-size buffer pool. However, just increasing the size of the\nbuffer pool doesn’t necessarily ...
[ { "msg_contents": "Hi,\n\nI understand that in READ COMMITTED isolation level, SELECT queries\nreads a snapshot of the database as of the instant the query begins.\nAnd also a concurrent transaction(uncommitted) writing to the same\ntable won't block the readers.\nHowever, I see that in the heap_update(heapam.c...
[ { "msg_contents": "Hi,\n\nYou can't tell if your checkpointer is spending a lot of time waiting\naround for flags in delayChkptFlags to clear. Trivial patch to add\nthat. I've managed to see it a few times when checkpointing\nrepeatedly with a heavy pgbench workload.\n\nI had to stop and think for a moment ab...
[ { "msg_contents": "On Fri, Aug 25, 2023 at 8:35 AM Stephen Frost <sfrost@snowman.net> wrote:\n\n> Greetings,\n>\n> This is getting a bit far afield in terms of this specific thread, but\n> there's an ongoing effort to give PG administrators knobs to be able to\n> control how much actual memory is used rather th...
[ { "msg_contents": "Greetengs!\n\nFound that simple test pgbench -c20 -T20 -j8 gives approximately\nfor REL_15_STABLE at 5143f76: 336+-1 TPS\nand\nfor REL_16_STABLE at 4ac7635f: 324+-1 TPS\n\nThe performance drop is approximately 3,5% while the corrected standard deviation is only 0.3%.\nSee the raw_data.txt a...
[ { "msg_contents": "The attached patch adds special-case expression steps for common sets of steps\nin the executor to shave a few cycles off during execution, and make the JIT\ngenerated code simpler.\n\n* Adds EEOP_FUNCEXPR_STRICT_1 and EEOP_FUNCEXPR_STRICT_2 for function calls of\n strict functions with 1 or...
[ { "msg_contents": "Hello\n\nPostgreSQL's CREATE DOMAIN documentation (section Notes) describes a way how one can add NULL's to a column that has a domain with the NOT NULL constraint.\nhttps://www.postgresql.org/docs/current/sql-createdomain.html\n\nTo me it seems very strange and amounts to a bug because it de...