threads
listlengths
1
2.99k
[ { "msg_contents": "If the subtransaction cache is overflowed in some of the transactions\nthen it will affect all the concurrent queries as they need to access\nthe SLRU for checking the visibility of each tuple. But currently\nthere is no way to identify whether in any backend subtransaction is\noverflowed or...
[ { "msg_contents": "Hi,\n\nCurrently one can know the kind of on-going/last checkpoint (shutdown,\nend-of-recovery, immediate, force etc.) only via server logs that to\nwhen log_checkpoints GUC is on. At times, the users/service layer\ncomponents would want to know the kind of checkpoint (along with other\ncheck...
[ { "msg_contents": "I've been becoming more and more interested in learning formal methods\nand wanted to find a good project to which I could contribute. Would\nthe development team appreciate someone adding ACSL annotations to the\ncodebase? Are such pull requests likely to be upstreamed? I ask this\nbecause i...
[ { "msg_contents": "Now that subtests in TAP are supported again, I want to correct the \ngreat historical injustice of 7912f9b7dc9e2d3f6cd81892ef6aa797578e9f06 \nand put those subtests back.\n\nMuch more work like this is possible, of course. I just wanted to get \nthis out of the way since the code was alread...
[ { "msg_contents": "Hi,\r\n\r\n I run the following SQL in Postgres (14_STABLE), and got the results:\r\nzlyu=# create table t1(a int, b int);\r\nCREATE TABLE\r\nzlyu=# create table t2(a int, b int);\r\nCREATE TABLE\r\nzlyu=# insert into t1 values (null, 1);\r\nINSERT 0 1\r\nzlyu=# insert into t2 values (1, 1)...
[ { "msg_contents": "A question I always have, and I didn´t find anybody answering it. If it´s\npossible\nselect * from MyDB.MySchema.MyTable;\n\nAnd from user point of view ... all databases are accessible for the same\npostgres instance, user just says connect to this or that database, why is\nit not possible t...
[ { "msg_contents": "Hi.\n\nSome regex exposed a bunch of typos scattered across PG comments and docs.\n\nThey are all of the \"uses-an-instead-of-a\" (or vice versa) variety.\n\nPSA a small patch to fix them.\n\n------\nKind Regards,\nPeter Smith.\nFujitsu Australia", "msg_date": "Thu, 9 Dec 2021 07:30:48 +1...
[ { "msg_contents": "Hi,\n\nWith the meson patch applied the tests on windows run concurrently by\ndefault. Unfortunately that fails semi-regularly. The reason for this\nbasically is that windows defaults to using TCP in tests, and that the\ntap-test port determination is very racy:\n\n> # When selecting a ...
[ { "msg_contents": "\"Applications using this level must be prepared to retry transactions\ndue to serialization failures.\"\n...\n\"When an application receives this error message, it should abort the\ncurrent transaction and retry the whole transaction from the\nbeginning.\"\n\nI note that the specific error c...
[ { "msg_contents": "When a user must shut down and restart in single-user mode to run\nvacuum on an entire database, that does a lot of work that's\nunnecessary for getting the system online again, even without\nindex_cleanup. We had a recent case where a single-user vacuum took\naround 3 days to complete.\n\nNo...
[ { "msg_contents": "Can we change the default setting of track_io_timing to on?\n\nI see a lot of questions, such as over at stackoverflow or\ndba.stackexchange.com, where people ask for help with plans that would be\nmuch more useful were this on. Maybe they just don't know better, maybe\nthey can't turn it on...
[ { "msg_contents": "pg_strtouint64() is a wrapper around strtoull/strtoul/_strtoui64, but it \nseems no longer necessary to have this indirection.\n\nmsvc/Solution.pm claims HAVE_STRTOULL, so the \"MSVC only\" part seems \nunnecessary. Also, we have code in c.h to substitute alternatives for \nstrtoull() if not...
[ { "msg_contents": "Hello,\n\nOur customer thinks he has found a memory leak on ECPG and AIX.\n\nThe code is quite simple. It declares a cursor, opens it, and fetches the\nonly line available in the table many times. After some time, the client\ncrashes with a segfault error. According to him, it consumed around...
[ { "msg_contents": "Hi,\r\n\r\nHave a tiny patch to add an implementation of spin_delay() for Arm64 processors to match behavior with x86's PAUSE instruction. See negligible benefit on the pgbench tpcb-like workload so at worst it appears to do no harm but should help some workloads that experience some lock co...
[ { "msg_contents": "Hi Hackers,\n\nInside the test script `src/test/recovery/t/001_stream_rep.pl`, a \ncomment at line 30 says `my_backup` is \"not mandatory\",\n\n  30 # Take backup of standby 1 (not mandatory, but useful to check if\n  31 # pg_basebackup works on a standby).\n  32 $node_standby_1->backup($back...
[ { "msg_contents": "Here is a patch adding range_agg(anymultirange). Previously range_agg \nonly accepted anyrange.\n\nHere is a bug report from last month requesting this addition:\n\nhttps://www.postgresql.org/message-id/CAOC8YUcOtAGscPa31ik8UEMzgn8uAWA09s6CYOGPyP9_cBbWTw%40mail.gmail.com\n\nAs that message po...
[ { "msg_contents": "Hi,\n\nWhen writing / debugging an isolation test it's sometimes useful to see which\nsession holds what lock etc. I find it kind of painful to map pg_stat_activity\n/ pg_locks / log output to the isolationtester spec. Sometimes its easy enough\nto infer identity based on a statement, but far...
[ { "msg_contents": "Hi,\n\nI would like to have a statically linked linux x64 version of postgresql\n14.1 for creating a distributable sample database.\n\nI could not find it anywhere for downloading (someone has a link maybe?),\nso I tried to build one from the sources.\n\nI am following the instructions on\nht...
[ { "msg_contents": "Hi,\n\nWhile porting some new IO code to lots of OSes I noticed in passing\nthat there is now a way to do synchronous fdatasync() on Windows.\nThis mechanism doesn't have an async variant, which is what I was\nactually looking for (which turns out to doable with bleeding edge\nIoRings, more o...
[ { "msg_contents": "I have seen this numerous times but had not dug into it, until now.\n\nIf pg_upgrade fails and is re-run, it appends to its logfiles, which is\nconfusing since, if it fails again, it then looks like the original error\nrecurred and wasn't fixed. The \"append\" behavior dates back to 717f6d60...
[ { "msg_contents": "Hello -hackers!\n\nPlease have a look at the attached patch, which implements some \nstatistics for TOAST.\n\nThe idea (and patch) have been lurking here for quite a while now, so I \ndecided to dust it off, rebase it to HEAD and send it out for review today.\n\nA big shoutout to Georgios Kok...
[ { "msg_contents": "Robert Haas has written on the subject of useless vacuuming, here:\n\nhttp://rhaas.blogspot.com/2020/02/useless-vacuuming.html\n\nI'm sure at least a few of us have thought about the problem at some\npoint. I would like to discuss how we can actually avoid useless\nvacuuming, and what our goa...
[ { "msg_contents": "Hi all,\n(CCing some folks who worked on this area lately)\n\nThe following sequence of commands generates an assertion failure, as\nof $subject:\nselect pg_replication_origin_create('popo');\nselect pg_replication_origin_session_setup('popo');\nbegin;\nselect txid_current();\nprepare transac...
[ { "msg_contents": "I want to propose an implementation of pg_import_system_collations() for\nWIN32 using EnumSystemLocalesEx() [1], which is available from Windows\nServer 2008 onwards.\n\nThe patch includes a test emulating that of collate.linux.utf8, but for\nWindows-1252. The main difference is that it doesn...
[ { "msg_contents": "Hi,\n\nCommit 9556aa01c69 (Use single-byte Boyer-Moore-Horspool search even\nwith multibyte encodings), was a speed improvement for the majority of\ncases, but when the match was toward the end of the string, the\nslowdown in text_position_get_match_pos() was noticeable. It was found\nthat th...
[ { "msg_contents": "Hi,\n\nThe last three buildfarm runs on conchuela show a failure in initdb:\n\nShared object \"libssl.so.48\" not found, required by \"libldap_r-2.4.so.2\"\n\nIt seems likely to me that this is a machine configuration issue\nrather than the result of some recent change in PostgreSQL, because\...
[ { "msg_contents": "Hello.\n\nAs complained in pgsql-bugs [1], when a process is terminated due to\nmax_slot_wal_keep_size, the related messages don't mention the root\ncause for *the termination*. Note that the third message does not\nshow for temporary replication slots.\n\n[pid=a] LOG: terminating process x...
[ { "msg_contents": "Hi\r\n\r\nI did the following steps on PG.\r\n\r\n1. Building a synchronous streaming replication environment.\r\n2. Executing the following SQL statements on primary\r\n (1) postgres=# CREATE EXTENSION pageinspect;\r\n (2) postgres=# begin;\r\n (3) postgres=# select txid_current();\r\n (...
[ { "msg_contents": "Hi hackers,\n\nWhen I doing development based by PG, I found the following comment have a\nlittle problem in file src/include/catalog/pg_class.h.\n\n/*\n * an explicitly chosen candidate key's columns are used as replica identity.\n * Note this will still be set if the index has been dropped;...
[ { "msg_contents": "Hi,\n\nPlease refer to this scenario where pg_upgrade operation is failing if \nthe table is create in single-user mode.\n\nPG v13\n--connect to PG v13 using single user mode  ( ./postgres --single -D \n/tmp/data13 postgres )\n--create table ( backend> create table r(n int); )\n--exit  ( ctrl...
[ { "msg_contents": "Hi,\n\nThere are some things about the life cycle of the common TupleDesc\nthat I'm not 100% sure about.\n\n1. In general, if you get one from relcache or typcache, it is\n reference-counted, right?\n\n2. The only exception I know of is if you ask the typcache for\n a blessed one (RECORD+...
[ { "msg_contents": "Hi!\n\nBack when we were working on zheap, we realized that we needed some\nway of storing undo records that would permit us to discard old undo\nefficiently when it was no longer needed. Thomas Munro dubbed this\n\"conveyor belt storage,\" the idea being that items are added at one\nend and ...
[ { "msg_contents": "Hi all,\n\nI've received numerous complaints about CREATE SCHEMA IF NOT EXISTS failing\nwhen the user lacks CREATE privileges on the database - even if the schema\nalready exists. A typical scenario would be a multi-tenant\nschema-per-tenant setup, where the schema and tenant user are created...
[ { "msg_contents": "Hi!\n\nWith the current implementation, for GiST indexes created by doing multiple\ninserts, index tuples match heap tuples order, but it doesn't work that way\nfor sorted method where index tuples on all levels are ordered using\ncomparator provided in sortsupport (z-order for geometry type,...
[ { "msg_contents": "OK, old_branches_of_interest.txt now exists on the buildfarm server, and\nthe code has been modified to take notice of it (i.e. to accept builds\nfor branches listed there). The contents are the non-live versions from\n9.2 on.\n\nI have set up a test buildfarm client (which will eventually re...
[ { "msg_contents": "Hello,\n\nI realized that the output of \"\\df+ func_name\" has a formatting problem\nwhen a\nlot of arguments are used. The field 'Arguments data types' gets very long\nand\ndestroys the whole formatting in the console. The field 'Source code' is\nmost of\nthe time multi-line and I thought t...
[ { "msg_contents": "Hello all,\r\n\r\nlibpq currently supports server certificates with a single IP address\r\nin the Common Name. It's fairly brittle; as far as I can tell, the\r\nsingle name you choose has to match the client's address exactly.\r\n\r\nAttached is a patch for libpq to support IP addresses in th...
[ { "msg_contents": "Hi,\n\nApple's ranlib doesn't like empty translation units[1], but\nprotocol_openssl.c doesn't define any symbols (unless you have an\nancient EOL'd openssl), so longfin and CI say:\n\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:\nfile: libpgc...
[ { "msg_contents": "Hi all,\n\nAs per $subject, avoiding the flush of the new cluster's data\ndirectory shortens a bint the runtime of the test. In some of my slow\nVMs, aka Windows, this shaves a couple of seconds even if the bulk of\nthe time is still spent on the main regression test suite.\n\nIn pg_upgrade,...
[ { "msg_contents": "This rearranges the version-dependent pieces in the new more modular style.\n\nI had originally written this before pre-9.2 support was removed and it \nhad a few more branches then. But I think it is still useful, and there \nare some pending patches that might add more branches for newer v...
[ { "msg_contents": "This code introduced in ba3e76cc571eba3dea19c9465ff15ac3ac186576 looks\nwrong to me:\n\n total_groups = cheapest_partial_path->rows *\n cheapest_partial_path->parallel_workers;\n path = (Path *)\n create_gather_merge_path(root, ordered_rel,\...
[ { "msg_contents": "Hi all,\r\n\r\nIn keeping with my theme of expanding the authentication/authorization\r\noptions for the server, attached is an experimental patchset that lets\r\nPostgres determine an authenticated user's allowed roles by querying an\r\nLDAP server, and enables SASL binding for those queries...
[ { "msg_contents": "Hello hackers,\n\nWe cannot use ORDER BY or LIMIT/OFFSET in the current\nDELETE statement syntax, so all the row matching the\nWHERE condition are deleted. However, the tuple retrieving\nprocess of DELETE is basically same as SELECT statement,\nso I think that we can also allow DELETE to use ...
[ { "msg_contents": "I want to mention that the 2nd problem I mentioned here is still broken.\nhttps://www.postgresql.org/message-id/20210717010259.GU20208@telsasoft.com\n\nIt happens if non-inheritted triggers on child and parent have the same name.\n\nOn Fri, Jul 16, 2021 at 08:02:59PM -0500, Justin Pryzby wrot...
[ { "msg_contents": "Hi all!\n\nAs part of a customer project we are looking to implement an reloption \nfor views which when set, runs the subquery as invoked by the user \nrather than the view owner, as is currently the case.\nThe rewrite rule's table references are then checked as if the user were \nreferencin...
[ { "msg_contents": "Hi,\n\nwhile working on logical decoding of sequences, I ran into an issue with \nnextval() in a transaction that rolls back, described in [1]. But after \nthinking about it a bit more (and chatting with Petr Jelinek), I think \nthis issue affects physical sync replication too.\n\nImagine you...
[ { "msg_contents": "Hi all,\n(Added Georgios in CC.)\n\nWhen working on the support of LZ4 for pg_receivewal, walmethods.c has\ngained an extra parameter for the compression method. It gets used on\nthe DirectoryMethod instead of the compression level to decide which\ntype of compression is used. One thing tha...
[ { "msg_contents": "I did some desultory investigation of the idea proposed at [1]\nthat we should refactor the regression test scripts to try to\nreduce their interdependencies. I soon realized that one of\nthe stumbling blocks to this is that we've tended to concentrate\ndata-loading COPY commands, as well as...
[ { "msg_contents": "Hi,\n\nWhile working on [1], I noticed $SUBJECT: postgres_fdw resets the\nper-connection states of connections, which store async requests sent\nto remote servers in async_capable mode, during post-abort\n(pgfdw_xact_callback()), but it fails to do so during post-subabort\n(pgfdw_subxact_call...
[ { "msg_contents": "I reduced the problematic query to this.\n\nSELECT 1 FROM pg_rewrite WHERE\npg_get_function_arg_default(ev_class, 1) !~~\npg_get_expr(ev_qual, ev_class, false);\n\n#0 pg_re_throw () at elog.c:1800\n#1 0x0000563f5d027932 in errfinish () at elog.c:593\n#2 0x0000563f5cb874ee in resolve_specia...
[ { "msg_contents": "For some reason the current HEAD PublicationActions is a struct of\nboolean representing combinations of the 4 different \"publication\nactions\".\n\nI felt it is more natural to implement boolean flag combinations using\na bitmask instead of a struct of bools. IMO using the bitmask also\nsim...
[ { "msg_contents": "Hi,\n\nWhen reviewing some replica identity related patches, I found that when adding\nprimary key using an existing unique index on not null columns, the\ntarget table's relcache won't be invalidated.\n\nThis would cause an error When REPLICA IDENTITY is default and we are\nUPDATE/DELETE a p...
[ { "msg_contents": "When reverse-compiling a query, ruleutils.c has some complicated code to \nhandle the join output columns of a JOIN USING join. There used to be \nno way to qualify those columns, and so if there was a naming conflict \nanywhere in the query, those output columns had to be renamed to be \nun...
[ { "msg_contents": "Hello, hackers.\nI have the same question. \nHope to reply, thanks.\n\n-----Original Message-----\nFrom: liuhuailing@fujitsu.com <liuhuailing@fujitsu.com> \nSent: Tuesday, December 14, 2021 4:55 PM\nTo: pgsql-hackers@postgresql.org\nSubject: Question about HEAP_XMIN_COMMITTED\n\nHi\n\nI did t...
[ { "msg_contents": "While testing the below case with the hot standby setup (with the\nlatest code), I have noticed that the checkpointer process crashed\nwith the $subject error. As per my observation, we have registered the\nSYNC_REQUEST when inserting some tuple into the table, and later on\nALTER SET TABLESP...
[ { "msg_contents": "This patch needs another close pass and possibly some refactoring to \navoid copy-and-paste, but I'm putting this out here, since people are \nalready testing with Python 3.11 and will surely run into this problem.\n\nThe way plpy.commit() and plpy.rollback() handle errors is not ideal. \nThe...
[ { "msg_contents": "Hi,\n\nWhen reviewing some logical replication patches. I noticed that in\nfunction get_rel_sync_entry() we always invoke get_rel_relispartition() \nand get_rel_relkind() at the beginning which could cause unnecessary\ncache access.\n\n---\nget_rel_sync_entry(PGOutputData *data, Oid relid)\n{...
[ { "msg_contents": "Hello, hackers!\n\nNow, all of auto_explain output is directed to postgres's log and it is \nnot comfortably to extract on big highloaded systems.\nMy proposal is add option to auto_explain to log data to separate \nlogfile. In my patch I plan to (re)open file every time associated guc \nvari...
[ { "msg_contents": "... ok, I see that the answer is yes, according to the commit comment\nfor eccfef8:\n\n Currently, ICU-provided collations can only be explicitly named\n collations. The global database locales are still always libc-provided.\n\nI got there the long way, by first wondering how to tell whet...
[ { "msg_contents": "Hi Hackers,\n\nI am considering implementing RPO (recovery point objective) enforcement\nfeature for Postgres where the WAL writes on the primary are stalled when\nthe WAL distance between the primary and standby exceeds the configured\n(replica_lag_in_bytes) threshold. This feature is useful...
[ { "msg_contents": "Hi,\n\nCurrently the end-of-recovery checkpoint can be much slower, impacting\nthe server availability, if there are many replication slot files\nXXXX.snap or map-XXXX to be enumerated and deleted. How about skipping\nthe .snap and map- file handling during the end-of-recovery\ncheckpoint? It...
[ { "msg_contents": "Hi,\n\npg_control_checkpoint emits 18 columns whereas the values and nulls\narrays are defined to be of size 19. Although it's not critical,\nattaching a tiny patch to fix this.\n\ndiff --git a/src/backend/utils/misc/pg_controldata.c\nb/src/backend/utils/misc/pg_controldata.c\nindex 209a20a88...
[ { "msg_contents": "Hi,\n\npg_archivecleanup currently takes a WAL file name as input to delete\nthe WAL files prior to it [1]. As suggested by Satya (cc-ed) in\npg_replslotdata thread [2], can we enhance the pg_archivecleanup to\nautomatically detect the last checkpoint (from control file) LSN,\ncalculate the l...
[ { "msg_contents": "Hi,\n\nWhen periodically collecting and accumulating statistics or status information like pg_locks, pg_stat_activity, pg_prepared_xacts, etc for future troubleshooting or some reasons, I'd like to store a transaction ID of such information as 64-bit version so that the information of specifi...
[ { "msg_contents": "Hi,\n\nIt is useful (for debugging purposes) if the checkpoint end message\nhas the checkpoint LSN and REDO LSN [1]. It gives more context while\nanalyzing checkpoint-related issues. The pg_controldata gives the last\ncheckpoint LSN and REDO LSN, but having this info alongside the log\nmessag...
[ { "msg_contents": "Hi,\n\nCurrently the documentation of the log_checkpoints GUC says the following:\n\n Some statistics are included in the log messages, including the number\n of buffers written and the time spent writing them.\n\nUsage of the word \"Some\" makes it a vague statement. Why can't ...
[ { "msg_contents": "The most recent cfbot run for a patch I am interested in has failed a\nnewly added regression test.\n\nPlease see http://cfbot.cputube.org/ for 36/2906\n\n~\n\nThe failure logs [2] are very curious because the error message is\nwhat was expected but it has a different position of the ellipsis...
[ { "msg_contents": "From 53.2.9. SSL Session Encryption:\n\n\n> When SSL encryption can be performed, the server is expected to send only\n> the single S byte and then wait for the frontend to initiate an SSL\n> handshake. If additional bytes are available to read at this point, it\n> likely means that a man-in-...
[ { "msg_contents": "Hey!\n\nPostgres 14 introduces an option to create a GiST index using a sort\nmethod. It allows to create indexes much faster but as it had been\nmentioned in sort support patch discussion the faster build performance\ncomes at cost of higher degree of overlap between pages than for indexes\n...
[ { "msg_contents": "Noah suggested in [1] that we should make an effort to allow any one\nof the core regression tests to be run mostly standalone (i.e., after\nrunning only the test_setup script), so as to allow quicker iterations\nwhen adjusting a script. This'd presumably also lead to the tests\nbeing more i...
[ { "msg_contents": "Executing generic plans involving partitions is known to become slower\nas partition count grows due to a number of bottlenecks, with\nAcquireExecutorLocks() showing at the top in profiles.\n\nPrevious attempt at solving that problem was by David Rowley [1],\nwhere he proposed delaying lockin...
[ { "msg_contents": "Hi,\n\nI've revisited the idea to somehow use foreign keys to do joins,\nin the special but common case when joining on columns that exactly match a foreign key.\n\nThe idea is to add a new ternary operator, which would be allowed only in the FROM clause.\n\nIt would take three operands:\n\n1...
[ { "msg_contents": "Hi!\n\nWorking on pluggable toaster (mostly, for JSONB improvements, see links \nbelow) I had found that STORAGE attribute on column is impossible to set \n in CREATE TABLE command but COMPRESS option is possible. It looks \nunreasonable. Suggested patch implements this possibility.\n\n[1] h...
[ { "msg_contents": "This patch adds a new node type Boolean, to go alongside the \"value\" \nnodes Integer, Float, String, etc. This seems appropriate given that \nBoolean values are a fundamental part of the system and are used a lot.\n\nBefore, SQL-level Boolean constants were represented by a string with\na ...
[ { "msg_contents": "Hi Tom\n\nI would like to ask you about the details of index build.\nI found that in the index_update_stats function, i.e. the CREATE INDEX/REINDEX/Truncate INDEX process,\nrelchche is invalidated whether the index information is updated. I want to know why you're did this\nThe code is:\n\t\t...
[ { "msg_contents": "Hi,\n\nCan the postgres server ever have/generate out of sequence WAL files?\nFor instance, 000000010000020C000000A2, 000000010000020C000000A3,\n000000010000020C000000A5 and so on, missing 000000010000020C000000A4.\nManual/Accidental deletion of the WAL files can happes, but are there\nany ot...
[ { "msg_contents": "Hi,\nFor buildDefItem():\n\n+ if (strcmp(val, \"true\") == 0)\n+ return makeDefElem(pstrdup(name),\n+ (Node *) makeBoolean(true),\n+ -1);\n+ if (strcmp(val, \"false\") == 0)\n\nShould 'TRUE' / 'FALSE' be considere...
[ { "msg_contents": "Folks,\nWhile experimenting with toast tables I noticed that the toast index lands in the same tablespace as the toast table itself. Is there a way to make the toast indexes create in a different tablespace?\n\nPhil Godfrin | Database Administration\nNOV\nNOV US | Engineering Data\n9720 Beech...
[ { "msg_contents": "PFA a patch to extend the compatibility of PostgreSQL::Test::Cluster to\nall live branches. It does this by introducing a couple of subclasses\nwhich override a few things. The required class is automatically\ndetected and used, so users don't need to specify a subclass. Although\nthis is my ...
[ { "msg_contents": "I have found some of the parse/analyze API calls confusing one too many \ntimes, so here I'm proposing some renaming and refactoring.\n\nNotionally, there are three parallel ways to call the parse/analyze \nphase: with fixed parameters (for example, used by SPI), with variable \nparameters (f...
[ { "msg_contents": "forking <CA+TgmoawONZqEwe-GqmKERNY1ug0z1QhBzkHdA158xfToHKN9w@mail.gmail.com>\n\nOn Mon, Dec 13, 2021 at 09:01:57AM -0500, Robert Haas wrote:\n> On Thu, Dec 9, 2021 at 2:32 AM Maciek Sakrejda <m.sakrejda@gmail.com> wrote:\n> > > Considering the vanishingly small number of actual complaints we'...
[ { "msg_contents": "Hi pgsql hackers, I was testing the new psql command \\getenv introduced on commit 33d3eeadb2 and from a user perspective, I think that would be nice if the PSQLVAR parameter were optional, therefore when it is only necessary to view the value of the environment variable, the user just run \\...
[ { "msg_contents": "I'm developing a new index access method. Sometimes the planner uses it and\nsometimes it doesn't. I'm trying to debug the process to understand why the\nindex does or doesn't get picked up.\n\nIs there a way to dump all of the query plans that the planner considered,\nalong with information ...
[ { "msg_contents": "Hi Hackers,\n\nI am wondering if we have a mechanism to convert WAL records to SQL\nstatements.\n\nI am able to use logical decoders like wal2json or test_decoding for\nconverting WAL to readable format, but I am looking for a way to convert\nWAL to sql statements.\n\nThanks\nRajesh\n\nHi Hac...
[ { "msg_contents": "Hello,\n\ncurrently, on Windows/MSVC, src\\tools\\msvc\\*.bat files mostly require \nbeing in that src\\tools\\msvc directory first.\n\nI suggest an obvious fix:\n\ndiff --git a/src/tools/msvc/build.bat b/src/tools/msvc/build.bat\nindex 4001ac1d0d1..407b6559cfb 100755\n--- a/src/tools/msvc/bu...
[ { "msg_contents": "Hi,\n\nAt times, some of the checkpoint operations such as removing old WAL\nfiles, dealing with replication snapshot or mapping files etc. may\ntake a while during which the server doesn't emit any logs or\ninformation, the only logs emitted are LogCheckpointStart and\nLogCheckpointEnd. Many...
[ { "msg_contents": "Hi,\n\nCurrently all the storage options for a table are very much specific\nto the heap but a different AM might need some user defined AM\nspecific parameters to help tune the AM. So here is a patch which\nprovides an AM level routine so that instead of getting parameters\nvalidated using “...
[ { "msg_contents": "Hi,\n\nIsn't this a corrupted pathname?\n\n2021-12-29 03:39:55.708 CST [79851:1] WARNING: removal of orphan\narchive status file\n\"pg_wal/archive_status/000000010000000000000003.00000028.backup000000010000000000000004.ready\"\nfailed too many times, will try again later\n\nhttps://buildfarm...
[ { "msg_contents": "Hi hackers,\n\nI noticed that below critical replication state changes are DEBUG1 level\nlogged. Any concern about changing the below two messages log level to LOG?\nIf this is too verbose, we can introduce a new GUC,\nlog_replication_state_changes that logs the replication state changes when...
[ { "msg_contents": "Hi,\n\nThe Examples section in the documentation for the SELECT command [1]\nonly contains a single example on how to join two tables,\nwhich is written in SQL-89 style:\n\nSELECT f.title, f.did, d.name, f.date_prod, f.kind\n FROM distributors d, films f\n WHERE f.did = d.did\n\nI think...
[ { "msg_contents": "Hi,\n\n bool isunique;\n+ bool nulls_not_distinct;\n } BTSpool;\n\nLooking at the other fields in BTSpool, there is no underscore in field\nname.\nI think the new field can be named nullsdistinct. This way, the\ndouble negative is avoided.\n\nSimilar comment for new fields ...
[ { "msg_contents": "Hi,\n\nWith unlucky scheduling you can get a failure like this:\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=hoverfly&dt=2021-12-22%2010%3A51%3A32\n\nSuggested fix attached.", "msg_date": "Thu, 30 Dec 2021 15:12:04 +1300", "msg_from": "Thomas Munro <thomas.munro@gmail.co...
[ { "msg_contents": "Hello,\n\nI've been reading the autovacuum code (the launcher and the worker) on the\n14 branch. As previously, I've seen some configuration at the beginning,\nespecially for statement_timeout, lock_timeout and\nidle_in_transaction_session_timeout, and I was surprised to discover there\nwas n...
[ { "msg_contents": "Good day, hackers.\n\nProblem:\n- Append path is created with explicitely parallel_aware = true\n- It has two child, one is trivial, other is parallel_aware = false .\n Trivial child is dropped.\n- Gather/GatherMerge path takes Append path as a child and thinks\n its child is parallel_aware...
[ { "msg_contents": "Hi, hackers!\n\nLong time wraparound was a really big pain for highly loaded systems. One\nsource of performance degradation is the need to vacuum before every\nwraparound.\nAnd there were several proposals to make XIDs 64-bit like [1], [2], [3] and\n[4] to name a few.\n\nThe approach [2] see...
[ { "msg_contents": "Hi!\n\nWe are working on custom toaster for JSONB [1], because current TOAST is \nuniversal for any data type and because of that it has some disadvantages:\n   - \"one toast fits all\"  may be not the best solution for particular\n     type or/and use cases\n   - it doesn't know the inter...
[ { "msg_contents": "Hi,\n\nThere's a wait for replay that is open coded (instead of using the\nwait_for_catchup() routine), and sometimes the second of two such\nwaits at line 51 (in master) times out after 3 minutes with \"standby\nnever caught up\". It's happening on three particular Windows boxes,\nbut once ...
[ { "msg_contents": "Attached are a couple of patches for loose ends that I didn't\nget to when I was working on pg_dump before the last CF.\n\n0001 removes all the \"username_subquery\" subqueries in favor\nof doing local username lookups. On the regression database\nwith no extra roles, it seems to be more or ...
[ { "msg_contents": "Hi!\n\nI want to introduce the updated version of the libpq protocol compression patch, initially\nintroduced by Konstantin Knizhnik in this thread:\nhttps://www.postgresql.org/message-id/aad16e41-b3f9-e89d-fa57-fb4c694bec25@postgrespro.ru\n\nThe original thread became huge and it makes it ha...
[ { "msg_contents": "Hi,\n\nCurrently the server is erroring out when unable to remove/parse a\nlogical rewrite file in CheckPointLogicalRewriteHeap wasting the\namount of work the checkpoint has done and preventing the checkpoint\nfrom finishing. This is unlike CheckPointSnapBuild does for snapshot\nfiles i.e. i...