threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\n$subect needs fixing, because right now it says just:\n\n /*-------------------------------------------------------------------------\n * relation.c\n * PostgreSQL logical replication\n\nAttached find a patch to expand that a little bit.\n\n-- \nAmit Langote\nEnterpriseDB: http://...
[ { "msg_contents": "Hi,\n\nWhen I shut down the standby server just after setting up replication\nenvironment and shutting down the primary, I found that it took\nfive seconds to complete the shutdown of the standby server. Note that\nno WAL was generated between the setup of replication and the server\nshutdown...
[ { "msg_contents": "Hi,\n\nIn case gd->any_hashable is FALSE, grouping_is_hashable is never called.\nIn this case, the planner could use HASH for groupings, but will never know.\n\nApparently gd pointer, will never be NULL there, verified with Assert(gd !=\nNULL).\n\nregards,\nRanier Vilela", "msg_date": "Th...
[ { "msg_contents": "This is a proposal to add some features to pg_stat_statements.\nAttached is the patch of this.\n\npg_stat_statements uses a hash table to hold statistics,\nand the maximum number of its entries can be configured through \npg_stat_statements.max.\nWhen the number of entries exceeds the pg_stat...
[ { "msg_contents": "Hello.\n\nI’d like to improve pg_stat_statements so that it can report the \ntimestamp when the stats are reset. Currently it’s difficult to check \nthat reset timestamp. But this information is useful, for example, when \ncalculating the SQL executions per second by SELECT calls / (now() - \...
[ { "msg_contents": "Hi,\n\nWhile hacking my way around a different patch (better option handling\nfor pg_test_fsync), I got surprised by the fact that if we run the TAP\ntests, logging initialization could return with errno set to ENOTTY\nbecause we call isatty() to check for output coloring. I found that\nthis...
[ { "msg_contents": "Unsurprisingly, commit 1ed6b8956 has led to the buildfarm's\ncross-version upgrade tests no longer working, eg\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=tadarida&dt=2020-09-18%2013%3A06%3A52\n\nChecking for reg* data types in user tables ok\nChecking for contr...
[ { "msg_contents": "Hi!\n\nThere's a thread about GiST build [0]. And we've found out there that logging newly created index with batches of 32 pages is slightly faster. Heikki implemented new logging routine log_newpages() for GiST build and it makes code for this batching nice and clean.\nHere is PoC with port...
[ { "msg_contents": "pgcrypto has an abstraction for palloc/pfree via PX_OWN_ALLOC with the\nintention to make it easy to swap out for another allocator. There are however\na number of palloc calls that have snuck in over the years, so the abstraction\nis leaking a fair bit making it less useful. Since there ha...
[ { "msg_contents": "If I read the code correctly, the VACUUM PARALLEL option is capped by \nthe active max_parallel_maintenance_workers setting. So if I write \nVACUUM (PARALLEL 5), it will still only do 2 by default. Is that \ncorrect? The documentation (VACUUM man page) seems to indicate a \ndifferent behav...
[ { "msg_contents": "Hello\nI have a working proposal for a small feature, which I would describe in\none sentence as\n\"named parametrized queries\".\nBasically it allows to save something like this in a file:\n\n--psql:MyQuery1\nSELECT 42 FROM @0\nWHERE true\n--psql:end\n\n--psql:MyQuery2\n/* updates stuff... *...
[ { "msg_contents": "Hi!\n\nThe beta-tester of PG13 reported a inconsistency in our current jsonpath\ndatetime() method implementation. By the standard format strings in datetime()\nallows only characters \"-./,':; \" to be used as separators in format strings.\nBut our to_json[b]() serializes timestamps into XS...
[ { "msg_contents": "Hi\n\nIn (/contrib/bloom/blutils.c:277), I found it use DatumGetInt32 to get UInt32 type.\nIs it more appropriate to use DatumGetUInt32 here?\n\nSee the attachment for the patch\n\nBes regards,\nhouzj", "msg_date": "Mon, 21 Sep 2020 01:17:21 +0000", "msg_from": "\"Hou, Zhijie\" <houzj...
[ { "msg_contents": "Hi Hackers:\n\nI find the value in function _PG_init, the value of MaxBackends is 0.\nIn source, I find that the postmaster will first load library, and then calculate the value of MaxBackends.\n\nIn the old version, the MaxBackends was calculated by:\n\t MaxBackends = MaxConnections + autova...
[ { "msg_contents": "Hi,\n\nAs seen from downloads page, the Apt repo/rpms are not yet available for\ns390x for latest versions.\nWanted to know if there is any work going on/planned to provide Postgres in\nready-to-use package or installer form for s390x architecture?\nAny pointers would be helpful.\nThank you i...
[ { "msg_contents": "Hi!\n\nI am still working with reloptions patches, and noticed that in current master\ndeduplicate_items option exists, but never actually used.\nYou can set, it, you can dump it, it has proper representation in BTOptions, \nit is mentioned in documentation, but it is never actually used in t...
[ { "msg_contents": "Hi All,\n\nToday, while exploring logical replication in PostgreSQL, I noticed\nthat logical replication from PG version 13 and below to PG v14\n(development version) is not working. It has stopped working from the\nfollowing git commit onwards:\n\ncommit 464824323e57dc4b397e8b05854d779908b55...
[ { "msg_contents": "The pg_service.conf parsing thread [0] made me realize that we have a hardwired\nline length of max 256 bytes. Lifting this would be in line with recent work\nfor ecpg, pg_regress and pg_hba (784b1ba1a2 and 8f8154a50). The attached moves\npg_service.conf to use the new pg_get_line_append AP...
[ { "msg_contents": "If there's a better list than this, please let me know, but I figured\nhackers is appropriate since the extension building infrastructure is\ndocumented in core.\n\nWhile working on an in-house extension I realized that while PGXS\nprovides the standard regression test infrastructure, I'm not...
[ { "msg_contents": "Hi Hackers.\n\nI have a test table with multiple (10) columns defined as TIME WITHOUT\nTIME ZONE.\n\nWhen loading this table with a lot of data (e.g. \"COPY tbl FROM\n/my/path/2GB.csv WITH (FORMAT CSV)\") I observed it was spending an\nexcessive amount of time within the function GetCurrentDa...
[ { "msg_contents": "Hi Hackers,\n\nFollowing on from Dilip Kumar's POC patch for allowing parallelism of\nthe SELECT part of \"INSERT INTO ... SELECT ...\", I have attached a POC\npatch for allowing parallelism of both the INSERT and SELECT parts,\nwhere it can be allowed.\nFor cases where it can't be allowed (e...
[ { "msg_contents": "Hi hackers\n\nIn(/src/bin/scripts/reindexdb.c; /src/backend/access/rmgrdesc/dbasedesc.c; /src/pl/plpython/plpy_elog.c)\n\nI found some more places that should use appendPQExrBufferStr instead of appendPQExpBuffer.\n\nHere is the patch.\n\nPrevious Discussion:\nhttps://www.postgresql.org/messa...
[ { "msg_contents": "Hi all,\n\nI know it has been discussed before [1] but one of our customers complained\nabout something weird on one of their multi-tenancy databases (thousands of\nschemas with a lot of objects inside and one user by schema).\n\nSo when I checked the problem is because the missing TOAST for ...
[ { "msg_contents": "Hello hackers,\n\nI think we should be ensuring that directory entries for newly created\nmultixact files are durable at checkpoint time. Please see attached.", "msg_date": "Wed, 23 Sep 2020 13:45:51 +1200", "msg_from": "Thomas Munro <thomas.munro@gmail.com>", "msg_from_op": true...
[ { "msg_contents": "Hi hackers,\n\nI found a problem in logical replication.\nIt seems to have the same cause as the following problem.\n\n Creating many tables gets logical replication stuck\n https://www.postgresql.org/message-id/flat/20f3de7675f83176253f607b5e199b228406c21c.camel%40cybertec.at\n\n Logical ...
[ { "msg_contents": "TG_RELNAME was marked deprecated in commit 3a9ae3d2068 some 14 years ago, but\nwe still use it in the triggers test suite (test added in 59b4cef1eb74a a year\nbefore deprecation). Seems about time to move over to TG_TABLE_NAME ourselves,\nas TG_RELNAME is still covered by the test added in t...
[ { "msg_contents": "Hi,\n\nThe idea of this patch is to allow the leader and each worker insert the\ntuples in parallel if the SELECT part of the CTAS is parallelizable. Along\nwith the parallel inserts, if the CTAS code path is allowed to do\ntable_multi_insert()[1], then the gain we achieve is as follows:\n\nF...
[ { "msg_contents": "Hi all,\n\nEnabling FIPS with OpenSSL 1.0.2 causes direct calls to the SHAXXX\nroutines to fail:\n\"Low level API call to digest SHA256 forbidden in fips mode\"\n\nThis got discussed back in 2018, but I never got back to it:\nhttps://www.postgresql.org/message-id/20180911030250.GA27115@paquie...
[ { "msg_contents": "Hooks exist all over PG for extensions to cover various specific usages.\n\nThe hook I'd like to see would be in the PostgresMain() loop\nfor the API \"firstchar\" messages.\n\nWhile I started just wanting the hook for the absolute minimum overhead to execute a function, even faster than fast...
[ { "msg_contents": "Hi,\n\nIn (src/test/regress/sql/aggregates.sql)\n\nI found some tables is not dropped at the end of the sqlscript,\nIt does not hava any problem, but I think it's better to drop the table in time.\n\nPlease see the attachment for the patch.\n\nBest regards,\nHouzj", "msg_date": "Thu, 24 S...
[ { "msg_contents": "Hi,\n\nIn my extension I want to define some custom options for compiler.\nI do it in the following way:\n\nifdef USE_DISK\nCUSTOM_COPT += -DIMCS_DISK_SUPPORT\nendif\n\n\nSo if I want to enable disk support, I am building my extension as\n\nmake USE_DISK=1 clean all install\n\nand it normally...
[ { "msg_contents": "I'm breaking out a few questions I'd posed on another thread about the\nrelease timeline [1] into this new thread.\n\nI noticed on the PG13 release announcement that the link for\nincremental sort goes to the GUC docs [2] because (as Jonathan Katz\nconfirmed in the linked thread) that page ac...
[ { "msg_contents": "Hi,\n\nWhile working on a PG12-instance I noticed that the progress reporting of\nconcurrent index creation for non-index relations fails to update the\nindex/relation OIDs that it's currently working on in the\npg_stat_progress_create_index view after creating the indexes. Please find\nattac...
[ { "msg_contents": "This should be caught during --check, or earlier in the upgrade, rather than\nonly after dumping the schema.\n\nTypically, the tablespace dir would be left behind by a previous failed upgrade\nattempt, causing a cascade of failured upgrades. I guess I may not be the only\none with a 3 year o...
[ { "msg_contents": "Hello!\n\nI’d like to improve the deallocate tab completion.\n\nThe deallocate tab completion can’t complement “ALL”. Therefore, this \npatch fixes the problem.\n\nRegards,\n\nNaoki Nakamichi", "msg_date": "Fri, 25 Sep 2020 13:45:29 +0900", "msg_from": "btnakamichin <btnakamichin@oss....
[ { "msg_contents": "Hello!\n\nI’d like to improve the FETCH tab completion.\n\nThe FETCH tab completion . Therefore, this patch fixes the problem.\n\nPrevious function completed one of FORWARD, BACKWARD, RELATIVE, \nABSOLUTE, but now it completes one of FORWARD, BACKWARD, RELATIVE, \nABSOLUTE, ALL, NEXT, PRIOR, ...
[ { "msg_contents": "Hi,\r\n\r\n\tWhen I checked the encoding of the Po files, I noticed that src/bin/pg_config/po/ko.po on REL9_5_STABLE branch seemed a little different.\r\n\tThe ‘Content-Type’ of this file and file’s encoding are different from those under other modules, as follows:\r\n \r\n\tsrc/bin/pg_config...
[ { "msg_contents": "Hi all\n\nWhile working on extensions I've often wanted to enable cache clobbering\nfor a targeted piece of code, without paying the price of running it for\nall backends during postgres startup and any initial setup tasks that are\nrequired.\n\nSo here's a patch that, when CLOBBER_CACHE_ALWA...
[ { "msg_contents": "Hi\n\nIn (/src/backend/replication/backup_manifest.c)\n\nI found the following code:\n\n\tappendStringInfoString(&buf, \"\\n\");\n\tappendStringInfoString(&buf, \"\\\"\");\n\nSince only one bit string is appended here, \nI think it will be better to call appendStringInfoChar.\n\nBest reagrds,...
[ { "msg_contents": "Hi,\n\npg_stat_statements tracks the number of rows processed\nby some utility commands.\nBut, currently, it does not track the number of rows\nprocessed by REFRESH MATERIALIZED VIEW.\n\nAttached patch enables pg_stat_statements to track\nprocessed rows by REFRESH MATERIALIZED VIEW.\n\nRegard...
[ { "msg_contents": "Hi, hackers!\n\nI find the palloc0() is similar to the palloc(), we can use palloc() inside palloc0()\nto allocate space, thereby I think we can reduce duplication of code.\n\nBest regards!\n\n--\nJapin Li", "msg_date": "Fri, 25 Sep 2020 16:14:44 +0000", "msg_from": "Li Japin <japinl...
[ { "msg_contents": "Hi,\n\nIs the self-time of a tracked function (as reported by\npg_stat_get_xact_function_self_time) its total time minus\n\n- the time of other tracked functions it calls?\n\n- the time of other tracked or untracked functions it calls?\n\n- the time of other tracked/untracked functions or SPI...
[ { "msg_contents": "Hi hackers,\n\n\"InitBufTable\" is the function used to initialize the buffer lookup \ntable for buffer manager. With the memory size increasing nowadays, \nthere is a potential overflow issue for the parameter \"int size\" used by \n\"InitBufTable\". This function is invoked in freelist.c as...
[ { "msg_contents": "Hi,\n\nIn all the static analysis tools I’ve used, there are literally *hundreds*\nof alerts about a one suspect cast:\n\n64 bits sizet_t -> 32 bits int -> 64 bits size_t\n-#define VARHDRSZ ((int32) sizeof(int32))\n+#define VARHDRSZ (sizeof(int32))\n\nIs there any special reason for not simpl...
[ { "msg_contents": "Hi,\n\nWith sqlsmith I found a query that gives this error:\nERROR: ORDER/GROUP BY expression not found in targetlist\n\nI noted the query (sql query below, sorry it uses custom tables i\ncouldn't replicate with regression tables) because it doesn't include\nan ORDER/GROUP BY clause.\n\n--- ...
[ { "msg_contents": "Dear all\n\nIs there a pedagogical example showing KNN processing in GiST indexes ? I\nam looking for something equivalent to the example in file geo_spgist.c.\n\nThanks for your help\n\nEsteban\n\nDear allIs there a pedagogical example showing KNN processing in GiST indexes ? I am looking fo...
[ { "msg_contents": "Hi,\n\nI've briefly discussed this with Bruce some time ago in [1].\nReplaying the example referenced in the documentation does not give a Bitmap Heap Scan on tbloom but a parallel seq scan with the default configuration:\n\n-- tested on head\npostgres=# CREATE TABLE tbloom AS\npostgres-# ...
[ { "msg_contents": "Hi:\n\nI find we can't prune partitions in the planner if the qual is a stable\nfunction.\n\nCREATE TABLE measurement (\n city_id int not null,\n logdate date not null,\n peaktemp int,\n unitsales int\n) PARTITION BY RANGE (logdate);\n\nCREATE TABLE me...
[ { "msg_contents": "Over in [1] I complained to Tom that I thought he should use\nlist_nth() instead of linitial() and lsecond(). My reasoning was that\nwe already knew that the list contained 2 elements, and linitial() and\nlsecond() do some additional checks and return NULL if there are fewer\nthan that amount...
[ { "msg_contents": "This follows on from what I mentioned in [1]. I'll reiterate below:\n\nReally the topic is much more broad than what I wrote above, but the\nexample case I have is around subplan costing which results in the\nalternative subplan code making a bad choice.\n\nSo the example case is:\n\ncreate t...
[ { "msg_contents": "Hi.\n\nThe first attached patch\n(0001-Accept-SET-xyz-pqr-to-add-pqr-to-the-current-setting.patch) adds\nsupport for commands like the following, applicable to any configuration\nsettings that are represented as a comma-separated list of strings\n(i.e., GUC_LIST_INPUT):\n\n postgres=# SET ...
[ { "msg_contents": "Hi\n\nI found the function SPI_connect() has only one return value(SPI_OK_CONNECT).\nBut I also found that some places check the return value of SPI_connect() like the following:\n\n\tif (SPI_connect() != SPI_OK_CONNECT)\n\t\telog(ERROR, \"SPI_connect failed\");\n\nIs it necessary to check th...
[ { "msg_contents": "Change SHA2 implementation based on OpenSSL to use EVP digest routines\n\nThe use of low-level hash routines is not recommended by upstream\nOpenSSL since 2000, and pgcrypto already switched to EVP as of 5ff4a67.\nNote that this also fixes a failure with SCRAM authentication when using\nFIPS ...
[ { "msg_contents": "Hi, hackers\n\nI have a problem about XLogReader callback system\n\nIn xlog.c, function StartupXLOG\n\n\txlogreader =\n\t\tXLogReaderAllocate(wal_segment_size, NULL,\n\t\t\t\t\t\t XL_ROUTINE(.page_read = &XLogPageRead,\n\t\t\t\t\t\t\t\t\t .segment_open = NULL,\n\t\t\t\t\t\t\t\t\t .segment...
[ { "msg_contents": "Hello\r\n\r\nFound two more useless \"return;\" lines from the following code.\r\n .src/backend/regex/regcomp.c\r\n .src/interfaces/libpq/fe-secure.c\r\n\r\nMaybe it's better to remove them together?\r\n\r\nPrevious discussion:\r\nhttps://www.postgresql.org/message-id/20191128144653.GA27883@a...
[ { "msg_contents": "Hi,\n\nIn case of CTAS with no data, we actually do not insert the tuples\ninto the created table, so we can skip checking for the insert\npermissions. Anyways, the insert permissions will be checked when the\ntuples are inserted into the table.\n\nAttaching a small patch doing $subject.\n\nT...
[ { "msg_contents": "Dear all\n\nSince always I have used geometric types as a great pedagogical example in\norder to understand how indexes work in PostgreSQL so that I can program\nour indexes in MobilityDB\nhttps://github.com/MobilityDB/MobilityDB\nHowever, this requires to create tables with a big number of g...
[ { "msg_contents": "Hi\n\nIn (/src/pl/plpgsql/src/pl_exec.c), I found some code like the following:\n\n \tPG_CATCH();\n\t{\n\t\tif (expr->plan && !expr->plan->saved)\n\t\t\texpr->plan = NULL;\n\t\tPG_RE_THROW();\n\t}\n\tPG_END_TRY();\n\n\tif (expr->plan && !expr->plan->saved)\n\t\texpr->plan = NULL;\n\nSince PG_...
[ { "msg_contents": "Hi all,\n\nprion, that uses -DRELCACHE_FORCE_RELEASE -DCATCACHE_FORCE_RELEASE,\nhas just failed with an interesting failure:\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=prion&dt=2020-09-29%2005%3A24%3A11\n\nThe assertion failure happens in a parallel worker when attempting to\nat...
[ { "msg_contents": "In one of my earlier emails [1], I mentioned that there seems to be a\nproblem with how the cost for index only scans is being calculated.\n[1]\nhttps://www.postgresql.org/message-id/CANugjhsnh0OBMOYc7qKcC%2BZsVvAXCeF7QiidLuFvg6zmHy1C7A%40mail.gmail.com\n\nMy concern is that there seems to be...
[ { "msg_contents": "Hi all,\n\nWhile diving into the CF, I have noticed the following message from\nRemy (in CC):\nhttps://www.postgresql.org/message-id/0B55BD07-83E4-439F-AACC-FA2D7CF50532@lenstra.fr\n\nThe following two cases should fail the same way, but the second does\nnot because we check directly the flag...
[ { "msg_contents": "Hello,\n\n\nWe'd like to propose a feature to disable WAL to speed up data loading. This was inspired by a feature added in the latest MySQL. I wish you won't fear this feature...\n\n\nBACKGROUND\n========================================\n\nThis branches off from [1] as mentioned therein. ...
[ { "msg_contents": "Fix memory leak in plpgsql's CALL processing.\n\nWhen executing a CALL or DO in a non-atomic context (i.e., not inside\na function or query), plpgsql creates a new plan each time through,\nas a rather hacky solution to some resource management issues. But\nit failed to free this plan until e...
[ { "msg_contents": "Hello\n\nPavan Deolasee recently noted that a few of the\nHeapTupleHeaderIndicatesMovedPartitions calls added by commit\n5db6df0c0117 are useless, since they are done after comparing t_self\nwith t_ctid. That's because t_self can never be set to the magical\nvalues that indicate that the tup...
[ { "msg_contents": "I noticed this recent buildfarm failure:\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=sidewinder&dt=2020-09-29%2018%3A45%3A17\n\nwhich boils down to\n\nerror running SQL: 'psql:<stdin>:1: ERROR: could not connect to the publisher: FATAL: number of requested standby connections...
[ { "msg_contents": "Hackers,\n\nOver in [1] Greg got confused by some wording in our NOTIFY documentation.\nThe attached patch uses \"emits\" and \"delivered\" more consistently (in\nlieu of \"processed\" in the complained of location).\n\n[1]\nhttps://www.postgresql.org/message-id/6EDB6A52-17F1-4DA9-B5B8-3BFFD5...
[ { "msg_contents": "In Bug# 11636 [1] ChandraKumar complained that we documented fairly\nexplicitly how to write json boolean true and false but not json null.\n While repeating the entire RFC in our docs isn't desirable its seems worth\nconsidering making the comments on the existing table consistently cover\nq...
[ { "msg_contents": "Hi all\n\nRandom tip for future searchers. If you've modified pg_proc.dat and initdb\nfails with \"proargmodes is not a 1-D char array\" - it could well actually\nbe that the length of proargmodes does not match the length of\nproallargtypes given the test\n\n ARR_DIMS...
[ { "msg_contents": "Hi\n\nWhen looking into the code about hash disk,\nI found some comment in nodeAgg.c may have not been updated.\n\n1. Since function lookup_hash_entry() has been deleted, \nthere are still some comment talk about lookup_hash_entry().\n\n * and is packed/unpacked in lookup_hash_entry() / agg_r...
[ { "msg_contents": "Hi all\n\nI've attached a PoC patch demonstrating how to use the linux ioctls\nSIOCINQ and SIOCOUTQ and its getsockopt option TCP_INFO to expose a\nlot of useful network socket info directly in system views.\n\nSample output from pg_stat_replication, \\x format, trimmed, from a\ntest run wher...
[ { "msg_contents": "CREATE TABLE t(i int) PARTITION BY RANGE(i);\nCREATE TABLE t1 PARTITION OF t FOR VALUES FROM (1) TO (10);\nCREATE OR REPLACE FUNCTION tgf() RETURNS trigger LANGUAGE plpgsql AS $$ begin raise exception 'except'; end $$;\nCREATE TRIGGER tg AFTER INSERT ON t FOR EACH ROW EXECUTE FUNCTION tgf();\...
[ { "msg_contents": "A VM crashed which is now running PG13.0 on centos7:\n\nSep 30 19:40:08 database7 abrt-hook-ccpp: Process 17905 (postgres) of user 26 killed by SIGABRT - dumping core\nCore was generated by `postgres: telsasoft ts 192.168.122.11(34608) SELECT '.\n\nUnfortunately, the filesystem wasn't larg...
[ { "msg_contents": "In PLySequence_ToArray_recurse(), there's this check:\n\n> \tif (PySequence_Length(list) != dims[dim])\n> \t\tereport(ERROR,\n> \t\t\t\t(errmsg(\"wrong length of inner sequence: has length %d, but %d was expected\",\n> \t\t\t\t\t\t(int) PySequence_Length(list), dims[dim]),\n> \t\t\t\t (errdet...
[ { "msg_contents": "Hi,\n\nLooking at the guc file code, GUC_scanstr() is almost the same as the\nexported function scanstr(), except the latter requires finicky extra\ncoding around double quotes both in its callers and while creating the\ninput.\n\nIn the attached, the GUC_scanstr() function body is moved to s...
[ { "msg_contents": "Hi hackers,\n\nInvestigating one of customer's support cases I found out that walsender \nis not calculating WAL records CRC and send them to replicas without any \nchecks.\nAs a result damaged WAL record causes errors on all replicas:\n\n         LOG: incorrect resource manager data checksum...
[ { "msg_contents": "Given the plan example:\n\nCREATE TABLE measurement (\n city_id int not null,\n logdate date not null,\n peaktemp int,\n unitsales int\n) PARTITION BY RANGE (logdate);\n\nCREATE TABLE measurement_y2006m02 PARTITION OF measurement\n FOR VALUES FROM (...
[ { "msg_contents": "Hi,\n\nCurrently, it's not an error for CREATE COLLATION to be invoked\nwith options repeated several times. The last (rightmost) value is kept\nand the others are lost.\nFor instance CREATE COLLATION x (lc_ctype='en_US.UTF8',\nlc_collate='en_US.UTF8', lc_ctype='C')\nsilently ignores lc_ctype...
[ { "msg_contents": "Hi Mark,\n\nshoveler has been failing for a while with an odd error. E.g.\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=shoveler&dt=2020-09-18%2014%3A01%3A48\n\nIllegal instruction\npg_dumpall: error: pg_dump failed on database \"template1\", exiting\nwaiting for server to shut dow...
[ { "msg_contents": "Hi,\n\nRobert forwarded me a pgsql-general thread [1] where a ON DELETE\nCASCADE specified on a foreign key pointing to a partitioned table is\nshown to cause a possibly surprising end result during an update of\nthe partitioned table. Example from that thread:\n\ncreate table parent ( id se...
[ { "msg_contents": "Hello hackers,\n\nIn heap_prepare_freeze_tuple, we make the following assumption:\n\n * It is assumed that the caller has checked the tuple with\n * HeapTupleSatisfiesVacuum() and determined that it is not HEAPTUPLE_DEAD\n * (else we should be removing the tuple, not freezing it).\n\nThus, wh...
[ { "msg_contents": "Hi,\n\nI am having a hard time pinning down which function creates a prepared\nstatement. Say in some language I create a Prepared Statement and send it\noff. Before the first time I execute the prepared statement, which function\nis the one that 'creates' the prepared statement. In other wor...
[ { "msg_contents": "I saw someone ask once for a schema diagram of the system catalogs. \nThings like that have occasionally been produced manually, but they are \nnot regularly updated. That made me wonder, why can't we add primary \nand foreign keys to system catalogs and then have existing tools produce \nsu...
[ { "msg_contents": "Hi,\n\nWould it be possible to mark functions in contrib/unnaccent [1] as IMMUTABLE?\n\nWe would gain the possibility to use it to enforce uniqueness.\n\nI understand that the main drawback is that unicode rules are\nperiodically updated. So it would be needed to reindex indices on\nunaccent(...
[ { "msg_contents": "As instructed by Alexander Korotkov, I'm linking the patch:\n\nhttps://github.com/petru-ghita/postgres/commit/d6d1f340cd34db8176744ede7f0fe588d870a33f\n\nKind regards,\npetru ghita\n\n\n", "msg_date": "Sat, 3 Oct 2020 14:13:01 +0200", "msg_from": "Petru Ghita <petru.ghita@gmail.com>",...
[ { "msg_contents": "While hacking on a patch that touches equivclass.c, I came across\na couple of things that seemed wrong, and are fixed by the attached\nproposed patch.\n\nFirst, get_eclass_for_sort_expr() computes expr_relids and nullable_relids\ntoo soon. This is a waste of a not-really-trivial number of c...
[ { "msg_contents": "In these days when we run almost all test cases in parallel, it's\nfrequently not that easy to tie a \"TRAP: ...\" message in the log\nto nearby log messages. (The postmaster's subsequent complaint\noften helps, but it could be some distance away in the log; and\ngood luck untangling things ...
[ { "msg_contents": "If you run the core regression tests with geqo_threshold = 2\n(injected, say, via ALTER SYSTEM SET), you will notice the\nearlier tests showing some join ordering differences, which\nis unsurprising ... but when it gets to partition_join, that\ntest just dumps core.\n\nInvestigation shows tha...
[ { "msg_contents": "Hi,\n\nAutoprewarm module is using it's own SIGHUP(apw_sigterm_handler,\ngot_sigterm) and SIGTERM(apw_sighup_handler, got_sighup) handlers which are\nsimilar to standard signal handlers(except for a difference [1]). Isn't it\ngood to remove them and use standard SignalHandlerForConfigReload ...
[ { "msg_contents": "\nDear All,\n\nI've used PostgreSQL since version 9.x successfully on Linux, macOS\nand Windows. Today I've upgraded from 12.3 to 13.0 and suddenly I can\nnot start the server any more on Ubuntu 20.04 (inside Docker on Ubuntu\n18.04) and on macOS 10.15.\n\nI get reproducibly the error:\n2020-...
[ { "msg_contents": "hornet has failed its last five runs with\n\n2020-10-05 22:45:42.784 UTC [34734498:40] pg_regress/create_aggregate LOG: statement: create aggregate my_percentile_disc(float8 ORDER BY anyelement) (\n\t stype = internal,\n\t sfunc = ordered_set_transition,\n\t finalfunc = percentile_disc_fi...
[ { "msg_contents": "Hello.\n\nIf I read the documentation of the SHOW command, it says:\n\nhttps://www.postgresql.org/docs/13/sql-show.html\n\n> name \n> The name of a run-time parameter. Available parameters are documented\n> in Chapter 19 and on the SET reference page. In addition, there are a\n> few par...
[ { "msg_contents": "pg_upgrade documentation says it supports upgrades from 8.4 and newer.\n\nBut there is code in there that makes a check and differs pre-8.4 from\n8.4-or-newer.\n\nISTM that code could be cleaned out, because it should be dead based on the\ninitial check that we are upgrading from 8.4 or later...
[ { "msg_contents": "For a long time now, pg_upgrade drops a script (analyze_new_cluster.sh)\nthat just calls vacuumdb to run the analyze in stages. This script made a\nlot of sense back when it actually implemented the stages, but these days\nsince it's just calling a single command, I think it's just unnecessar...
[ { "msg_contents": "The attached patch adds a switch --no-instructions to initdb and\npg_upgrade, which prevents them from printing instructions about how to\nstart the cluster (initdb) or how to analyze and delete clusters\n(pg_upgrade).\n\nThe use case for this is for example the debian or redhat package wrapp...
[ { "msg_contents": "Hi\n\nThe pg_dump doc page [1], under the -t/--table option, contains a Note\ndocumenting the behavioural differences introduced in PostgreSQL 8.2.\n\nAs it's been almost exactly 14 years since that note was added [2], I suggest\nit can be removed entirely.\n\n[1] https://www.postgresql.org/d...
[ { "msg_contents": "Hi\n\nRecently I ran into a case where someone was wondering why it was not\npossible to dump the contents of a view, even though the documentation [1]\nseems to imply this is possible.\n\nCurrently it says:\n\n Dump only tables with names matching pattern. For this purpose, \"table\"\n inc...
[ { "msg_contents": "Hello!\nI am trying to help for Project PostgreSQL. Check source code PostgreSQL by\nPVS-Studio.\nPVS-Studio have many issue, but some issue is interesting.\nnbtpage.c:356 <http://localhost/sources/nbtpage.c_24.html#ln356> *High* V547\n<https://www.viva64.com/en/w/v547/> Expression 'metad->bt...
[ { "msg_contents": "Hi,\n\nwe had a customer incident recently where they needed to do a PITR.\nTheir data directory is on a NetApp NFS and they have several hundred\ndatabases in their instance. The startup sync (i.e. before the message\n\"starting archive recovery\" appears) took 20 minutes and during the\nfir...
[ { "msg_contents": "Hi,\n\nFix progname memory leak in ecpg client.\nIssue taken from todo list https://wiki.postgresql.org/wiki/Todo.\n\nBest regards,\nMaksim Kita", "msg_date": "Wed, 7 Oct 2020 14:31:54 +0300", "msg_from": "Maksim Kita <kitaetoya@gmail.com>", "msg_from_op": true, "msg_subject":...
[ { "msg_contents": "Hi,\n\nThere is a question related to TODO task with name \"Allow deleting enumerated values from an existing enumerated data type\".\nI made simple changes in parser and implement RemoveEnumLabel function, but as I understand if enum value that we want to \ndelete is in use by some tables, w...