threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nI got a coredump when using hash join on a Postgres derived Database(Greenplum DB).\n\nAnd I find a way to reproduce it on Postgres.\n\nRoot cause:\n\nIn ExecChooseHashTableSize(), commit b154ee63bb uses func pg_nextpower2_size_t\nwhose param must not be 0.\n\n```\nsbuckets = pg_nextpo...
[ { "msg_contents": "Hello,\n\nI suggest supporting asynchronous execution for Custom Scan.\nSince v14, PostgreSQL supports asynchronous execution for Foreign Scan.\nThis patch enables asynchronous execution by applying the process for\nForeign Scan to Custom Scan .\n\nThe patch is divided into 2 parts, source an...
[ { "msg_contents": "\nFor some time I have been nursing along my old Windows XP instance,\nwhich nowadays only builds release 10, which is due to go to EOL in a\nfew months. The machine has suddenly started having issues with git, and\nI'm not really inclined to spend lots of time fixing it. XP itself is\nnow a ...
[ { "msg_contents": "Hi,\n\nCurrently we do not include the dependent extension information for\nindex and materialized view in the describe command. I felt it would\nbe useful to include this information as part of the describe command\nlike:\n\\d+ idx_depends\n Index \"public.idx_depends\"\n Co...
[ { "msg_contents": "Hi,\n\nThis patch does a couple of things:\na) Tab completion for \"ALTER TYPE typename SET\" was missing. Added tab\ncompletion for the same. b) Tab completion for \"ALTER TYPE <sth>\nRENAME VALUE\" was not along with tab completion of \"ALTER TYPE\"\ncommands, it was present after \"ALTER G...
[ { "msg_contents": "Hi,\n\nI am not sure whom I need to contact but the patches were not pushed to the repos as per release notes.\nhttps://www.postgresql.org/docs/release/\nPostgreSQL: Release Notes<https://www.postgresql.org/docs/release/>\n11th August 2022: PostgreSQL 14.5, 13.8, 12.12, 11.17, 10.22, and 15 B...
[ { "msg_contents": "Hi,\n\nwhile experimenting with logical messages, I ran into this assert in\nlogicalmsg_desc:\n\n Assert(prefix[xlrec->prefix_size] != '\\0');\n\nThis seems to be incorrect, because LogLogicalMessage does this:\n\n xlrec.prefix_size = strlen(prefix) + 1;\n\nSo prefix_size includes the n...
[ { "msg_contents": "Hi,\n\nI thought commit 81b9f23c9c8 had my back, but nope, we still need to\nmake CI turn red if \"headerscheck\" and \"cpluspluscheck\" don't like our\npatches (crake in the build farm should be a secondary defence...).\nSee attached.", "msg_date": "Mon, 15 Aug 2022 17:38:21 +1200", ...
[ { "msg_contents": "The last use of UNSAFE_STAT_OK was removed in \nbed90759fcbcd72d4d06969eebab81e47326f9a2, but the build system(s) still \nmentions it. Is it safe to remove, or does it interact with system \nheader files in some way that isn't obvious here?", "msg_date": "Mon, 15 Aug 2022 10:41:42 +0200"...
[ { "msg_contents": "There's a smallish backup tool called pg_backupcluster in Debian's\npostgresql-common which also ships a systemd service that runs\npg_receivewal for wal archiving, and supplies a pg_getwal script for\nreading the files back on restore, including support for .partial\nfiles.\n\nSo far the mac...
[ { "msg_contents": "Hi,\n\nI ran this test.\n\nDROP TABLE IF EXISTS long_json_as_text;\nCREATE TABLE long_json_as_text AS\nwith long as (\nselect repeat(description, 11)\nfrom pg_description\n)\nselect (select json_agg(row_to_json(long))::text as t from long) from\ngenerate_series(1, 100);\nVACUUM FREEZE long_js...
[ { "msg_contents": "Hi hackers,\n\nAs Greg Stark noted elsewhere [0], it is presently very difficult to\nidentify the PID of the session using a temporary schema, which is\nparticularly unfortunate when a temporary table is putting a cluster in\ndanger of transaction ID wraparound. I noted [1] that the followin...
[ { "msg_contents": "I happened to notice the following code in\nsrc/backend/commands/statscmds.c, CreateStatistics:\n\n======\n/*\n* Parse the statistics kinds.\n*\n* First check that if this is the case with a single expression, there\n* are no statistics kinds specified (we don't allow that for the simple\n* C...
[ { "msg_contents": "During a recent code review I was going to suggest that some new code\nwould be more readable if the following:\nif (list_length(alist) == 0) ...\n\nwas replaced with:\nif (list_is_empty(alist)) ...\n\nbut then I found that actually no such function exists.\n\n~~~\n\nSearching the PG source f...
[ { "msg_contents": "Hi,\n\nIt seems like find_in_log() and advance_wal() functions (which are now\nbeing used in at least 2 places). find_in_log() is defined and being\nused in 2 places 019_replslot_limit.pl and 033_replay_tsp_drops.pl.\nThe functionality of advancing WAL is implemented in\n019_replslot_limit.pl...
[ { "msg_contents": "Hi hackers!\n\nSome time ago I've seen a hanging logical replication that was trying to send transaction commit after doing table pg_repack.\nI understand that those things do not mix well. Yet walsender was ignoring pg_terminate_backend() and I think this worth fixing.\nCan we add CHECK_FOR_...
[ { "msg_contents": "Hello, hackers.\n\nAs of PostgreSQL 14, \"tty\" in the libpq connection string has already been removed with the commit below.\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=14d9b37607ad30c3848ea0f2955a78436eff1268\n\nBut https://www.postgresql.org/docs/15/libpq-connect.html#...
[ { "msg_contents": "Looking to tidy up c.h a bit, I think the NON_EXEC_STATIC #define \ndoesn't need to be known globally, and it's not related to establishing \na portable C environment, so I propose to move it to a more localized \nheader, such as postmaster.h, as in the attached patch.", "msg_date": "Tue,...
[ { "msg_contents": "Hi,\n\nI was looking at the code for pg_walinspect today and I think I may\nhave found a bug (or else I'm confused about how this all works, which\nis also possible). ReadNextXLogRecord() takes an argument first_record\nof type XLogRecPtr which is used only for error reporting purposes: if\nw...
[ { "msg_contents": "It claims that:\n\n * 'RecPtr' should point to the beginning of a valid WAL record. Pointing at\n * the beginning of a page is also OK, if there is a new record right after\n * the page header, i.e. not a continuation.\n\nBut this actually doesn't seem to work. This function doesn't itself\n...
[ { "msg_contents": "Hello all,\n\nWith the current implementation of COPY FROM in PostgreSQL we are able to\nload the DEFAULT value/expression of a column if the column is absent in the\nlist of specified columns. We are not able to explicitly ask that\nPostgreSQL uses\nthe DEFAULT value/expression in a column t...
[ { "msg_contents": "Hi,\n\n1. When using extended PGroonga\n\nCREATE EXTENSION pgroonga;\n\nCREATE TABLE memos (\n id boolean,\n content varchar\n);\n\nCREATE INDEX idxA ON memos USING pgroonga (id);\n\n2. Disable bitmapscan and seqscan:\n\nSET enable_seqscan=off;\nSET enable_indexscan=on;\nSET enable_bitmap...
[ { "msg_contents": "Hi,\n\n\n\nMy name is Aravind and I am part of IBM CICS TX product development and support. We have a requirement from one of our customers to use IBM CICS TX with Postgresql 13/14. IBM CICS TX is a Transaction Manager middleware product that is deployed as container on Kubernetes platforms. ...
[ { "msg_contents": "Hi,\n\n\n\nMy name is Aravind and I am part of IBM CICS TX product development and support. We have a requirement from one of our customers to use IBM CICS TX with Postgresql 13/14. IBM CICS TX is a Transaction Manager middleware product that is deployed as container on Kubernetes platforms. ...
[ { "msg_contents": "dummyret hasn't been used in a while (last use removed by 50d22de932, \nand before that 84b6d5f359), and since we are now preferring inline \nfunctions over complex macros, it's unlikely to be needed again.", "msg_date": "Wed, 17 Aug 2022 07:26:16 +0200", "msg_from": "Peter Eisentraut...
[ { "msg_contents": "Hello,\n\nI've a slightly modified version of test_shm_mq, that I changed to include\na shared fileset. The motivation to do that came because I hit an\nassertion failure with PG15 while doing some development work on BDR and I\nsuspected it to be a PG15 bug.\n\nThe stack trace looks as belo...
[ { "msg_contents": "Hi hackers,\n\nDo you think it will be useful to specify STORAGE and/or COMPRESSION\nfor domains?\n\nAs an example, this will allow creating an alias for TEXT with\nEXTERNAL storage strategy. In other words, to do the same we do with\nALTER TABLE, but for types. This feature is arguably not s...
[ { "msg_contents": "There's been no progress on this in the past discussions.\n\nhttps://www.postgresql.org/message-id/flat/877k1psmpf.fsf%40mailbox.samurai.com\nhttps://www.postgresql.org/message-id/flat/CAApHDvpqBR7u9yzW4yggjG%3DQfN%3DFZsc8Wo2ckokpQtif-%2BiQ2A%40mail.gmail.com#2d900bfe18fce17f97ec1f00800c8e27\...
[ { "msg_contents": "Hi hackers,\n\nI noticed that the comments regarding bit layouts for varlena headers\nin postgres.h are somewhat misleading. For instance, when reading:\n\n```\n00xxxxxx 4-byte length word, aligned, uncompressed data (up to 1G)\n```\n\n... one can assume this is a 00xxxxxx byte followed by an...
[ { "msg_contents": "I've been working on having NOT NULL constraints have pg_constraint\nrows.\n\nEverything is working now. Some things are a bit weird, and I would\nlike opinions on them:\n\n1. In my implementation, you can have more than one NOT NULL\n pg_constraint row for a column. What should happen if...
[ { "msg_contents": "Hi hackers!\n\nWhile working on Pluggable TOAST we extended the PG_ATTRIBUTE table with a\nnew\ncolumn 'atttoaster'. But is is obvious that this column is related to\ntables, columns and datatypes\nonly, and is not needed for other attributes.\nYou can find full discussion on Pluggable TOAST ...
[ { "msg_contents": "Hi,\n\nI was hacking in making aix work with the meson patchset last night when I\nnoticed this delightful bit:\n\ngmake -C src/interfaces/libpq\n...\n\nrm -f libpq.a\nar crs libpq.a fe-auth-scram.o fe-connect.o fe-exec.o fe-lobj.o fe-misc.o fe-print.o fe-protocol3.o fe-secure.o fe-trace.o le...
[ { "msg_contents": "Hello, hackers.\n\nI was investigating Valgrind issues with plpython. It turns out\npython itself doesn't play well with Valgrind in default build.\n\nTherefore I built python with valgrind related flags\n\t--with-valgrind --without-pymalloc\nand added debug flags just to be sure\n\t--with-py...
[ { "msg_contents": "When building on macOS against a Homebrew-provided Perl installation, I \nget these warnings during the build:\n\nld: warning: object file (SPI.o) was built for newer macOS version \n(12.4) than being linked (11.3)\nld: warning: object file (plperl.o) was built for newer macOS version \n(12.4...
[ { "msg_contents": "Hello\n\nIs there a postgres extension or project related to\napplication-level/foreign-table data caching ? The postgres_fdw extension\nfetches data from foreign table for each command.\n\nI have seen previous messages in archive about caching in form of global\ntemp tables, query cache etc....
[ { "msg_contents": "Immediately after upgrading an internal instance, a loop around \"vacuum\" did\nthis:\n\nTRAP: FailedAssertion(\"indstats->status == PARALLEL_INDVAC_STATUS_INITIAL\", File: \"vacuumparallel.c\", Line: 611, PID: 27635)\npostgres: postgres pryzbyj [local] VACUUM(ExceptionalCondition+0x8d)[0x99d...
[ { "msg_contents": "Hi hackers,\n\nAdded a pg_buffercache_summary() function to retrieve an aggregated summary\ninformation with less cost.\n\nIt's often useful to know only how many buffers are used, how many of them\nare dirty etc. for monitoring purposes.\nThis info can already be retrieved by pg_buffercache....
[ { "msg_contents": "I happened to notice that configure extracts TCL_SHLIB_LD_LIBS\nfrom tclConfig.sh, and puts the value into Makefile.global,\nbut then we never use it anywhere. AFAICT the only use went\naway in cd75f94da, in 2003. I propose the attached.\n\n\t\t\tregards, tom lane", "msg_date": "Thu, 18...
[ { "msg_contents": "Hi,\n\nHere's a rebased version of the patch adding logical decoding of\nsequences. The previous attempt [1] ended up getting reverted, due to\nrunning into issues with non-transactional nature of sequences when\ndecoding the existing WAL records. See [2] for details.\n\nThis patch uses a dif...
[ { "msg_contents": "Dear team,\n\nWe are facing issues during installation of postgresql at our environment.\n\nThis command completed with no errors.....\n\ndnf install -y\nhttps://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm\n\nThen we ran this command....\n\ndn...
[ { "msg_contents": "Hi hackers,\n\nAttached is a patch proposal to allow the use of regular expressions for \nthe username in pg_hba.conf.\n\nUsing regular expressions for the username in the pg_hba.conf file is \nconvenient in situations where an organization has a large number of \nusers and needs an expressiv...
[ { "msg_contents": "Hi,\n\nAt function parallel_vacuum_process_all_indexes there is\na typo with a logical connector.\n\nI think that correct is &&, because both of the operators are\nbool types [1].\n\nAs a result, parallel vacuum workers can be incorrectly enabled.\n\nAttached a trivial fix.\n\nregards,\nRanie...
[ { "msg_contents": "Hi,\n\nWalSnd structure mutex is being used to protect all the variables of\nthat structure, not just 'variables shown above' [1]. A tiny patch\nattached to fix the comment.\n\nThoughts?\n\n[1]\ndiff --git a/src/include/replication/walsender_private.h\nb/src/include/replication/walsender_priv...
[ { "msg_contents": "Hi,\nCurrently errdetail_busy_db() only shows the number of other sessions using\nthe database but doesn't give any detail about them.\nFor one of the customers,pg_stat_activity is showing lower number of\nconnections compared to the number revealed in the error message.\n\nLooking at CountOt...
[ { "msg_contents": "Hi hackers,\n\nThis is a follow-up for recent changes that optimized [sub]xip lookups in\nXidInMVCCSnapshot() on Intel hardware [0] [1]. I've attached a patch that\nuses ARM Advanced SIMD (Neon) intrinsic functions where available to speed\nup the search. The approach is nearly identical to...
[ { "msg_contents": "On Wed, Aug 17, 2022 at 09:54:34AM -0500, Justin Pryzby wrote:\n> But an unfortunate consequence of not fixing the historic issues is that it\n> precludes the possibility that anyone could be expected to notice if they\n> introduce more instances of the same problem (as in the first half of t...
[ { "msg_contents": "Hello\n\n\n\nI noticed that sslinfo extension does not have functions to return current client certificate's notbefore and notafter timestamps which are also quite important attributes in a X509 certificate. The attached patch adds 2 functions to get notbefore and notafter timestamps from the...
[ { "msg_contents": "Hi,\n\nThis started at https://postgr.es/m/20220817215317.poeofidf7o7dy6hy%40awork3.anarazel.de\n\nPeter made a good point about -DFRONTED not being defined symmetrically\nbetween meson and autoconf builds, which made me look at where we define\nit. And I think we ought to clean this up indep...
[ { "msg_contents": "Attached is another autovacuum (and VACUUM VERBOSE) instrumentation\npatch. This one adds instrumentation about freezing to the report\nautovacuum makes to the server log. Specifically, it makes the output\nlook like this:\n\nregression=# vacuum (freeze,verbose) foo;\nINFO: aggressively vac...
[ { "msg_contents": "Our documentation claims that --with-uuid=bsd works on both\nFreeBSD and NetBSD: installation.sgml says\n\n <option>bsd</option> to use the UUID functions found in FreeBSD, NetBSD,\n and some other BSD-derived systems\n\nand there is comparable wording in uuid-ossp.sgml.\n...
[ { "msg_contents": "Hi,\nIn sqlsh, I issued `\\timing on`.\n\nI don't see timing information displayed for `\\c database`.\n\nDoes someone know how I can obtain such information ?\n\nThanks\n\nHi,In sqlsh, I issued `\\timing on`.I don't see timing information displayed for `\\c database`.Does someone know how I ...
[ { "msg_contents": "Hello!\n\nHere is a fix for the bug first described in:\nhttps://www.postgresql.org/message-id/flat/adf0452f-8c6b-7def-d35e-ab516c80088e%40inbox.ru\n\nReproduction:\n1) On master with 'wal_level = logical' execute mascmd.sql attached.\n\n2) On replica substitute the correct port in repcmd.sql...
[ { "msg_contents": "When costing a btree index scan, num_sa_scans gets computed twice, once in\nbtcostestmeate and once in genericcostestimate. But the computations are\ndifferent. It looks like the generic one includes all =ANY in any column\nin the index, while the bt one includes only =ANY which or on colum...
[ { "msg_contents": "Hi All,\n\nI am writing a postgres extension which writes only generic wal record, but\nthis wal is not recognized by logical replication decoder. I have a basic\nunderstanding of how logical replication(COPY command for initial sync, wal\nreplica for final sync) works, can you please tell us...
[ { "msg_contents": "Hi,\n\nFound a typo in mvcc.sql\n\ntypo kill_prio_tuple -> kill_prior_tuple\n\nRegards,\nZhang Mingli", "msg_date": "Mon, 22 Aug 2022 15:57:18 +0800", "msg_from": "Zhang Mingli <zmlpostgres@gmail.com>", "msg_from_op": true, "msg_subject": "Fix typo kill_prio_tuple" }, { ...
[ { "msg_contents": "Hi hackers,\n\nI noticed that we support 'ALTER TABLE ... SET COMPRESSION default'\nsyntax, but not 'SET STORAGE default' which seems to be a bit\ninconsistent. When the user changes the storage mode for a column\nthere is no convenient way to revert the change.\n\nThe proposed patch fixes th...
[ { "msg_contents": "Hi hackers,\n\nThe proposed patch adds the missing tab completion for 'ALTER TABLE\n... SET COMPRESSION ...' syntax.\n\n-- \nBest regards,\nAleksander Alekseev", "msg_date": "Mon, 22 Aug 2022 15:48:56 +0300", "msg_from": "Aleksander Alekseev <aleksander@timescale.com>", "msg_from_...
[ { "msg_contents": "More portability cruft cleanup: Our own definition of offsetof() was \nonly relevant for ancient systems and can surely be removed.", "msg_date": "Mon, 22 Aug 2022 16:24:47 +0200", "msg_from": "Peter Eisentraut <peter.eisentraut@enterprisedb.com>", "msg_from_op": true, "msg_s...
[ { "msg_contents": "Hi,\n\nThe .backup files written to the archive (if archiving is on) are very\nsimilar to the backup_label that's written/returned by\npg_stop_backup()/pg_backup_stop(), they just have a few extra lines\nabout the end of backup process that are missing from backup_label.\n\nThe parser in xlog...
[ { "msg_contents": "Hi hackers,\n\nWhile working on the relation stats split into table and index stats \n[1], I noticed that currently pg_stat_have_stats() returns true for \ndropped indexes (or for index creation transaction rolled back).\n\nExample:\n\npostgres=# create table bdt as select a from generate_ser...
[ { "msg_contents": "Per discussion in [0], here is a patch set that allows pfree() to accept \na NULL argument, like free() does.\n\nAlso, a patch that removes the now-unnecessary null pointer checks \nbefore calling pfree(). And a few patches that do the same for some \nother functions that I found around. (T...
[ { "msg_contents": "My colleague Dilip Kumar and I have discovered what I believe to be a\nbug in the recently-added \"overwrite contrecord\" stuff. I'm not sure\nwhether or not this bug has any serious consequences. I think that\nthere may be a scenario where it does, but I'm not sure about that.\n\nSuppose you...
[ { "msg_contents": ">Per discussion in [0], here is a patch set that allows pfree() to accept\n>a NULL argument, like free() does.\n\n>Also, a patch that removes the now-unnecessary null pointer checks\n>before calling pfree(). And a few patches that do the same for some\n>other functions that I found around. (T...
[ { "msg_contents": "I noticed an accidental ;;\n\nPSA patch to remove the same.\n\n------\nKind Regards,\nPeter Smith.\nFujitsu Australia", "msg_date": "Tue, 23 Aug 2022 10:13:35 +1000", "msg_from": "Peter Smith <smithpb2250@gmail.com>", "msg_from_op": true, "msg_subject": "fix typo - empty state...
[ { "msg_contents": "Today, I see some error messages have been added, two of which look\nsomewhat inconsistent.\n\ncommands/user.c\n@707:\n> errmsg(\"must have admin option on role \\\"%s\\\" to add members\",\n@1971:\n> errmsg(\"grantor must have ADMIN OPTION on \\\"%s\\\"\",\n\nA grep'ing told me that th...
[ { "msg_contents": "Hi, hackers\nI made a small patch for xml2 to improve test coverage.\nHowever, there was a problem using the functions below.\n\n- xpath_number\n- xpath_bool\n- xpath_nodeset\n- xpath_list\n\nDo you have any advice on how to use this function correctly?\nIt would also be good to add an exampl...
[ { "msg_contents": "Hi Hackers,\nI wrote a test for coverage.\nUnfortunately, it seems to take quite a while to run the test.\nI want to improve these execution times, but I don't know exactly what to do.\nTherefore, I want to hear feedback from many people.\n---\nRegards,\nDong Wook Lee", "msg_date": "Tue, ...
[ { "msg_contents": "Hi hackers,\nI checked the test code not to test the zstd option, then added it.\nI hope my patch will help us to ensure safety of the test.\n\n\n---\nRegards,\nDongWook Lee.", "msg_date": "Tue, 23 Aug 2022 10:58:22 +0900", "msg_from": "Dong Wook Lee <sh95119@gmail.com>", "msg_fro...
[ { "msg_contents": "Hi,\n\n(Background: 697492434 added 3 new sort functions to remove the\nindirect function calls for the comparator function. This sped up\nsorting for various of our built-in data types.)\n\nThere was a bit of unfinished discussion around exactly how far to\ntake these specialisations for PG...
[ { "msg_contents": "Hi Andres,\n\nOne of my tests hit an assertion in dshash_detach(). Once again this is\nwith BDR and I don't have a reproduction case with standalone PG. Also,\nthis probably happened because of some weirdness in systemd where it\nremoves shared memory segments underneath, resulting in ERRORs ...
[ { "msg_contents": "Often it is beneficial to review one's schema with a view to removing\nindexes (and sometimes tables) that are no longer required. It's very\ndifficult to understand when that is the case by looking at the number of\nscans of a relation as, for example, an index may be used infrequently but\n...
[ { "msg_contents": "Hello,\n\nIt seems for me that there is currently a pitfall in the pg_rewind\nimplementation.\n\nImagine the following situation:\n\n\nThere is a cluster consisting of a primary with the following\nconfiguration: wal_level=‘replica’, archive_mode=‘on’ and a replica.\n\n 1. The primary that ...
[ { "msg_contents": "Hi,\nI was looking at the following code in DetachPartitionFinalize():\n\n /* If there's a constraint associated with the index, detach it too\n*/\n constrOid =\nget_relation_idx_constraint_oid(RelationGetRelid(partRel),\n idxid...
[ { "msg_contents": "Hi,\n\nI occasionally\n\nRunning the ecpg regression tests interactively (to try to find a different\nissue), triggered a crash on windows due to an uninitialized variable (after\npressing \"ignore\" in that stupid gui window that we've only disabled for the\nbackend).\n\n\"The variable 'repl...
[ { "msg_contents": "Hi.\n\nIt's possible to extend deparsing in postgres_fdw, so that we can push \ndown semi-joins, which doesn't refer to inner reltarget. This allows\nus to push down joins in queries like\n\nSELECT * FROM ft1 t1 WHERE t1.c1 < 10 AND t1.c3 IN (SELECT c3 FROM ft2 \nt2 WHERE date(c5) = '1970-01-...
[ { "msg_contents": "Hello, I recently got a server crash (bug #17583 [1]) caused by a stack overflow. \n \nTom Lane and Richard Guo, in a discussion of this bug, suggested that there could be more such places. \nTherefore, Alexander Lakhin and I decided to deal with this issue and Alexander developed a methodolo...
[ { "msg_contents": "Hi hackers,\n\nI've found a duplicate \"a a\" in func.sgml and fixed it.\nPatch is attached.\n\n\n-- \nRegards,\n\n--\nShinya Kato\nAdvanced Computing Technology Center\nResearch and Development Headquarters\nNTT DATA CORPORATION", "msg_date": "Wed, 24 Aug 2022 19:44:04 +0900", "msg_f...
[ { "msg_contents": "I'm trying to build Postgres using the Nix language and the Nix package\nmanager on macOS (see [1]). After some work I was able to build, and even\nrun Postgres. But `make check` failed with the error\n\npg_regress: could not exec \"sh\": No such file or directory\n\nThe reason is that pg_reg...
[ { "msg_contents": "Hi,\nI was looking at 0004-COPY_IGNORE_ERRORS.patch\n\n+ * Ignore constraints if IGNORE_ERRORS is enabled\n+ */\n+static void\n+safeExecConstraints(CopyFromState cstate, ResultRelInfo *resultRelInfo,\nTupleTableSlot *myslot, EState *estate)\n\nI think the existing ExecConstraints() can be exp...
[ { "msg_contents": "\nHi hackers,\n\nWe can specify compression method (for example, lz4, zstd), but it is \nhard to know the effect of compression depending on the method. There is \nalready a way to know the compression effect using pg_waldump. However, \nhaving these statistics in the view makes it more acces...
[ { "msg_contents": "Hello,\n\nInspired by the recent discussions[1][2] around sort improvements, I took a look around the code and noticed the use of a somewhat naive version of insertion sort within the broader quicksort code.\n\nThe current implementation (see sort_template.h) is practically the textbook versi...
[ { "msg_contents": "The postgres_fdw tests contain this (as amended by patch 0001):\n\nALTER SERVER loopback_nopw OPTIONS (ADD password 'dummypw');\nERROR: invalid option \"password\"\nHINT: Valid options in this context are: service, passfile, \nchannel_binding, connect_timeout, dbname, host, hostaddr, port, ...
[ { "msg_contents": "libpq now contains a mix of error message strings that end with newlines \nand don't end with newlines, due to some newer code paths with new ways \nof passing errors around. This has now gotten me confused a few too \nmany times both during development and translation. So I looked into \nw...
[ { "msg_contents": "Without this patch concurrent ALTER/DROP SUBSCRIPTION statements for \nthe same subscription could result in one of these statements returning the\nfollowing error:\n\nERROR: XX000: tuple concurrently updated\n\nThis patch fixes that by re-fetching the tuple after acquiring the lock on the\n...
[ { "msg_contents": "Hi,\n\nWe've had some previous discussions about when to use\nhas_privs_of_role and when to use is_member_of_role, and\nhas_privs_of_role has mostly won the fight. That means that, if role\n\"robert\" is set to NOINHERIT and you \"GRANT stuff TO robert\", for the\nmost part \"robert\" will no...
[ { "msg_contents": ">The postgres_fdw tests contain this (as amended by patch 0001):\n\n>ALTER SERVER loopback_nopw OPTIONS (ADD password 'dummypw');\n>ERROR: invalid option \"password\"\n>HINT: Valid options in this context are: service, passfile,\n>channel_binding, connect_timeout, dbname, host, hostaddr, port...
[ { "msg_contents": "I realized $SUBJECT while wondering why my new buildfarm animal chickadee\n(NetBSD on gaur's old hardware) fails the plpython tests on v13 and\nearlier. After a bit of investigation I realized it *should* be failing,\nbecause neither NetBSD nor Python have done anything about the problem\ndo...
[ { "msg_contents": "Hi,\r\n\r\nWe will be releasing a PostgreSQL 15 Beta 4 on September 8, 2022.\r\n\r\nPlease have open items[1] completed and committed no later than \r\nSeptember 5, 2022 0:00 AoE[2].\r\n\r\nThanks,\r\n\r\nJonathan\r\n\r\n[1] https://wiki.postgresql.org/wiki/PostgreSQL_15_Open_Items\r\n[2] htt...
[ { "msg_contents": "Attached patch series is a completely overhauled version of earlier\nwork on freezing. Related work from the Postgres 15 cycle became\ncommits 0b018fab, f3c15cbe, and 44fa8488.\n\nRecap\n=====\n\nThe main high level goal of this work is to avoid painful, disruptive\nantiwraparound autovacuums...
[ { "msg_contents": "Hi hackers,\n\nI've found typos in ja.po, and fixed them.\nThe patch is attached.\n\n-- \nRegards,\n\n--\nShinya Kato\nAdvanced Computing Technology Center\nResearch and Development Headquarters\nNTT DATA CORPORATION", "msg_date": "Fri, 26 Aug 2022 10:23:01 +0900", "msg_from": "Shinya...
[ { "msg_contents": "Hi,\n\nSince doing some work for PG15 for speeding up sorts, I've been a\nlittle irritated by the fact that dumptuples() calls WRITETUP, (which\nis now always calling writetuple()) and calls pfree() on the tuple\nonly for dumptuples() to do\nMemoryContextReset(state->base.tuplecontext) direct...
[ { "msg_contents": "Hi,\n\nWe allow $SUBJECT on Windows. I'm not sure exactly how we finished up\nwith that, maybe a historical mistake, but I find it misleading today.\nModern Windows flushes drive write caches for fsync (= _commit()) and\nfdatasync (= FLUSH_FLAGS_FILE_DATA_SYNC_ONLY). In fact it is possible\...
[ { "msg_contents": "Hi,\n\nOn Mon, Apr 4, 2022 at 11:46 PM Andres Freund <andres@anarazel.de> wrote:\n\n>\n> I think there's a few more things that'd be good to check. For example\n> amcheck\n> doesn't verify that HOT chains are reasonable, which can often be spotted\n> looking at an individual page. Which is a ...
[ { "msg_contents": "Hi hackers,\n\nDuring the work in [1] we created a new TAP test to test the SYSTEM_USER \nbehavior with peer authentication.\n\nIt turns out that there is currently no TAP test for the peer \nauthentication, so we think (thanks Michael for the suggestion [2]) that \nit's better to split the w...
[ { "msg_contents": "The last 20 some consecutive builds failed:\nhttps://cirrus-ci.com/github/postgresql-cfbot/postgresql\n\nlike this:\n[09:29:27.711] C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.20348.0\\ucrt\\malloc.h(159,17): error C2065: 'my_perl': undeclared identifier (compiling source file sr...
[ { "msg_contents": "Hi,\n\nAt function has_matching_range, if variable ranges->nranges == 0,\nwe exit quickly with a result equal to false.\n\nThis means that nranges can be zero.\nIt occurs then that it is possible then to occur an array out of bonds, in\nthe initialization of the variable maxvalue.\nSo if nran...
[ { "msg_contents": "According to pg_has_role, it's possible to have USAGE WITH ADMIN\nOPTION on a role without having USAGE:\n\ntemplate1=# create role foo;\nCREATE ROLE\ntemplate1=# create role admin;\nCREATE ROLE\ntemplate1=# grant foo to admin with inherit false, admin true;\nGRANT ROLE\ntemplate1=# select p....
[ { "msg_contents": "Hi all,\n\nJust a reminder that September 2022 commitfest will begin this\n\ncoming Thursday, September 1.\n\nAs of now, there have been “267” patches in total. Out of these\n\n267 patches, “22” patches required committer attention. Unfortunately,\n\nonly three patches have a committer. I thi...
[ { "msg_contents": "I once wrote code like this:\n\n char *oid = get_from_somewhere();\n ...\n\n values[i++] = ObjectIdGetDatum(oid);\n\nThis compiles cleanly and even appears to work in practice, except of \ncourse it doesn't.\n\nThe FooGetDatum() macros just cast whatever you give it to Datum, \nwi...
[ { "msg_contents": "I noticed that the pg_upgrade check_ functions were determining failures found\nin a few different ways. Some keep a boolen flag variable, and some (like\ncheck_for_incompatible_polymorphics) check the state of the script filehandle\nwhich is guaranteed to be set (with the error message refe...