threads
listlengths
1
2.99k
[ { "msg_contents": "The logical replication subscription side does not fire per-column \nupdate triggers when applying an update change. (Per-table update \ntriggers work fine.) This patch fixes that. Should be backpatched to PG10.\n\nA patch along these lines is also necessary to handle triggers involving \n...
[ { "msg_contents": "If I do something like this:\n\nexplain (analyze) select * from pgbench_accounts \\watch 1\n\nIt behaves as expected. But once I break out of the loop with ctrl-C, then\nif I execute the same thing again it executes the command once, but shows\nno output and doesn't loop. It seems like some...
[ { "msg_contents": "commit message says it all.\n\n-- \n�lvaro Herrera Developer, https://www.PostgreSQL.org/", "msg_date": "Fri, 13 Dec 2019 17:07:51 -0300", "msg_from": "Alvaro Herrera <alvherre@alvh.no-ip.org>", "msg_from_op": true, "msg_subject": "xlog.c variable poi...
[ { "msg_contents": "To whom it may concern,\n\nI'm Utsav Parmar, pursuing my B. Tech in Computer Engineering. I like to\nwork on new technologies and am currently looking for open-source projects\nto contribute to.\n\nAs it may turn out, I've got a college project in my curriculum this\nsemester under “Software ...
[ { "msg_contents": "Hello, this week I decided to pursue an error a bit further than\nusual, even after having fixed it for myself, I found that I could fix\nit for future newcomers, especially those running\ncontainerized distributions.\n\nThe problem was that running the command psql without arguments\nreturne...
[ { "msg_contents": "Hello,\n\nOn cfbot.cputube.org, we keep seeing random failures on appveyor (the\nCI provider it uses for Windows) in this step:\n\n- appveyor-retry cinst winflexbison\n\n\"cinst\" is the apt/yum/pkg-like tool from the Chocolatey package\nsystem, but unfortunately its repository is frequently ...
[ { "msg_contents": "Hello pg hackers,\n\nThis is the definition of the function:\n\nSyncRepWaitForLSN(XLogRecPtr lsn, bool commit)\n\n1. In the code, it emits ereport(WARNING) for the\nProcDiePending/QueryCancelPending case like this:\n\n ereport(WARNING,\n (errcode(ERRCODE_ADMI...
[ { "msg_contents": "Hi all,\n\nTraditionally, when Bison generates the header file, it starts\nnumbering named tokens at 258, so that numbers below 256 can be used\nfor character literals. Then, during parsing, the external token\nnumber or character literal is mapped to Bison's internal token number\nvia the yy...
[ { "msg_contents": "Hi,\n\nWhen exporting data with psql -c \"...\" >file or select ... \\g file inside\npsql,\npost-creation output errors are silently ignored.\nThe problem can be seen easily by creating a small ramdisk and\nfilling it over capacity:\n\n$ sudo mount -t tmpfs -o rw,size =1M tmpfs /mnt/ramdisk\n...
[ { "msg_contents": "I started to think a little harder about the rough ideas I sketched\nyesterday in [1] about making the planner deal with outer joins in\na less ad-hoc manner. One thing that emerged very quickly is that\nI was misremembering how the parser creates join alias Vars.\nConsider for example\n\ncr...
[ { "msg_contents": "Hi,\n\nAccording to microsoft documentation at:\nhttps://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptgenrandom\nThe function CryptGenRandom is deprecated, and may can be removed in future release.\nConsidering that postgres only supports windows versions that have the...
[ { "msg_contents": "A customer's report query hit this error.\nERROR: could not resize shared memory segment \"/PostgreSQL.2011322019\" to 134217728 bytes: No space left on device\n\nI found:\nhttps://www.postgresql.org/message-id/flat/CAEepm%3D2D_JGb8X%3DLa-0PX9C8dBX9%3Dj9wY%2By1-zDWkcJu0%3DBQbA%40mail.gmail.c...
[ { "msg_contents": "I want to address the issue that calling a record-returning function \nalways requires specifying a result column list, even though there are \ncases where the function could be self-aware enough to know the result \ncolumn list of a particular call. For example, most of the functions in \n...
[ { "msg_contents": "Hi,\nAccording to microsoft documentation at:\nhttps://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptgenrandom\nThe function CryptGenRandom is deprecated, and may can be removed in future release.\nThis patch add support to use BCryptGenRandom.\n\nBCryptGenRandom appare...
[ { "msg_contents": "Hi,\nOn exec.c, have two memory leaks, and a possible access beyond heap bounds, the patch tries to fix them.\nAccording to documentation at:\nhttps://en.cppreference.com/w/c/experimental/dynamic/strdup\n\"The returned pointer must be passed to free to avoid a memory leak. \"\n\nregards,\nRan...
[ { "msg_contents": "I noticed while investigating [1] that we have one single solitary\nuse of setenv(3) in our code base, in secure_open_gssapi().\n\nIt's been project policy since 2001 to avoid setenv(), and I notice\nthat src/port/win32env.c lacks support for setenv(), making it\npretty doubtful that the call...
[ { "msg_contents": "Hi,\n\nI was responding to a question about postgres' per-backend memory usage,\nmaking me look at the various contexts below CacheMemoryContext. There\nis pretty much always a significant number of contexts below, one for\neach index:\n\n CacheMemoryContext: 524288 total in 7 blocks; 8680 ...
[ { "msg_contents": "De: Michael Paquier\nEnviadas: Terça-feira, 17 de Dezembro de 2019 00:36\n\n>Hmm. In the case of this logic, we are referring to the current end\n>of WAL with endptr, and what you are calling the startptr is really\n>the redo LSN of the last checkpoint in all the routines which are now\n>con...
[ { "msg_contents": "De: Michael Paquier\nEnviadas: Terça-feira, 17 de Dezembro de 2019 03:43\nPara: Ranier Vilela\nCc: pgsql-hackers@lists.postgresql.org\nAssunto: Re: [PATCH] Windows port add support to BCryptGenRandom\n\n>And looking at this page, it is said that the minimum version\n>supported by this functio...
[ { "msg_contents": "Hi,\n\nI wonder if it's worthwhile to fix the following not-so-friendly error message:\n\ncreate index on foo ((row(a)));\nERROR: column \"\" has pseudo-type record\n\nFor example, the attached patch makes it this:\n\ncreate index on foo ((row(a)));\nERROR: column \"row\" has pseudo-type re...
[ { "msg_contents": "Hi,\n\nIt seems to me that we currently allow expressions that are anonymous\nand self-referencing composite type records as partition key, but\nshouldn't. Allowing them leads to this:\n\ncreate table foo (a int) partition by list ((row(a, b)));\ncreate table foo1 partition of foo for values...
[ { "msg_contents": "While following an old link to\nhttps://www.postgresql.org/docs/10/auth-methods.html\n\nI see a list of links to authentication methods. However:\n\nWhen I hit the current version\nhttps://www.postgresql.org/docs/current/auth-methods.html\n\nThere are absolutely no links...\n\nDave Cramer\n\n...
[ { "msg_contents": "De: Michael Paquier\nEnviadas: Terça-feira, 17 de Dezembro de 2019 04:45\n>And if you actually group things together so as any individual looking\n>at your patches does not have to figure out which piece applies to\n>what, that's also better.\nI'm still trying to find the best way.\n\n>Anyway...
[ { "msg_contents": "De: Michael Paquier\nEnviadas: Terça-feira, 17 de Dezembro de 2019 04:34\n>So, this basically matches with what the MS documents tell us, and my\n>impression: this API is available down to at least MSVC 2008, which is\n>much more than what we support on HEAD where one can use MSVC 2013 and\n>...
[ { "msg_contents": "Hi,\n\nIt seems that d986d4e87f6 forgot to update a comment upon renaming a variable.\n\nAttached fixes it.\n\nThanks,\nAmit", "msg_date": "Wed, 18 Dec 2019 15:49:31 +0900", "msg_from": "Amit Langote <amitlangote09@gmail.com>", "msg_from_op": true, "msg_subject": "obsolete com...
[ { "msg_contents": "As a curious omission, DROP RULE does not check allow_system_table_mods. \n Creating and renaming a rule does, and also creating, renaming, and \ndropping a trigger does. The impact of this is probably nil in \npractice, but for consistency we should probably add that. The patch is \nprett...
[ { "msg_contents": "I present a patch to allow READ UNCOMMITTED that is simple, useful and\nefficient. This was previously thought to have no useful definition within\nPostgreSQL, though I have identified a use case for diagnostics and\nrecovery that merits adding a short patch to implement it.\n\nMy docs for t...
[ { "msg_contents": "TransactionIdIsCurrentTransactionId() doesn't seem to be well optimized for\nthe case when an xid has not yet been assigned, so for read only\ntransactions.\n\nA patch for this is attached.\n\n-- \nSimon Riggs http://www.2ndQuadrant.com/\n<http://www.2ndquadrant.com/>\nPostgreS...
[ { "msg_contents": "De: Michael Paquier\nEnviadas: Quarta-feira, 18 de Dezembro de 2019 01:18\n>Committed that part.\nThanks.\n\n>Let's take one example. The changes in pg_dump/ like\n>/progname/prog_name/ have just been done in haste, without actual\n>thoughts about how the problem ought to be fixed. And in t...
[ { "msg_contents": "De: Michael Paquier\nEnviadas: Quarta-feira, 18 de Dezembro de 2019 02:19\n>This looks like a leftover of d9dd406, which has made the code to\n>require C99. As we don't support compilation with Windows XP and\n>require Windows 7, we should be able to remove all the dance around\n>MIN_WINNT i...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 16171\nLogged by: Mahadevan Ramachandran\nEmail address: mahadevan@rapidloop.com\nPostgreSQL version: 12.1\nOperating system: any\nDescription: \n\nRefer src/backend/commands/explain.c, version 12....
[ { "msg_contents": "I think previously also the same test failed but not as consistently\nas it is now. I see that consistently the same test case is failing.\n\nDec 17 01:35:33 t/010_logical_decoding_timelines....# Looks like you\nplanned 13 tests but ran 9.\nDec 17 01:35:33 # Looks like your test exited with ...
[ { "msg_contents": "Hello.\n\nI cannot find the reason why EDITOR value on Windows is quoted. It\nshould not be. One may force quote env var if he wants to.\n\nRight now, for example, one cannot use sublime, since to use it in a\nproper way you should\nSET EDITOR=\"C:\\Program Files\\Sublime\\subl.exe\" --wait\n...
[ { "msg_contents": "Hi,\n\nIs there somewhere a script that can do a restore backup file \"with \noids\" in some newer DB where there is no term \"with oids\"?\n\n\nVladimir Koković, DP senior(69)\n\nSerbia, Belgrade, 18.December 2019\n\n\n\n\n\n\n\nHi,\nIs there somewhere a script that can do a\n resto...
[ { "msg_contents": "According to [1], windows does not support setenv.\nWith the possibility of setenv going further [2], I am submitting in this\nthread, the patch to add setenv support on the windows side,\nIt is based on pre-existing functions, and seeks to correctly emulate the\nfunctioning of the POSIX sete...
[ { "msg_contents": "Hi\n\nI had a talk with one boy about development in plpgsql. He uses table's\nfunctions. More times he uses returns types based on some table type + few\nattributes. Now he use a ugly hack - he create a view on table plus some\ncolumns - and then he use the view related type as table functio...
[ { "msg_contents": "Hi,\n || curpages <= 0\nexpression is always false and can be safely removed.\nReasons:\n1. curpages is uint32 type\n2. its already test if is zero before.\n3. Never be negative\n\nregards,\nRanier Vilela", "msg_date": "Wed, 18 Dec 2019 17:12:04 -0300", "msg_from": "Ranier Vf <ranier....
[ { "msg_contents": "Commit bc8036fc666a (12 years ago) seems to have introduced an\nunnecessary catalog heap_open/close in order to do syscache accesses.\nI presume a preliminary version of the patch used sysscans or something.\nI don't think that's necessary, so this patch removes it.\n\n(I noticed while readin...
[ { "msg_contents": "Hi all,\n\nAs discussed here, there is in the tree a couple of things related to\npast versions of Windows:\nhttps://www.postgresql.org/message-id/20191218021954.GE1836@paquier.xyz\n\nSo I have been looking at that more closely, and found more:\n- MIN_WINNT can be removed from win32.h thanks ...
[ { "msg_contents": "The publication exists but for some reason the function can't find it\n\nSELECT * FROM pg_logical_slot_get_binary_changes('debezium', NULL,\nNULL,'proto_version','1','publication_names','dbz_publication');\nERROR: publication \"dbz_publication\" does not exist\nCONTEXT: slot \"debezium\", o...
[ { "msg_contents": "macOS does not support the socket option TCP_USER_TIMEOUT. Yet, I can \nstart a server with postgres -D ... --tcp-user-timeout=100 without a \ndiagnostic. Only when I connect I get a log entry\n\nLOG: setsockopt(TCP_USER_TIMEOUT) not supported\n\nPerhaps the logic in pq_settcpusertimeout()...
[ { "msg_contents": "Hi,\n\nWhile testing something unrelated, Tomas reported[1] that he could\nmake a parallel worker ignore a SIGTERM and hang forever in\nConditionVariableSleep(). I looked into this and realised that it's\nmore likely in master. Commit 1321509f refactored the latch wait loop\nto look a littl...
[ { "msg_contents": "More about expressions always false.\n1. /src/backend/executor/execExprInterp.c\nndims <= 0 neve be negative, because ndims aways is added up +1\n2. src/backend/utils/adt/formatting.c\nresult is declared long. Comparison with int limits is always false.\n3. src/backend/utils/adt/jsonfuncs.c\n...
[ { "msg_contents": "Continuing on always false expressions.\nThere are three difficult cases, whose solutions which needs to be well\nthought out.\nThis is not a case of simply removing the expressions, perhaps, but have to\nbe sure.\n\nFirst case:\nsrc \\ backend \\ executor \\ nodeSubplan.c (line 507)\n\nif (n...
[ { "msg_contents": "Hi, hackers!\n\nThis is continuation of thread [0] in pgsql-general with proposed changes. As Maksim pointed out, this topic was raised before here [1].\n\nCurrently, we can have split brain with the combination of following steps:\n0. Setup cluster with synchronous replication. Isolate prima...
[ { "msg_contents": "Superuser can permit passwordless connections on postgres_fdw\n\nCurrently postgres_fdw doesn't permit a non-superuser to connect to a\nforeign server without specifying a password, or to use an\nauthentication mechanism that doesn't use the password. This is to avoid\nusing the settings and ...
[ { "msg_contents": "Hi\nI created a read-only role as follows:\npsql -p 5434 kidsdpn03\nCREATE ROLE kidsdpn03_ro PASSWORD 'xxx';\nALTER ROLE kidsdpn03_ro WITH LOGIN;\nGRANT CONNECT ON DATABASE kidsdpn03 TO kidsdpn03_ro;\nGRANT USAGE ON SCHEMA kidsdpn03 TO kidsdpn03_ro;\nGRANT SELECT ON ALL TABLES IN SCHEMA kidsd...
[ { "msg_contents": "This is a usability complaint. If one knows enough about vacuum and/or\nlogging, I'm sure there's no issue.\n\nRight now vacuum shows:\n\n| 1 postgres=# VACUUM t; \n| 2 DEBUG: vacuuming \"public.t\"\n| 3 DEBUG: scanned index \"t_i_key\" to remove 999 row versions\n| 4 DETAIL: CPU:...
[ { "msg_contents": "This very small patch removes some duplicated code in pg_publication.\n\n-- \n�lvaro Herrera http://www.linkedin.com/in/alvherre", "msg_date": "Fri, 20 Dec 2019 17:10:17 -0300", "msg_from": "Alvaro Herrera <alvherre@2ndquadrant.com>", "msg_from_op": tr...
[ { "msg_contents": "When updating a table row with generated columns, we only need to \nrecompute those generated columns whose base columns have changed in \nthis update and keep the rest unchanged. This can result in a \nsignificant performance benefit (easy to reproduce for example with a \ntsvector column)....
[ { "msg_contents": "I just had to retrieve my jaw from the floor after reading this\nbit in RelationBuildPartitionDesc:\n\n * The system cache may be out of date; if so, we may find no pg_class\n * tuple or an old one where relpartbound is NULL. In that case, try\n * the table directly. ...
[ { "msg_contents": "Forking thread \"WAL logging problem in 9.4.3?\" for this tangent:\n\nOn Mon, Dec 09, 2019 at 06:04:06PM +0900, Kyotaro Horiguchi wrote:\n> I don't understand why mdclose checks for (v->mdfd_vfd >= 0) of open\n> segment but anyway mdimmedsync is believing that that won't happen and\n> I follo...
[ { "msg_contents": "I noticed a buildfarm failure here:\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=skate&dt=2019-12-22%2007%3A49%3A22\n\n================== pgsql.build/src/test/regress/regression.diffs ==================\n*** /home/pgbf/buildroot/REL_10_STABLE/pgsql.build/src/test/regress/expecte...
[ { "msg_contents": "Buildfarm member drongo has been failing the initdb TAP test in the\n9.4 branch for the last week or two:\n\n# Running: rm -rf 'C:\\prog\\bf\\root\\REL9_4_STABLE\\pgsql.build\\src\\bin\\initdb\\tmp_check\\tmp_testAHN7'/*\n'rm' is not recognized as an internal or external command,\noperable pr...
[ { "msg_contents": "Hi all,\n\nI was working on some stuff for table AMs, and I got to wonder it we\nhad better rename amapi.h to indexam.h and amapi.c to indexam.c, so as\nthings are more consistent with table AM. It is a bit annoying to\nname the files dedicated to index AMs with what looks like now a too\nge...
[ { "msg_contents": "Hi all,\n\nCurrently, we include the function name string in each FmgrBuiltin\nstruct, whose size is 24 bytes on 64 bit platforms. As far as I can\ntell, the name is usually unused, so the attached (WIP, untested)\npatch stores it separately, reducing this struct to 16 bytes.\n\nWe can go one...
[ { "msg_contents": "Hi All,\n\nWhile doing testing of \"parallel vacuum\" patch, I found that size of index\nrelation is not reducing even after deleting all the tuples and firing\nvacuum command. I am not sure that this is expected behavior or not. For\nreference, below I am giving one example.\n\npostgres=# cr...
[ { "msg_contents": "Per a recent thread, these patches remove string literals split with\n\\-escaped newlines. The first is for the message \"materialize mode\nrequired, but it is not allowed in this context\" where it's more\nprevalent, and we keep perpetuating it; the second is for other\nmessages, whose bulk...
[ { "msg_contents": "Bonjour Michaᅵl, hello devs,\n\nAs suggested in \"cce64a51\", this patch make pgbench use postgres logging \ncapabilities.\n\nI tried to use fatal/error/warning/info/debug where appropriate.\n\nSome printing to stderr remain for some pgbench specific output.\n\nThe patch fixes a inconsisten...
[ { "msg_contents": "Hi hackers,\n\nIn other thread \"[HACKERS] Block level parallel vacuum\"[1], Prabhat Kumar\nSahu reported a random assert failure but he got only once and he was not\nable to reproduce it. In that thread [2], Amit Kapila suggested some points\nto reproduce assert. I tried to reproduce and I...
[ { "msg_contents": "Hi,\n\nWhile performing below operations with Master-Slave configuration, Slave is\ncrashed.\nBelow are the steps to reproduce:\n\n-- create a Slave using pg_basebackup and start:\n./pg_basebackup -v -R -D d2 -p 55510\nmkdir /home/centos/ts1\n\n-- Session 1(Master):\n./psql postgres -p 55510\...
[ { "msg_contents": "I found this comment in fe-connect.c:\n\n /*\n * If GSSAPI is enabled and we have a credential cache, try to\n * set it up before sending startup messages. If it's already\n * operating, don't try SSL and instead just build the s...
[ { "msg_contents": "Hi Hackers,\n\nI have accidentally noticed that pg_replication_slot_advance only \nchanges in-memory state of the slot when its type is physical. Its new \nvalue does not survive restart.\n\nReproduction steps:\n\n1) Create new slot and remember its restart_lsn\n\nSELECT pg_create_physical_re...
[ { "msg_contents": "Hi,\n\nAs the document explains, column defaults can be specified separately for\neach partition. But I found that INSERT via the partitioned table ignores\nthat default. Is this expected behavior or bug?\n\nCREATE TABLE test (i INT, j INT) PARTITION BY RANGE (i);\nCREATE TABLE test1 PARTITIO...
[ { "msg_contents": "Hi,\n\nI'd like to propose to add pg_file_sync() function into contrib/adminpack.\nThis function fsyncs the specified file or directory named by its argument.\nIMO this is useful, for example, when you want to fsync the file that\npg_file_write() writes out or that COPY TO exports the data in...
[ { "msg_contents": "Hi,\n\nI want to test GSSAPI based encryption support added via commit ID\nb0b39f72b9904bcb80f97b35837ccff1578aa4b8.\n\nI have built source --with-gssapi.\nAfter installation I added the following line in pg_hba.conf\nhostgssenc all all 172.16.214.149/24 trust\nNext I ran the server and...
[ { "msg_contents": "Hello,\n\nGuillaume (in Cc) recently pointed out [1] that it's currently not\npossible to retrieve the list of parallel workers for a given backend\nat the SQL level. His use case was to develop a function in plpgsql\nto sample a given query wait event, but it's not hard to imagine other\nus...
[ { "msg_contents": "Hi,\n\nMy customer reported me that the queries through a partitioned table\nignore each partition's SELECT, INSERT, UPDATE, and DELETE privileges,\non the other hand, only TRUNCATE privilege specified for each partition\nis applied. I'm not sure if this behavior is expected or not. But anywa...
[ { "msg_contents": "Hello.\n\nI found that confirmed_flush in ReplicationSlot (PersistentData) is\npointed with a wrong name in the comments in slotfuncs.c\n\nThe attaches fixes that.\n\nregards.\n\n-- \nKyotaro Horiguchi\nNTT Open Source Software Center", "msg_date": "Thu, 26 Dec 2019 17:59:19 +0900 (JST)",...
[ { "msg_contents": "Hi All,\n\nWhen the following test-case is executed on master, it fails with an\nerror: \"ERROR: could not open relation with OID ...\"\n\n-- create a test table:\ncreate table tab1(a int, b text);\n\n-- create a test function:\ncreate or replace function f1() returns void as\n$$\ndeclare\n ...
[ { "msg_contents": "Hello\n\nOur current setup uses logical replication to build a BI replication server \nalong our primary clusters (running PG 10.10 so far). This implies having one \nlogical replication slot per database. After some analysis, we identified two \nhot spots behind this issue. Fixing them gave ...
[ { "msg_contents": "Hi all,\n\nIn commit ab5b4e2f9ed, we optimized AllocSetFreeIndex() using a lookup\ntable. At the time, using CLZ was rejected because compiler/platform\nsupport was not widespread enough to justify it. For other reasons, we\nrecently added bitutils.h which uses __builtin_clz() where available...
[ { "msg_contents": "I started writing this patch to avoid the possibly-misleading phrase: \"with no\nextra space\" (since it's expected to typically take ~2x space, or 1x \"extra\"\nspace).\n\nBut the original phrase \"with no extra space\" seems to be wrong anyway, since\nit actually follows fillfactor, so say ...
[ { "msg_contents": "I was wondering why we have a separate libpq.rc for libpq and use \nwin32ver.rc for all other components. I suspect this is also a leftover \nfrom the now-removed client-only Windows build. With a bit of tweaking \nwe can use win32ver.rc for libpq as well and remove a bit of duplicative \nc...
[ { "msg_contents": "Re-added -hackers.\n\nThanks for reviewing.\n\nOn Fri, Dec 27, 2019 at 05:22:47PM +0100, Fabien COELHO wrote:\n> The implementation simply extends an existing functions with a boolean to\n> allow for sub-directories. However, the function does not seem to show\n> subdir contents recursively. ...
[ { "msg_contents": "Hi!\n\nFound crash on production instance, assert-enabled build crashes in pfree() \ncall, with default config. v11, v12 and head are affected, but, seems, you need \nto be a bit lucky.\n\nThe bug is comparing old and new aggregate pass-by-ref values only by pointer \nvalue itself, despite on...
[ { "msg_contents": "Folks,\n\nWhile noodling around with an upcoming patch to remove user-modifiable\nRULEs, I noticed that WHEN conditions were disallowed from INSTEAD OF\ntriggers for no discernible reason. This patch removes that\nrestriction.\n\nI noticed that columns were also disallowed in INSTEAD OF trigg...
[ { "msg_contents": "As I have published on\nhttps://abdulyadi.wordpress.com/2019/12/26/reinforce-data-validation-prevent-direct-table-modification/,\nthe patch is to have \"private_modify\" option in table creation. For example:\nCREATE TABLE mytable (id integer) WITH (private_modify=true);\n\nHaving the option ...
[ { "msg_contents": "I recently came across the need for a gcd function (actually I needed\nlcm) and was surprised that we didn't have one.\n\n\nSo here one is, using the basic Euclidean algorithm.  I made one for\nsmallint, integer, and bigint.\n\n-- \n\nVik Fearing +33 6...
[ { "msg_contents": "It can sometimes be useful to match against a superuser in pg_hba.conf.\nFor example, one could imagine wanting to reject nonsuperuser from a\nparticular database.\n\n\nThis used to be possible by creating an empty role and matching against\nthat, but that functionality was removed (a long ti...
[ { "msg_contents": "We've often talked about the problem that we have no regression test\ncoverage for psql's tab completion code. I got interested in this\nissue while messing with the filename completion logic therein [1],\nso here is a draft patch that adds some testing for that code.\n\nThis is just prelimi...
[ { "msg_contents": "Hello \nhere is an unexpected error found while testing IVM v11 patches\n\ncreate table b1 (id integer, x numeric(10,3));\ncreate incremental materialized view mv1 \nas select id, count(*),sum(x) from b1 group by id;\n\ndo $$ \ndeclare \n\ti integer;\nbegin \n\tfor i in 1..10000 \n\tloop \n\t...
[ { "msg_contents": "I have found the collection of STATUS_* defines in c.h a bit curious. \nThere used to be a lot more even that have been removed over time. \nCurrently, STATUS_FOUND and STATUS_WAITING are only used in one group of \nfunctions each, so perhaps it would make more sense to remove these from \nth...
[ { "msg_contents": "selfuncs.c convert_to_scalar() says:\n\n|* The several datatypes representing absolute times are all converted\n|* to Timestamp, which is actually a double, and then we just use that\n|* double value. Note this will give correct results even for the \"special\"\n|* values of Timestamp, since...
[ { "msg_contents": "I'm guessing the initial data for pg_(sh)description is output into\nseparate files because it was too difficult for the traditional shell\nscript to maintain enough state to do otherwise. With Perl, it's just\nas easy to assemble the data into the same format as the rest of the\ncatalogs and...
[ { "msg_contents": "Hi, hackers.\n\nAttached are 2 tiny doc typo fixes.\n\nJon", "msg_date": "Mon, 30 Dec 2019 18:11:36 -0700 (MST)", "msg_from": "Jon Jensen <jon@endpoint.com>", "msg_from_op": true, "msg_subject": "[PATCH] Fix parallel query doc typos" }, { "msg_contents": "On Tue, Dec 3...
[ { "msg_contents": "Hi!\n\nHere is the case.\n\nAssume we have a master to slave replication with shared_buffers set up \nto 2 GB at the master and 4 GB at the slave. All of the data is written \nto the master, while reading occurs from slave.\n\nNow we decided to drop many tables, let's say 1000 or 10000 not in...
[ { "msg_contents": "With the attached patch, I propose to enable the colored output by \ndefault in PG13.\n\nFor those who don't like color output, I also add support for the \nenvironment variable NO_COLOR, which is an emerging standard for turning \noff color across different software packages (https://no-colo...
[ { "msg_contents": "Does the next decade start on 2020-01-01 or 2021-01-01? Postgres says\nit start on the former date:\n\n\tSELECT EXTRACT(DECADE FROM '2019-01-01'::date);\n\t date_part\n\t-----------\n\t 201\n\t\n\tSELECT EXTRACT(DECADE FROM '2020-01-01'::date);\n\t date_part\n\t-----------\n\t 20...
[ { "msg_contents": "Hello,\n\nWe right now don't support TRUNCATE on foreign tables.\nIt may be a strange missing piece and restriction of operations.\nFor example, if a partitioned table contains some foreign tables in its leaf,\nuser cannot use TRUNCATE command to clean up the partitioned table.\n\nProbably, A...
[ { "msg_contents": "Hi,\n\nI found one crash in pg_restore, this occurs when there is a failure before\nall the child workers are created. Back trace for the same is given below:\n#0 0x00007f9c6d31e337 in raise () from /lib64/libc.so.6\n#1 0x00007f9c6d31fa28 in abort () from /lib64/libc.so.6\n#2 0x00007f9c6d3...
[ { "msg_contents": "Hello hackers,\n\nBased on ideas from earlier discussions[1][2], here is an experimental\nWIP patch to improve recovery speed by prefetching blocks. If you set\nwal_prefetch_distance to a positive distance, measured in bytes, then\nthe recovery loop will look ahead in the WAL and call Prefet...
[ { "msg_contents": "Hi All,\n\nWhen a ROW variable having NULL value is assigned to a RECORD\nvariable, it gives no structure to the RECORD type variable. Let's\nconsider the following example.\n\ncreate table t1(a int, b text);\n\ninsert into t1 values(1, 'str1');\n\ncreate or replace function f1() returns void...
[ { "msg_contents": "The RelationNeedsWAL() code block within _bt_delitems_delete() has had\nthe following comment for many years now:\n\n/*\n * We need the target-offsets array whether or not we store the whole\n * buffer, to allow us to find the latestRemovedXid on a standby\n * server.\n */\nXLogRegisterData((...
[ { "msg_contents": "Hi,\n\nI am starting a new thread for some of the decisions for a parallel vacuum\nin the hope to get feedback from more people. There are mainly two points\nfor which we need some feedback.\n\n1. Tomas Vondra has pointed out on the main thread [1] that by default the\nparallel vacuum should...
[ { "msg_contents": "Hi all,\n\nHappy new year to all!\n\nAs we have entered in January, the commit fest for 2020-01 has\nofficially begun, and I have switched the status of this commit fest\nto \"In Progress\" a couple of minutes ago. Unfortunately, we still\nlack a commit fest manager.\n\nAre there any volunte...
[ { "msg_contents": "Is there any appetite for use of array initializer rather than memset, as in\nattached ? So far, I only looked for \"memset.*null\", and I can't see that any\nof these are hot paths, but saves a cycle or two and a line of code for each.\n\ngcc 4.9.2 with -O2 emits smaller code with array ini...
[ { "msg_contents": "Hi hackers,\n\nWhile reading code and doing some testing, I found that if we create a\ntemporary table with same name as we created a normal(global) table, then\n\\d is showing only temporary table info. I think, ideally we should\ndisplay info of both the tables. Below is the example:\n\npo...
[ { "msg_contents": "Add basic TAP tests for psql's tab-completion logic.\n\nUp to now, psql's tab-complete.c has had exactly no regression test\ncoverage. This patch is an experimental attempt to add some.\n\nThis needs Perl's IO::Pty module, which isn't installed everywhere,\nso the test script just skips all ...
[ { "msg_contents": "In May of last year (2019), I set up pg_ssl_init on gitlab:\n\nhttps://gitlab.com/osfda/pg_ssl_init\n\nAnd announced it on this list:\n\nhttps://www.postgresql.org/message-id/1621ef11-f246-8519-018d-57ba36ecc16b%40osfda.org\n\npg_ssl_init is a set of python3 scripts that configures SSL certif...