threads
listlengths
1
2.99k
[ { "msg_contents": "My recent commit 44fa8488 made vacuumlazy.c always scan the last page\nof every heap relation, even when it's all-visible, regardless of any\nother factor. The general idea is to always examine the last page in\nthe relation when that might prevent us from unsuccessfully attempting\nto trunca...
[ { "msg_contents": "Hi,\n\nA recent cfbot failure reminded me of a topic I wanted to raise: The use of\nBAIL in tap tests.\n\nWhen a tap test exits with BAIL it doesn't just consider that test failed, but\nit also stops running further tap tests in the same group:\nhttps://metacpan.org/pod/Test::More\n\"Indicate...
[ { "msg_contents": "Hi,\n\nWe see a successful compile and then a failure to read the file while\nlinking. We see that the animal got into that state recently and then\nfixed itself, and now it's back in that state. I don't know if it's\nsignificant, but it happened to fix itself when a configure change\ncame ...
[ { "msg_contents": "For a very long time, the AIX 7.1 buildfarm members (sungazer and tern)\nhave complained about\n\nip.c:236:17: warning: conversion from 'long unsigned int' to 'uchar_t' {aka 'unsigned char'} changes value from '1025' to '1' [-Woverflow]\n\nI'd ignored this as not being very interesting, but I...
[ { "msg_contents": "During development, I have been using the attached patch to simulate \nlibc collation versions on macOS. It just uses the internal major OS \nversion number. I don't know to what the extend the libc locales on \nmacOS are maintained or updated at all, so I don't know what practical \neffect...
[ { "msg_contents": "Add test case for an archive recovery corner case.\n\nWhile I was working on a patch to refactor things around xlog.c, I mixed\nup EndOfLogTLI and replayTLI at the end of recovery. As a result, if you\nrecovered to a point with a lower-numbered timeline in a WAL segment\nthat has a higher TLI...
[ { "msg_contents": "This is a rebase of the patch from [0]. It removes the internal padding \nimplementation in pgcrypto and lets OpenSSL do it. The internal \nimplementation was once applicable to the non-OpenSSL code paths, but \nthose have since been removed.\n\n\n[0]: \nhttps://www.postgresql.org/message-i...
[ { "msg_contents": "Hi.\n\nNow select ... for update ... [skip locked|nowait] options are not \npushed down to remote servers. I see the only reason is that we can \nspeak to pre-9.5 server, which doesn't understand skip locked option. \nAre there any other possible issues? Should we add foreign table option \nt...
[ { "msg_contents": "So I've been dealing a lot with building and maintaining dashboards\nfor (fleets of) Postgres servers. And it's a pain. I have a few\nstrongly held ideas about where the pain points are and what the right\nways to tackle them are. Some of which are going to be controversial I\nthink...\n\nThe...
[ { "msg_contents": "I tried to replicate the problem described in [1] about logical\nreplication from a v14 source DB to a v11 target. It fails as\ndescribed there; I've not yet tracked down why, but it looks like\nthe v11 apply worker fails and closes the connection after sending\nCREATE_REPLICATION_SLOT. The...
[ { "msg_contents": "Move scanint8() to numutils.c\n\nMove scanint8() to numutils.c and rename to pg_strtoint64(). We\nalready have a \"16\" and \"32\" version of that, and the code inside the\nfunctions was aligned, so this move makes all three versions\nconsistent. The API is also changed to no longer provide...
[ { "msg_contents": "I'm writing an index access method with its own unique file format. It\ninvolves storing large blobs that break across pages.\n\nThe file format itself doesn't need or use page headers. There's no need\nfor a checksum or to manage free space within the page.\n\nCan I treat pages as just a fla...
[ { "msg_contents": "In [1] there's a complaint that if you try to logically replicate\na partitioned table from v13-or-later to v12-or-earlier, you get\n\"table XXX not found on publisher\", which is pretty confusing\nbecause the publisher certainly does have such a table. That\nhappens because fetch_remote_tab...
[ { "msg_contents": "Hi,\n\nI've reported this issue, but without success in fixing it.\nNow I have installed 14.2 and used in development environment, and\nthe log still reports:\n2022-02-13 18:33:20.502 -03 [7976] LOG: could not rename temporary\nstatistics file \"pg_stat_tmp/global.tmp\" to \"pg_stat_tmp/glob...
[ { "msg_contents": "Hi,\n\nPer Coverity.\n\nLike the function pg_encoding_max_length_sql\n(src/backend/utils/mb/mbutils.c)\nOnly assertion is insufficient to avoid accessing array out-of-bounds.\n\nThis bug is live according Coverity at function: pg_verify_mbstr_len\n(src/backend/utils/mb/mbutils.c)\nCID 1469870...
[ { "msg_contents": "Hi,\n\nOver on the rather-long \"refactoring basebackup.c\" thread, there is a\nproposal, which I endorse, to add base-backup compression via zstd. To\ndo that, we'd need to patch configure.ac to create a new --with-zstd\nflag and appropriate supporting infrastructure. My colleague Jeevan\nLa...
[ { "msg_contents": "I've been fooling around with the duplicated-error-text issue\ndiscussed in [1], and I think I have a solution that is fairly\nbulletproof ... except that it cannot cope with this little gem\nat the bottom of PQgetResult:\n\n if (!res->events[i].proc(PGEVT_RESULTCREATE, &evt,\n ...
[ { "msg_contents": "While looking at recent failures in the new 028_pitr_timelines.pl \nrecovery test, I noticed that there have been a few failures in the \nbuildfarm in the recoveryCheck phase even before that, in the \n019_replslot_limit.pl test.\n\nFor example:\n\nhttps://buildfarm.postgresql.org/cgi-bin/sho...
[ { "msg_contents": "I've noticed that my WAL pre-allocation patches [0] routinely fail with\n\"tablespace is not empty\" errors on Linux [1]:\n\n\t DROP TABLESPACE regress_tblspace_renamed;\n\t+ERROR: tablespace \"regress_tblspace_renamed\" is not empty\n\nThis appears to have been discussed elsewhere (and fixe...
[ { "msg_contents": "Hi,\n\nWhile reading the code, I realized that the second sentence of the\nfollowing comment in worker.c is not correct:\n\n /*\n * Exit if the subscription was disabled. This normally should not happen\n * as the worker gets killed during ALTER SUBSCRIPTION ... DISABLE.\n */\n ...
[ { "msg_contents": "Hi,\n\n[1] reminded me of a topic that I wanted to bring up at some point:\n\nTo me the division of labor between initdb and bootstrap doesn't make much\nsense anymore:\n\n\ninitdb reads postgres.bki, replaces a few tokens, starts postgres in bootstrap\nmode, and then painstakenly feeds boots...
[ { "msg_contents": "Hi,\n\nI noticed the small typo in pg_logical_slot_get_changes_guts().\n\n======================================\n--- a/src/backend/replication/logical/logicalfuncs.c\n+++ b/src/backend/replication/logical/logicalfuncs.c\n@@ -295,7 +295,7 @@ pg_logical_slot_get_changes_guts(FunctionCallInfo\n...
[ { "msg_contents": "Hi,\n\nCurrently, numeric_pg_lsn is the only one that accepts the Numeric\nvalue and converts to uint64 and that is the reason all the type\nconversion code is embedded into it.\n\nI think it would be helpful if that numeric-to-uint64 conversion code\nis extracted as a separate function so th...
[ { "msg_contents": "While reviewing Thomas Munro's patchset to consider expanding the uses\nof specialized qsort [1], I wondered about some aspects of the current\nqsort implementation. For background, ours is based on Bentley &\nMcIlroy \"Engineering a Sort Function\" [2], which is a classic paper\nworth studyi...
[ { "msg_contents": "Hi,\n\nThe attached patch replaces the hard-coded type alignment value with\nthe defined macro for the same.\n\n--\nRegards,\nAmul Sul\nEDB: http://www.enterprisedb.com", "msg_date": "Wed, 16 Feb 2022 17:47:11 +0530", "msg_from": "Amul Sul <sulamul@gmail.com>", "msg_from_op": true...
[ { "msg_contents": "$ make check-world >/dev/null\n2022-02-16 11:57:47.548 EST [3339702] LOG: database system was not properly shut down; automatic recovery in progress\n2022-02-16 11:57:47.612 EST [3339713] LOG: database system was not properly shut down; automatic recovery in progress\n2022-02-16 11:57:59.37...
[ { "msg_contents": "Now that lz4 also supports backup compression, decompression, and more\nfuture enhancements that can be done here, I think it is better to make\nthe --with-lz4 description more generic than adding specific details in\nthere.\n\nAttached is the patch to remove the specifics related to WAL and ...
[ { "msg_contents": "Largely following a recipe from Andres, I have migrated buildfarm\nanimals fairywren and jacana to a setup that shouldn't need (and in fact\nwon't be able to use) PostgreSQL::Test:Utils::perl2host(). AFAICT these\ntwo are the only buildfarm animals that run TAP tests under msys.\n\nSee discus...
[ { "msg_contents": "Hi,\n\nI noticed that effectively all indexes use the special region of a\npage to store some index-specific data on the page. In all cases I've\nnoticed, this is a constant-sized struct, located at what is\neffectively a fixed offset from the end of the page; indicated on the\npage by pd_spe...
[ { "msg_contents": "Seeing msys in TAP tests mentioned in a thread [1] tonight reminded me about\ntwo related (well, one of them) patches I had sitting around, so rather than\nforgetting again here are some small cleanups.\n\n0001 attempts to streamline how we detect Windows in the TAP tests (after that\nthere i...
[ { "msg_contents": "Hi, hackers!\n\nIf we trying to call pageinspect functions for pages which are filled \nwith nulls, we will get core dump. It happens with null pages for all \nindexes in pageinspect and for page_checksum. This problem was founded \nfirstly by Anastasia Lubennikova, and now I continue this ta...
[ { "msg_contents": "Hi,\n\nPer Coverity.\n\nMaybe this is a mistake, but,\nIs it necessary or not to free the memory allocated by nodeToString?\n\nIf yes, the patch attached fixes this.\n\nregards,\n\nRanier Vilela", "msg_date": "Thu, 17 Feb 2022 09:35:06 -0300", "msg_from": "Ranier Vilela <ranier.vf@gma...
[ { "msg_contents": "Hi,\n\nI've been looking at a report of a crash an in-place upgrade [1],\nrelated to a GiST index, and I tried to use the new GiST support added\nto pageinspect in 756ab29124 (so it's in 14). My knowledge of GiST is\nsomewhat limited, but after struggling with it for a while I wonder if\nit's...
[ { "msg_contents": "Hi all,\n\nI wanted to submit a patch to expose 2 new hooks (one for the\nauthentication check and another one for error reporting) in auth.c. These\nwill allow users to implement their own authentication methods for Postgres\nor add custom logic around authentication.\n\nA use case where thi...
[ { "msg_contents": "GCC 12, coming soon to a distro near you, complains like this:\n\npostgres.c: In function 'set_stack_base':\npostgres.c:3430:24: warning: storing the address of local variable 'stack_base' in 'stack_base_ptr' [-Wdangling-pointer=]\n 3430 | stack_base_ptr = &stack_base;\n | ...
[ { "msg_contents": "When formatting the output of an Interval, we call abs() on the hours\nfield of the Interval. Calling abs(INT_MIN) returns back INT_MIN\ncausing the output to contain two '-' characters. The attached patch\nfixes that issue by special casing INT_MIN hours.\n\nHere is an example of the issue:\...
[ { "msg_contents": "On Fri, Feb 05, 2021 at 03:55:20PM -0500, Tom Lane wrote:\n> We have, almost invariably, regretted it when we tried to use short\n> timeouts in test cases.\n\n> More generally, sometimes people want to do things like run a test\n> under valgrind. So it's not just \"underpowered machines\" th...
[ { "msg_contents": "Hi all,\n\n\nI find a potential memory leak in PostgresSQL 14.1, which is in the function describeOneTableDetails (./src/bin/psql/describe.c). The bug has been confirmed by an auditor of <pgsql-bugs>.\n\n\nSpecifically, at line 1603, a memory chunk is allocated with pg_strdup and assigned to ...
[ { "msg_contents": "I noticed that the JSON path lexer does not support the decimal literal \nsyntax forms\n\n.1\n1.\n\n(that is, there are no digits before or after the decimal point). This \nis allowed by the relevant ECMAScript standard \n(https://262.ecma-international.org/5.1/#sec-7.8.3) and of course SQL ...
[ { "msg_contents": "Hello,I added a patch to fix table_to_xmlschema, could you point me how to add a unit test to that?", "msg_date": "Fri, 18 Feb 2022 17:47:14 -0000", "msg_from": "Renan Soares Lopes <renans.l@icloud.com>", "msg_from_op": true, "msg_subject": "\n =?utf-8?B?W1BBVENIXSBBZGQgc3VwcG...
[ { "msg_contents": "Add support for building with ZSTD.\n\nThis commit doesn't actually add anything that uses ZSTD; that will be\ndone separately. It just puts the basic infrastructure into place.\n\nJeevan Ladhe, Robert Haas, and Michael Paquier. Reviewed by Justin\nPryzby and Andres Freund.\n\nDiscussion: htt...
[ { "msg_contents": "We've accumulated a few bit-twiddling hacks to get the compiler to\nemit a rotate instruction. Since we have a macro for that, let's use\nit, as in the attached. I thought the new call sites would look better\nwith a \"left\" version, so I added a new macro for that. That's not\nnecessary, ho...
[ { "msg_contents": "Hi,\nWhen i was looking at the code for ExecMergeJoin(), I noticed a few places\nwhere the join state name in the comment doesn't match the actual state.\n\nHere is a small patch with correction.\n\nCheers", "msg_date": "Sat, 19 Feb 2022 05:20:14 -0800", "msg_from": "Zhihong Yu <zyu@y...
[ { "msg_contents": "Some years ago we did a pass through the various worker processes to\nadd hibernation as a mechanism to reduce power consumption on an idle\nserver. Replication never got the memo, so power consumption on an\nidle server is not very effective on standby or logical subscribers.\nThe code and t...
[ { "msg_contents": "Forking: <E6CA9D45-96EA-4037-8BEB-344CCA75A38C@anarazel.de>\n\nOn Tue, Feb 15, 2022 at 10:42:09PM -0800, Andres Freund wrote:\n> >> I was thinking that we should make Utils.pm's INIT block responsible for\n> >> figuring out both the directory a test should run in and the log location,\n> >> i...
[ { "msg_contents": "Hi hackers,\nI've read in this blog (\nhttp://big-elephants.com/2015-10/writing-postgres-extensions-part-i/)\nand I wrote an extension about base36_encode with c code\nbut when I executed a query like this below I got a warning below.\n\n```\npostgres=# SELECT base36_encode(123);\nWARNING: p...
[ { "msg_contents": "Hi,\n\nLike how the commit\nhttps://github.com/postgres/postgres/commit/07daca53bfcad59618a9c6fad304e380cc9d2bc1\nThe are some paths that were missed:\n\n-At jsonfuncs.c\n The errors mgs do not report about the materialize mode.\n-At plperl.c\n The function plperl_return_next_internal does no...
[ { "msg_contents": "I need a way to separate the results of \\watch for each query execution.\n\nThere is only a blank line between the results of \\watch.\nHowever, there is also a blank line after the title, which complicates\nthe rules.\n\nMy suggestion is to insert a \"form feed(\\f)\" (preferably a newline)...
[ { "msg_contents": "Hi all,\n(Author and committer added in CC.)\n\nWhile reviewing the code of a bunch of SRF functions in the core code,\nI have noticed that the two functions mentioned in $subject are marked\nas proretset but both functions don't return a set of tuples, just one\nrecord for the object given i...
[ { "msg_contents": "Hi, \n\nThe comment of get_collation_name wrote: \n\n * NOTE: since collation name is not unique, be wary of code that uses this\n * for anything except preparing error messages.\n\nIn file explain.c, the function get_collation_name() is called, but the schema \nname won't be outputted.\n...
[ { "msg_contents": "Hi,\n\nLogical replication has been used to migration with minimal downtime. However,\nif you are dealing with a big database, the amount of required resources (disk\n-- due to WAL retention) increases as the backlog (WAL) increases. Unless you\nhave a generous amount of resources and can wai...
[ { "msg_contents": "check_query() in RewindTest.pm currently has this comment before handrolling\ntests for return code and stderr:\n\n # We don't use ok() for the exit code and stderr, because we want this\n # check to be just a single test.\n\nThe code came with the initial import of pg_rewind, and there is ...
[ { "msg_contents": "Hello,\n\nOne of the most frequently requested improvements from our customers\nis to reduce downtime associated with software updates (both major and\nminor versions). To do this, we have reviewed potential contributions to\nimproving logical replication.\n\nI’m working on a patch to support...
[ { "msg_contents": "Hi,\n\nWhen running check-world, a good chunk of the output is just pg_regress\nboilerplate. It doesn't matter when running tests individually or for tests\nwith a lot of individual tests like the main regression tests. But for lots of\nthe rest it is noisy. These days there are many more reg...
[ { "msg_contents": "It's turning out to be difficult to store the data for my custom index\naccess method in the main fork. Breaking up the data into pages with page\nheaders means a lot of extra work, a big performance hit, and disk space\nmanagement headaches. It's just not a good fit for my particular file\nf...
[ { "msg_contents": "Starting a new thread on the TAP patch from the \"[RFC] building postgres with\nmeson\" thread at 20220221165228.aqnfg45mceym7njm@alap3.anarazel.de to have\nsomewhere to discuss this patch.\n\n> On 21 Feb 2022, at 17:52, Andres Freund <andres@anarazel.de> wrote:\n> On 2021-10-13 13:54:10 +020...
[ { "msg_contents": "Hi hackers,\n\nWith the addition of archive modules (5ef1eef) and other archiving\nimprovements (e.g., beb4e9b), the amount of archiving overhead has been\nreduced. I spent some time measuring the remaining overhead, and the\nfollowing function stood out:\n\n\t/*\n\t * pgarch_archiveDone\n\t...
[ { "msg_contents": "Hello all, this is my first time posting here (I first posted on the IRC\nbut didn't get any response), so let me know if there's a different\nprocedure for asking questions.\n\nI'm interested in creating a Postgres extension that would enable\ndevelopers to write triggers in (modern) C++. Do...
[ { "msg_contents": "On 13.5 a wal flush PANIC is encountered after a standby is promoted.\r\n\r\nWith debugging, it was found that when a standby skips a missing continuation record on recovery, the missingContrecPtr is not invalidated after the record is skipped. Therefore, when the standby is promoted to a pri...
[ { "msg_contents": "I've been playing with an idea I had a while back. Basically that it\nwould be useful to have some \"noop\" operators that are used purely to\ninfluence the planner.\n\nFor context I've suggested in the past that there are two categories of hints:\n\n1 Hints that override the planner's decisi...
[ { "msg_contents": "Since 4035cd5d4, wal_compression=lz4 is supported. I think pg15 should also\nsupport wal_compression=zstd. There are free bits in the WAL header.\n\nThe last message on that thread includes a patch doing just that, which I've\nrebased.\nhttps://www.postgresql.org/message-id/YNqWd2GSMrnqWIfx...
[ { "msg_contents": "Hi,\n\nI recently had to work on some internal tool which, among other things, has to\nmerge pg_hba.conf and pg_ident.conf files between an existing (possibly\nalready updated) instance and some external repository.\n\nMy biggest concern is that any issue in either the external repository con...
[ { "msg_contents": "Hi,\n\nIn logical replication, currently Walsender sends the data that is\ngenerated locally and the data that are replicated from other\ninstances. This results in infinite recursion in circular logical\nreplication setup.\nHere the user is trying to have a 2-way replication setup with node ...
[ { "msg_contents": "Hello,\n\nI have created a patch that adds support for building Postgres for the\nwindows/arm64 platform using the MSVC toolchain. Following changes have\nbeen included\n\n1. Extend MSVC scripts to handle ARM64 platform.\n2. Add arm64 definition of spin_delay function.\n3. Exclude arm_acle.h ...
[ { "msg_contents": "Attached are 3 small patches that improve the performance of numeric\ndivision. Patch 0002 seems to have the biggest impact, but I think\nthey're all worth including, since they're quite simple changes, with\nnoticeable performance gains.\n\n\nPatch 0001 vectorises the inner loop of div_var_f...
[ { "msg_contents": "Hi!\n\nDuring a Patroni PR discussion \n(https://github.com/zalando/patroni/pull/2225), we realised that if one \nwants to use the \"-c\" option on a typical Debian/Ubuntu installation \n(where the config resides below /etc/postgresql/), pg_rewind needs a way \nto be told where the postgresql...
[ { "msg_contents": "Hello,\r\n\r\nAs part of the NSS work it came up [1] that clients don't have a good\r\nway to ask libpq what SSL library it was compiled with, unless they\r\nalready have a connection pointer so that they can call\r\nPQsslAttribute(conn, \"library\"). This poses a chicken-and-egg problem:\r\n...
[ { "msg_contents": "Hi,\n\nWhen verifying that the meson port actually runs all perl based tests I came\nacross src/interfaces/libpq/test/regress.pl. Instead of running tests yet\nanother way, it seems better to convert it to a tap test.\n\nI hope others agree?\n\nWhere would we want that test to live? Right no...
[ { "msg_contents": "I brought this up in [1] but wanted to start a dedicated thread.\n\nSince 16fa9b2b30a357 GiST indexes are not built in shared buffers.\nHowever, smgrimmedsync() is not done anywhere and skipFsync=true is\nalways passed to smgrwrite() and smgrextend(). So, if a checkpoint\nstarts and finishes ...
[ { "msg_contents": "In pg_regress we realloc() with the destination and source pointer being equal,\nwithout checking for OOM. While a fairly unlikely source of errors, is there a\nreason not to use pg_realloc() there for hygiene?\n\n--\nDaniel Gustafsson\t\thttps://vmware.com/", "msg_date": "Wed, 23 Feb 20...
[ { "msg_contents": "Hi all,\r\n\r\nStephen pointed out [1] that the authenticated identity that's stored\r\nin MyProcPort can't be retrieved by extensions or triggers. Attached is\r\na patch that provides both a C API and a SQL function for retrieving\r\nit.\r\n\r\nGetAuthenticatedIdentityString() is a mouthful ...
[ { "msg_contents": "Hi all,\n\nI noticed something odd when going through some\nof the Interval code. The DAYS_PER_YEAR constant\nis defined in src/include/datatype/timestamp.h.\n> #define DAYS_PER_YEAR 365.25 /* assumes leap year every four years */\n\nWe execute the EXTRACT and date_part functions in\nsr...
[ { "msg_contents": "Hi,\n\nI found messages inserted a space before the \"%\" in pgbench.\nI think this is typo because there are no space before the \"%\" in other messages.\nWhat do you think? \n\ndiff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c\nindex f166a77e3a..4ebe5e6ea4 100644\n--- a/src...
[ { "msg_contents": "Thinking about poor performance in the case where the data fits in\nRAM, but the working set is too big for shared_buffers, I notice a\ncouple of things that seem bad in BufMgr, but don't understand why\nthey are like that.\n\n1. If we need to allocate a buffer to a new block we do this in on...
[ { "msg_contents": "Hi hackers,\n\nI noticed that create_index test (make installcheck) fails on my laptop\nbecause different query plans are chosen:\n\n- QUERY PLAN\n--------------------------------------------------------\n- Index Only Scan using tenk1_unique1 on tenk1\n- Index Cond: (un...
[ { "msg_contents": "Greetings,\n\nThis patch adds the ability to specify a RelFileNode and optional BlockNum to limit output of\npg_waldump records to only those which match the given criteria. This should be more performant\nthan `pg_waldump | grep` as well as more reliable given specific variations in output ...
[ { "msg_contents": "Hi,\n\nVictor Yegorov reported a crash related to a GiST index on ltree [1],\nfollowing a pg_upgrade from 12.x to 14.x, with a data set reproducing\nthis. I spent some time investigating this, and it seems this is a silly\nbug in commit\n\n commit 911e70207703799605f5a0e8aad9f06cff067c63 (HE...
[ { "msg_contents": "Hi everyone,\n\nWould adding additional examples to testlibpq3.c on handling more data\ntypes be helpful? I've attached a patch adding how to handle a REAL to\ncurrent example.\n\nRegards,\nMark", "msg_date": "Thu, 24 Feb 2022 13:42:40 -0800", "msg_from": "Mark Wong <markwkm@gmail.co...
[ { "msg_contents": "I'm trying to understand why hash indexes are built primarily in shared\nbuffers except when allocating a new splitpoint's worth of bucket pages\n-- which is done with smgrextend() directly in _hash_alloc_buckets().\n\nIs this just so that the value returned by smgrnblocks() includes the\nnew...
[ { "msg_contents": "Hi,\n\nThe final commitfest for pg15 will start in a few days, and I didn't see any\ndiscussion on it or anyone volunteering to be a CFM.\n\nI thought it would be a good idea to send this reminder now and avoid the same\nsituation as the last commitfest, to avoid unnecessary pain for the CFM(...
[ { "msg_contents": "Hi,\n\nplease find attached a patchset which adds lz4 compression in pg_dump.\n\nThe first commit does the heavy lifting required for additional compression methods.\nIt expands testing coverage for the already supported gzip compression. Commit\nbf9aa490db introduced cfp in compress_io.{c,h}...
[ { "msg_contents": "Here's a patch to add the sum of timings for JIT counters to\npg_stat_statements, as a way to follow-up on if JIT is doing a good or\na bad job in a configuration.\n\nI decided to only store the total time for the timings, since there\nare 4 different timings and storing max/min/etc for each ...
[ { "msg_contents": "Hi all,\n\nWhile doing some work using our functions [1] for calculate relations size\nI noticed an inconsistency between pg_total_relation_size and calculate\neverything separately, have a look in this example:\n\nfabrizio=# create table test_size (id bigserial primary key, toast_column\ntex...
[ { "msg_contents": "Hi,\n\nHere's a tiny patch to do $subject.\n\nRegards,\nBharath Rupireddy.", "msg_date": "Fri, 25 Feb 2022 20:39:22 +0530", "msg_from": "Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>", "msg_from_op": true, "msg_subject": "Fix typo in logicalfuncs.c - :%s/private d...
[ { "msg_contents": "This patch adds a configuration parameter jit_warn_above_fraction that\nwill cause a warning to be logged if the fraction of time spent on\ndoing JIT is bigger than the specified one. For example, this can be\nused to track down those cases where JIT ends up taking 90% of the\nquery runtime b...
[ { "msg_contents": "Hi All,\n\nI've been working on adding Windows+MinGW environment into cirrus-ci tasks\n(discussion about ci is here [1]).\nIt uses MSYS2 to set the environment. UCRT is chosen as C standard library,\ninstead of MSVCRT.\nThe task configures postgres with features that are available in MSYS2 (s...
[ { "msg_contents": "Hi all,\n\nI've seen various discussions around whether PG makes any guarantees on the\nordering of rows returned by the RETURNING clause (e.g. [1]). In a\nnutshell, when executing a statement such as the following:\n\nCREATE TABLE foo (id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY, data\nI...
[ { "msg_contents": "Hi,\n\nIt looks like there's a typo in pg_receivewal.c's\nget_destination_dir(), that is, use the function parameter dest_folder\ninstead of global variable basedir in the error message. Although\nthere's no harm in it as basedir is a global variable in\npg_receivewal.c, let's use the functio...
[ { "msg_contents": "About once a month over the last six months, my buildfarm animal\nflorican has gotten stuck while running the core regression tests.\nThe symptoms have looked very much the same each time: there is\na backend with two parallel worker processes that are just sitting\nand not consuming any CPU ...
[ { "msg_contents": "Hi,\n\nIn two recent investigations in occasional test failures\n(019_replslot_limit.pl failures, AIO rebase) the problems are somehow tied to\ncheckpointer.\n\nI don't yet know if actually causally related to precisely those failures, but\nwhen running e.g. 027_stream_regress.pl, I see phase...
[ { "msg_contents": "Hi,\n\nFirst time PostgreSQL contributor here :)\n\nI wanted to be able to allocate a bunch of numbers from a sequence at \nonce. Multiple people seem to be struggling with this \n(https://stackoverflow.com/questions/896274/select-multiple-ids-from-a-postgresql-sequence, \nhttps://www.depesz....
[ { "msg_contents": "Hi,\n\nI found some redundant function calls in\npg_stat_statements.c/pg_stat_statements_internal(),\nThere is no need to call GetUserId() again because the value was\npreviously obtained.\nso I propose a patch to fix it.\n\n--- a/contrib/pg_stat_statements/pg_stat_statements.c\n+++ b/contrib...
[ { "msg_contents": "Hi, hackers\n\nWhen I try to use CREATE DATABASE IF NOT EXISTS in PostgreSQL, it complains\nthis syntax is not supported. We can use the following command to achieve\nthis, however, it's not straightforward.\n\n SELECT 'CREATE DATABASE mydb'\n WHERE NOT EXISTS (SELECT FROM pg_databas...
[ { "msg_contents": "Currently, when you connect with psql over SSL, you get a display like\nthis:\n\npsql (15devel)\nSSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)\nType \"help\" for help.\n\nSince support for SSL compression has been removed from PostgreSQL, it\n...
[ { "msg_contents": "Hi,\n\nFor Toast storage [1] in PostgreSQL, first, the attribute value is\ncompressed\nand then divided into chunks. The problem with storing compressed value is,\nif we\nare not saving enough space such that it reduces the #chunks then we end up\nadding extra decompression cost on every read...
[ { "msg_contents": "Hia,\n\nWe've added some information such as the command and the timestamp to\nthe error context message by commit abc0910e2. This patch adds further\ninformation to it: replication origin name and commit-LSN.\n\nThis will be helpful for users to set the origin name and LSN to\npg_replication...
[ { "msg_contents": "Hello\nI just spotted in src/include/access/xlog.h:\nextern XLogRecPtr CalculateMaxmumSafeLSN(void);\n\nThis function doesn't seem to be used anywhere or even defined? \"git grep CalculateMaxmumSafeLSN\" shows only this line.\nWas added in c6550776394e25c1620bc8258427c8f1d448080d \"Allow user...
[ { "msg_contents": "Hi,\n\nIt looks like we use \"log segment\" in various user-facing messages.\nThe term \"log\" can mean server logs as well. The \"WAL segment\" suits\nwell here and it is consistently used across the other user-facing\nmessages [1].\n\nHere's a small patch attempting to consistently use the ...
[ { "msg_contents": "28 days has February ... So the March commitfest begins tomorrow. Meet\nyour friendly neighbourhood Commitfest Manager for March. Greetings!\n\nIf you have a patch you're hoping to get feedback on or you're\nexpecting to get committed this month make sure it's in the commitfest\nat https://c...
[ { "msg_contents": "Hi everyone,\n\nI have been doing some tests on a little server (at least compared to\nsome others around). It have 128 cores (64 physical), 128GB of RAM and\nagainst my will a 4-disk (10k RPM) RAID5.\n\nI have been using hammerdb testing from 9.6 to 14, currently on windows\n10. Obviously, I...