threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nPer Coverity.\n3 out-of-bounds at function AppendJumble.\n\nThey have the face, smell and color of typo.\nAnd we usually increment the character count after a memcpy.\n\nCoverity no longer complained after the patch.\n\nThoughts?\n\nregards,\nRanier Vilela", "msg_date": "Mon, 21 Ju...
[ { "msg_contents": "The following generates an assertion failure. Quick testing with start \nand stop as well as the core dump shows it’s failing on the execution of \n`schema_name := schema_name(i)` immediately after COMMIT, because \nthere’s no active snapshot. On a build without asserts I get a failure \nin G...
[ { "msg_contents": "Hi,\n\nWhile scanning for assertion failures on the build farm that don't\nappear to have been discussed, I found this[1] in\n010_truncate_publisher.log on the 13 branch:\n\nTRAP: FailedAssertion(\"tupdesc->tdrefcount <= 0\", File:\n\"/home/bf/build/buildfarm-desmoxytes/REL_13_STABLE/pgsql.bu...
[ { "msg_contents": "I have accumulated a few patches to improve the output of the scripts in \nsrc/backend/utils/mb/Unicode/ to be less non-standard-looking and fix a \nfew other minor things in that area.\n\nv1-0001-Make-Unicode-makefile-more-parallel-safe.patch\n\nThe makefile rule that calls UCS_to_most.pl wa...
[ { "msg_contents": "Hi,\n\nHere's a curious one-off failure in test_integerset:\n\n+ERROR: iterate returned wrong value; got 519985430528, expected 485625692160\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=rhinoceros&dt=2021-04-01%2018:19:47\n\n\n", "msg_date": "Tue, 22 Jun 2021 20:53:59 +1200...
[ { "msg_contents": "> But making everything slower will be a hard sell, because vast majority of\r\n> workloads already running on Postgres don't have this issue at all, so\r\n> for them it's not worth the expense. Following the insurance analogy,\r\n> selling tornado insurance in Europe is mostly pointless.\r\n...
[ { "msg_contents": "On Mon, Jun 21, 2021 at 04:19:27PM -0700, Jim Nasby wrote:\n> The following generates an assertion failure. Quick testing with start and\n> stop as well as the core dump shows it’s failing on the execution of\n> `schema_name := schema_name(i)` immediately after COMMIT, because there’s\nno\n> ...
[ { "msg_contents": "I think we can benefit from higher level operator classes which can\nsupport multiple index implementations. This is achievable by\nintroducing another type of access method. Here is my idea in SQL:\n\nCREATE ACCESS METHOD ordering\nTYPE INTERFACE HANDLER ordering_ifam_handler;\n\nCREATE AC...
[ { "msg_contents": "When running a VACUUM or CLUSTER command, the namespace name is not part of\nthe emitted message.\n\nUsing `vacuumdb` CLI tool recently with multiple jobs, I found that\nreading the output messages harder to match the relations with their\nnamespaces.\n\nExample:\n\nINFO: vacuuming \"sendgri...
[ { "msg_contents": "(This is split off from my work on OAUTHBEARER [1].)\r\n\r\nCurrently, the SASL logic is tightly coupled to the SCRAM\r\nimplementation. This patch untangles the two, by introducing callback\r\nstructs for both the frontend and backend.\r\n\r\nIn the original thread, Michael Paquier commented...
[ { "msg_contents": "(This is split off from my work on OAUTHBEARER [1].)\r\n\r\nThe jsonapi in src/common can't currently be compiled into libpq. The\r\nfirst patch here removes the dependency on pg_log_fatal(), which is not\r\navailable to the sharedlib. The second patch makes sure that all of the\r\nreturn val...
[ { "msg_contents": "Hi,\n\nWhen directly INSERT INTO partition, postgres will invoke ExecPartitionCheck\nwhich will execute its parent's and grandparent's partition constraint check.\n From the code, the whole constraint check is saved in relcache::rd_partcheck.\n\nFor a multi-level partition, for example: table...
[ { "msg_contents": "I noticed that while inserting directly into a partition table we\ncompute the PartitionCheckExpr by traversing all the parent partitions\nvia ExecPartitionCheck()->RelationGetPartitionQual()->generate_partition_qual().\nWe take AccessShareLock on parent tables while generating qual.\n\nNow, ...
[ { "msg_contents": "genbki.pl says:\n\n# Perform OID lookups on an array of OID names.\n# If we don't have a unique value to substitute, warn and\n# leave the entry unchanged.\n# (A warning seems sufficient because the bootstrap backend will reject\n# non-numeric values anyway. So we might as well detect multip...
[ { "msg_contents": "Hi,\n\nIvan Frolkov reported a problem with choosing a non-optimal index during \na query optimization. This problem appeared after building of an \nextended statistics.\n\nI prepared the test case (see t.sql in attachment).\nFor reproduction of this case we need to have a composite primary k...
[ { "msg_contents": "Hi,\n\nNot per Coverity!\n\nAbout comments:\n1. For drop, no \"copy data\"\n2. Only refresh the added/*dropped* list of publications. (my emphasis)\n\nThe documentation says:\nhttps://www.postgresql.org/docs/14/sql-altersubscription.html\n\n\"DROP PUBLICATION *publication_name*\n\nChanges the...
[ { "msg_contents": "Hi all\r\n\r\nIn PostgreSQL 14, The default value of shared_buffers is 128MB, but in postgresql.conf.sample, the default value of shared_buffers is 32MB.\r\n\r\nI think the following changes should be made.\r\n\r\nFile: postgresql\\src\\backend\\utils\\misc\\ postgresql.conf.sample\r\n#shared...
[ { "msg_contents": "As many will be aware, there is a syntactic ambiguity in the SQL \nstandard regarding the keyword UNBOUNDED. Since UNBOUNDED is a \nnon-reserved word, it could be the name of a function parameter and be \nused as an expression. There is a grammar hack to resolve such cases as \nthe keyword....
[ { "msg_contents": "Hi hackers,\n\nWe may have anti-joins in several cases. Sublinks of 'NOT EXISTS' may be\npulled up as anti-joins. Left joins whose join quals are strict for any\nnullable var that is forced null by higher qual levels will also be\nreduced to anti-joins. So anti-joins are very commonly used in...
[ { "msg_contents": "Hey,\n\nI was translating logicaldecoding.sgml, and I saw this sentence:\n\nThere are multiple required streaming callbacks\n(<function>stream_start_cb</function>, <function>stream_stop_cb</function>,\n<function>stream_abort_cb</function>, <function>stream_commit_cb</function>\nand <function>...
[ { "msg_contents": "COPY FREEZE throws ERRORs if you use it inappropriately. This makes it\nvery hard to use in practice.\n\nERRORs should be replaced by NOTICEs, or just silence. That treats\nFREEZE as an optional performance tweak, which is more appropriate for\nits use case.\n\nIn particular, the need to thro...
[ { "msg_contents": "pgbench -i should use COPY FREEZE, patch attached.\n\n-- \nSimon Riggs http://www.EnterpriseDB.com/", "msg_date": "Thu, 24 Jun 2021 15:03:43 +0100", "msg_from": "Simon Riggs <simon.riggs@enterprisedb.com>", "msg_from_op": true, "msg_subject": "pgbench using COPY...
[ { "msg_contents": "Fix pattern matching logic for logs in TAP tests of pgbench\n\nThe logic checking for the format of per-thread logs used grep() with\ndirectly \"$re\", which would cause the test to consider all the logs as\na match without caring about their format at all. Using \"/$re/\" makes\ngrep() perf...
[ { "msg_contents": "Hi.\n\n(For brevity, in this mail I refer to \"ALTER SUBSCRIPTION sub REFRESH\nPUBLICATION\" as \"ASRP\")\n\n--\n\nThe PG Docs for ASRP WITH (copy_data = true), says \"(Previously\nsubscribed tables are not copied.)\" [1].\n\nI thought this rule meant that only tables which got added by ALTER...
[ { "msg_contents": "Hi all\n\nAs a result of some recent work on Windows I have a list of PGDLLIMPORTs\nI'd like to add to existing exported globals.\n\nAll affected variables are already extern, so this doesn't expose any new\nAPI not already available to non-Windows extensions.\n\nI've split the patch up for c...
[ { "msg_contents": "Till now, we didn't allow to stream the changes in logical replication\ntill we receive speculative confirm or the next DML change record\nafter speculative inserts. The reason was that we never use to process\nspeculative aborts but after commit 4daa140a2f it is possible to\nprocess them so ...
[ { "msg_contents": "Dear Hackers,\n\nI checked about DECLARE STATEMENT(added from ad8305a), and I noticed that\nthis connection-control feature cannot be used for DEALLOCATE and DESCRIBE statement.\n\nI attached the patch that fixes these bugs, this contains source and test code.\n\nHow do you think? \n\nBest Re...
[ { "msg_contents": "Hi all,\n\nWhile digging into some of the TAP tests, I have noticed that\n002_pgbench_no_server.pl prints array pointers, like that:\nopts=-f no-such-file, stat=1, out=ARRAY(0x1374d7990),\nerr=ARRAY(0x14028dc40), name=pgbench option error: no file# Running:\npgbench -f no-such-file\n\nI am a ...
[ { "msg_contents": "Hello,\n\nin src/tools/msvc/Solution.pm (in the current master) there is a \nleftover from the past:\n > confess \"Bad format of version: $self->{strver}\\n\";\n\nstrver has been gone since 8f4fb4c6 in 2019, so I suggest an obvious \none-line fix in the patch attached:\n\ndiff...
[ { "msg_contents": "Hello all,\n\nI am trying to add support for composite types to my ORM, which uses libpq \nand the binary format.\n\nGiven a schema like this one:\n\ncreate type composite as (...);\ncreate table sometable (field composite, ...);\n\nI want to execute a query like this:\n\nPQexecParams(\"inser...
[ { "msg_contents": "Hi,\n\nif a failover (or probably a switchover, at least in the way Patroni\ndoes it) occurs, the timeline history (e.g. via \"patronictl history\"[1])\nseems to read \"no recovery target specified\". That's correct, of course,\nfrom a PITR perspective, but for the (possibly more common?) pro...
[ { "msg_contents": "[ starting a new thread so as not to confuse the cfbot ]\n\nI wrote:\n> Michael Paquier <michael@paquier.xyz> writes:\n>> Good point. That's worse than just pfree() which is just a plain call\n>> to free() in the frontend. We could have more policies here, but my\n>> take is that we'd bette...
[ { "msg_contents": "Hi,\n\nI sometimes have to deal with queries referencing multiple and/or complex\nviews. In such cases, it's quite troublesome to figure out what is the query\nreally executed. Debug_print_rewritten isn't really useful for non trivial\nqueries, and manually doing the view expansion isn't gr...
[ { "msg_contents": "Hello all,\n\n\nI'm moving to another company from July 1st. I may possibly not be allowed to do open source activities there, so let me say goodbye once. Thank you all for your help. I really enjoyed learning PostgreSQL and participating in its development.\n\nIt's a pity that I may not b...
[ { "msg_contents": "> Hi,\n>\n> I sometimes have to deal with queries referencing multiple and/or complex\n> views. In such cases, it's quite troublesome to figure out what is the\n> query\n> really executed. Debug_print_rewritten isn't really useful for non trivial\n> queries, and manually doing the view expans...
[ { "msg_contents": "\nI am planning on forking the tree so we can start adding developments\nfor Postgres 15 in the upcoming commitfest. This will be done tomorrow,\nJune 28, late morning US East coast time. I will be following the\nprocedures laid out in src/tools/RELEASE_CHANGES under the heading\n\"Starting a...
[ { "msg_contents": "moonjelly just reported an interesting failure [1]. It seems that\nwith the latest bleeding-edge gcc, this code is misoptimized:\n\n /* check random range */\n if (imin > imax)\n {\n pg_log_error(\"empty range given to random\")...
[ { "msg_contents": "Hi,\n\nestimating joins is one of the significant gaps related to extended\nstatistics, and I've been regularly asked about what we might do about\nthat. This is an early experimental patch that I think might help us\nwith improving this, possible even in PG15.\n\nNote: I do not claim this is...
[ { "msg_contents": "Hello,\n\nWhile trying to use sqlsmith with postgres compiled from the master\nbranch, I've found that the PQerrorMessage() function now returns\nnon-informational but not empty error message after the successful\nPQconnectdb() call.\n    conn = PQconnectdb(conninfo.c_str());\n    char *errms...
[ { "msg_contents": "The wraparound failsafe mechanism added by commit 1e55e7d1 had minimal\ndocumentation -- just a basic description of how the GUCs work. I\nthink that it certainly merits some discussion under \"25.1. Routine\nVacuuming\" -- more specifically under \"25.1.5. Preventing Transaction\nID Wraparou...
[ { "msg_contents": "This is crashing repeatedly during insert/update immediately after upgrading an\ninstance to v14, from v13.3. In case it matters, the cluster was originally\ninitdb at 13.2.\n\nTRAP: FailedAssertion(\"_bt_posting_valid(nposting)\", File: \"nbtdedup.c\", Line: 1062, PID: 28580)\npostgres: tel...
[ { "msg_contents": "I found a couple of places where numeric multiplication suffers from\noverflow errors for inputs that aren't necessarily very large in\nmagnitude.\n\nThe first is with the numeric * operator, which attempts to always\nproduce the exact result, even though the numeric type has a maximum\nof 16...
[ { "msg_contents": "There are certain parts of code that laboriously initialize every field \nof a struct to (some spelling of) zero, even though the whole struct was \njust zeroed (by makeNode() or memset()) a few lines earlier. Besides \nbeing redundant, I find this hard to read in some situations because \ni...
[ { "msg_contents": "Here's the diff from a pgindent run. The results look kosher to me - I\nhad to do a little surgery on queryjumble.h due to it having an unused\ntypedef.\n\n\ncheers\n\n\nandrew\n\n--\nAndrew Dunstan\nEDB: https://www.enterprisedb.com", "msg_date": "Mon, 28 Jun 2021 08:29:10 -0400", "m...
[ { "msg_contents": "I happened to spot the below call in src/bin/pg_basebackup/streamutil.c which\nhas an unbounded %s in the format.\n\n /* fetch xlog value and unit from the result */\n if (sscanf(PQgetvalue(res, 0, 0), \"%d%s\", &xlog_val, xlog_unit) != 2)\n\nThere is no risk of overflow as the unit is ...
[ { "msg_contents": "\nThe README for pg_indent says:\n\n\n    ./configure     # \"make\" will not work in an unconfigured tree\n    cd src/include/catalog\n    make reformat-dat-files\n    cd ../../..\n\n\nThis looks like a case of using a sledgehammer to crack a nut.\n\nI did this, which amounts to the same thi...
[ { "msg_contents": "Hi,\n\nI want to add the '--ignore-errors' option into the pg_regress module.\n\nI understand it can't be used in the regression or TAP tests. But such \noption is useful to test a custom extension. A custom extension couldn't \npass all check-world tests and will be stopped at the end of fir...
[ { "msg_contents": "Numeric x^y is supported for x < 0 if y is an integer, but this\ncurrently fails if y is outside the range of an int32:\n\nSELECT (-1.0) ^ 2147483647;\n ?column?\n---------------------\n -1.0000000000000000\n(1 row)\n\nSELECT (-1.0) ^ 2147483648;\nERROR: cannot take logarithm of a negat...
[ { "msg_contents": "Hi all,\n\nI realized that we use the magic number 10 instead of\nPG_STAT_GET_REPLICATION_SLOT_COLS in pg_stat_get_replication_slot()\nfunction. It seems an oversight of the original commit. Attached patch\nfixes it.\n\nRegards,\n\n-- \nMasahiko Sawada\nEDB: https://www.enterprisedb.com/", ...
[ { "msg_contents": "Hi,\n\nNot per Coverity.\n\nhash_choose_num_partitions function has issues.\nThere are at least two path calls made with used_bits = 0.\nSee at hashagg_spill_init.\n\nTo confirm, I run this code on cpp.sh:\nint main()\n{\n int npartitions = 0;\n int used_bits = 0;\n int partition_bits =...
[ { "msg_contents": "Hi,\n\nThe program pg_receivewal can use gzip compression to store the received WAL.\nThis patch teaches it to be able to use lz4 compression if the binary is build\nusing the -llz4 flag.\n\nPreviously, the user had to use the option --compress with a value between [0-9]\nto denote that gzip ...
[ { "msg_contents": "When specifying NUMERIC(precision, scale) the scale is constrained to\nthe range [0, precision], which is per SQL spec. However, at least one\nother major database vendor intentionally does not impose this\nrestriction, since allowing scales outside this range can be useful.\n\nA negative sca...
[ { "msg_contents": "On 2021-Jun-29, Alvaro Herrera wrote:\n\n>Ah, yes it does. I can reproduce this now. I thought PQconsumeInput\n>was sufficient, but it's not: you have to have the PQgetResult in there\n>too. Looking ...\n\nI think that has an oversight with a719232\n\nreturn false shouldn't be return 0?\n\nre...
[ { "msg_contents": "Hi, hackers!\n\nMany recently discussed features can make use of an extensible storage\nmanager API. Namely, storage level compression and encryption [1], [2], [3],\ndisk quota feature [4], SLRU storage changes [5], and any other features\nthat may want to substitute PostgreSQL storage layer ...
[ { "msg_contents": "PITR of Abort Prepared generates the wrong log message.\n\nFix attached\n\n-- \nSimon Riggs http://www.EnterpriseDB.com/", "msg_date": "Tue, 29 Jun 2021 23:03:30 +0100", "msg_from": "Simon Riggs <simon.riggs@enterprisedb.com>", "msg_from_op": true, "msg_subject"...
[ { "msg_contents": "Hello!\n\nTomáš Vondra has shared a few ideas to improve BRIN index in czech\nPostgreSQL mail list some time ago [1 , in czech only]. This is first\ntry to implement one of those ideas.\n\nCurrently BRIN index blocks HOT update even it is not linked tuples\ndirectly. I'm attaching the initial...
[ { "msg_contents": "Hi all,\n\njsonapi.c includes the following code bits to enforce the use of\nlogging:\n#ifdef FRONTEND\n#define check_stack_depth()\n#define json_log_and_abort(...) \\\n do { pg_log_fatal(__VA_ARGS__); exit(1); } while(0)\n#else\n#define json_log_and_abort(...) elog(ERROR, __VA_ARGS__)\n#en...
[ { "msg_contents": "For PITR, getRecordTimestamp() did not include all record types that\ncontain times.\nAdd handling for checkpoints, end of recovery and prepared xact record types.\nBased on earlier discussions with community members.\n\nAlso, allow the option of recovery_target_use_origin_time = off (default...
[ { "msg_contents": "Hi all,\n\nThe next commit fest is going to begin soon.\nI would like to volunteer as commit fest manager for 2021-07 if the\nrole is not filled and there are no objections.\n\nRegards,\nVignesh\n\n\n", "msg_date": "Wed, 30 Jun 2021 19:01:03 +0530", "msg_from": "vignesh C <vignesh21@g...
[ { "msg_contents": "Hi,\n\nLast year in [1], I had briefly mentioned $subject. I'm starting this\nthread to propose a small patch to alleviate the inefficiency of that\ncase.\n\nAs also mentioned in [1], when running -Mprepared benchmarks\n(plan_cache_mode = force_generic_plan) using partitioned tables,\nExecRT...
[ { "msg_contents": "Back when working on 959d00e9d, to allow ordered partition scans for\nLIST and RANGE partitioned tables, I mentioned [1] that if we had a\nfield that recorded a Bitmapset of the non-pruned partitions, we could\nuse that to do a more thorough check to see if ordered scans are\npossible.\n\nAt ...
[ { "msg_contents": "Hi.\n\nI've seen the following effect on PostgreSQL 14 stable branch.\nIndex, created on partitioned table, disappears from pg_dump or psql \\d \noutput.\nThis seems to begin after analyze. Partitoned relation relhasindex \npg_class field suddenly becomes false.\n\nThe issue happens after\n\n...
[ { "msg_contents": "When PostgresNode::system_or_bail() fails, it's quite opaque as to what\nis happening. This patch improves things by printing some detail, as\nsuggested in Perl's doc for system().\n\n-- \n�lvaro Herrera 39�49'30\"S 73�17'W\n htt...
[ { "msg_contents": "-hackers,\n\nThis patch adds the concept of \"multiconnect\" to pgbench (better\nterminology welcome). The basic idea here is to allow connections made\nwith pgbench to use different auth values or connect to multiple\ndatabases. We implement this using a user-provided PGSERVICEFILE and\ncho...
[ { "msg_contents": "Hello,\n\nHere is a set of patches to add SQL:2011 application-time support (aka\nvalid-time).\nPrevious discussion was on\nhttps://www.postgresql.org/message-id/20200930073908.GQ1996@paquier.xyz\nbut I thought I should update the email subject.\n\nThere are four patches here:\n\n- Add PERIOD...
[ { "msg_contents": "Hi,\n\nFiltering of columns at the publisher node will allow for selective\nreplication of data between publisher and subscriber. In case the updates\non the publisher are targeted only towards specific columns, the user will\nhave an option to reduce network consumption by not sending the d...
[ { "msg_contents": "The Core Team would like to extend our congratulations to\nDaniel Gustafsson and John Naylor, who have accepted invitations\nto become our newest Postgres committers.\n\nPlease join me in wishing them much success and few bugs.\n\n\t\t\tregards, tom lane\n\n\n", "msg_date": "Wed, 30 Jun 2...
[ { "msg_contents": "(Re-sending this email, because the Commitfest app mistakenly [3]\nconsidered previous email [4] to be part of the old thread, whereas it\nshould not be considered that way)\n\nI came across this thread [1] to disallow canceling a transaction not\nyet confirmed by a synchronous replica. I thi...
[ { "msg_contents": "Attached is a combined diff for a set of related patches to the built-in\npgbench workloads. One commit adds an INSERT workload. One fixes the long\nstanding 0 length filler issue. A new --extra-indexes option adds the\nindexes needed for lookups added by the --foreign-keys option.\n\nThe ...
[ { "msg_contents": "It seems like a few too many years of an SQL standard without any\nstandardised way to LIMIT the number of records in a result set caused\nvarious applications to adopt some strange ways to get this behaviour.\nOver here in the PostgreSQL world, we just type LIMIT n; at the end of\nour querie...
[ { "msg_contents": "Hello.\n\nWhile I looked a patch, I found that the following ECPG statement\ngenerates uncompilable .c source.\n\nEXEC SQL CREATE TABLE t AS stmt;\n\necpgtest.c:\n#line 42 \"ecpgtest.pgc\"\n\n\t\tprintf(\"1:dbname=%s\\n\", dbname);\n\t\t{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, create...
[ { "msg_contents": "Quick patch to add mention of the need for compiling with\n--enable-tap-tests on the TAP section page\n\nhttps://www.postgresql.org/docs/current/regress-tap.html\n\nSearching about the TAP tests often leads to this page, but there is no\neasy link or mention of the fact that the sample invoca...
[ { "msg_contents": "Hi,\n\nThe function FreePageManagerPutInternal can access an uninitialized\nvariable,\nif the following conditions occur:\n\n1. fpm->btree_depth != 0\n2. relptr_off == 0 inside function (FreePageBtreeSearch)\n\nPerhaps this is a rare situation, but I think it's worth preventing.\n\n/* Search ...
[ { "msg_contents": "I've recently been working with a PostgreSQL database where we saw\nReorderBufferToastReplace() fail due to a reltoastrelid value of 0.  In\nthe original thread, Amit pointed out a connection to the speculative\ninsert decoding memory leak bug.  Bertrand built a test case confirming\nthat a s...
[ { "msg_contents": "Hi,\n\nI found a strange behavior when there is an insert after renaming the\nschema. The test steps for the same are given below, Here after the\nschema is renamed, the renamed schema table data should not be sent,\nbut the data was being sent. I felt the schema invalidation was not\ncalled,...
[ { "msg_contents": "In my git workflow, I normally use scripts to simplify and check things.\nPreviously, most of my workfload was on master, with patches migrated to\nappropriate back branches.\n\nFYI, now that we have the release notes only in the major version\nbranches, I have had to adjust my scripts to all...
[ { "msg_contents": "On Fri, 2 Jul 2021 at 22:55, Dean Rasheed\n<dean(dot)a(dot)rasheed(at)gmail(dot)com> wrote:\n> Here's an update with the\n> last set of changes discussed.\nIf you allow me a small suggestion.\nMove the initializations of the variable tmp_var to after check if the\nfunction can run.\nSaves som...
[ { "msg_contents": "Don't try to print data type names in slot_store_error_callback().\n\nThe existing code tried to do syscache lookups in an already-failed\ntransaction, which is problematic to say the least. After some\nconsideration of alternatives, the best fix seems to be to just drop\ntype names from the...
[ { "msg_contents": "I've done a experimental tool to convert bison grammars to a kind of \nEBNF understood byhttps://www.bottlecaps.de/rr/ui \n<https://www.bottlecaps.de/rr/ui>to generate railroad diagrams see \nbellow the converted'postgresql-13.3/src/backend/parser/gram.y' and with \nsome hand made changes to ...
[ { "msg_contents": "Hi,\nI was looking at :\nRelax transactional restrictions on ALTER TYPE ... ADD VALUE (redux).\n\nIn check_safe_enum_use():\n\n+ if (!TransactionIdIsInProgress(xmin) &&\n+ TransactionIdDidCommit(xmin))\n+ return;\n\nSince the condition would be true only when TransactionIdDidCom...
[ { "msg_contents": "Here https://gist.github.com/mingodad/49291e0e9505522c66fcd3fcea4a939d I \nposted the postgresql-13.3/src/backend/parser/gram.y with positional \nreferences by named references that is supported by bison for some time now.\n\nIt was done with a custom script and some comments are missing, if ...
[ { "msg_contents": "Over in [1] it is demonstrated that with CLOBBER_CACHE_ALWAYS enabled,\ninitdb accounts for a full 50% of the runtime of \"make check-world\"\n(well, actually of the buildfarm cycle, which is not quite exactly\nthat but close). Since initdb certainly doesn't cost that much\nnormally, I wonde...
[ { "msg_contents": "As I've been poking around in this area, I find myself growing\nincreasingly annoyed at the new GUC name\n\"debug_invalidate_system_caches_always\". It is too d*mn long.\nIt's a serious pain to type in any context where you don't have\nautocomplete to help you. I've kept referring to this t...
[ { "msg_contents": "Hi hackers,\r\n\r\nWe recently ran into an issue where the visibility map of a relation was corrupt, running Postgres 12.4. The error we'd get when running a SELECT * from this table is:\r\n\r\ncould not access status of transaction 3704450152\r\nDETAIL: Could not open file \"pg_xact/0DCC\":...
[ { "msg_contents": "Hi all\r\n\r\nThe return value of function PQsendFlushRequest is 1 or 0.\r\n-------------------------------------------------------------------\r\n<para>\r\n Sends a request for the server to flush its output buffer.\r\n<synopsis>\r\nint PQsendFlushRequest(PGconn *conn);\r\n</synopsis>\r\n...
[ { "msg_contents": "Hi,\n\nThis is not a live bug.\nI think this is worth fixing, just for the sake of style and code\ncorrectness.\nAs a bonus, we have a reduced scope and standardized return.\n\nregards,\nRanier Vilela", "msg_date": "Mon, 5 Jul 2021 09:40:31 -0300", "msg_from": "Ranier Vilela <ranier.v...
[ { "msg_contents": "Hi\n\nI used the SetFileInformationByHandle function with the \nFILE_RENAME_FLAG_POSIX_SEMANTICS flag for the file rename function..\n\n1) The _WIN32_WINNT variable needs to be increased to 0x0A00 (Windows \n10).  Fixed conflict with #undef CHECKSUM_TYPE_NONE\n\n2) The SetFileInformationByHan...
[ { "msg_contents": ">Please find attached a POC patch to do just that.\n\n>The switch to the single-datum tuplesort is done when there is only one\n>attribute, it is byval (to avoid having to deal with copy of the\nreferences\n>everywhere) and we are not in bound mode (to also avoid having to move\nthings\n>arou...
[ { "msg_contents": "While re-reading this code I found a small typo and fixed it (making\nthe comment more explicit at the same time).\n\nThanks,\nJames", "msg_date": "Mon, 5 Jul 2021 14:54:51 -0400", "msg_from": "James Coleman <jtc331@gmail.com>", "msg_from_op": true, "msg_subject": "Minor typo ...
[ { "msg_contents": "Hello,\n\nWhile testing the patch \"Add proper planner support for ORDER BY / DISTINCT \naggregates\" [0] I discovered the performance penalty from adding a sort node \nessentially came from not using the single-datum tuplesort optimization in \nExecSort (contrary to the sorting done in ExecA...
[ { "msg_contents": "Hi all,\r\n\r\n\r\nWhen I read the source code file src/backend/access/transam/xloginsert.c, I get something confused me.\r\nIn the function XLogSaveBufferForHint, the flags are always REGBUF_FORCE_IMAGE which means it is always need backups.\r\nIs it right? Why do not check the full_page_wri...
[ { "msg_contents": "Thank you for reply. \r\nYou are right and the PostgreSQL server writes the entire content of each disk page to WAL during the first modification of that page after a\r\ncheckpoint while data checksum is on. \r\n\r\n\r\nBut I wonder whether it is necessary or not while my file system can prot...
[ { "msg_contents": "Hi,\n\n\nI have noticed that postgres_fdw do not push down the CASE WHEN clauses. \nIn the following case this normal:\n\n contrib_regression=# EXPLAIN (ANALYZE, VERBOSE) SELECT (CASE WHEN\n mod(c1, 4) = 0 THEN 1 ELSE 2 END) FROM ft1;\n                                               ...
[ { "msg_contents": "When reading the output of `initdb --help` I could not clearly\nunderstand what the purpose of the --sync-only option was, until I\nread the documentation of initdb.\n\n -S, --sync-only only sync data directory\n\nPerhaps the confusion was caused by the fact that sync(hronization)\...
[ { "msg_contents": "When reading through code for my previous patch [1] I realized that\ninitdb does *not* warn users that it ignores all other options (except\n-D/--pgdata) if the --sync-only option is used.\n\nI'm not able to come up with an exact situation to prove this, but\nthis behaviour seems potentially ...
[ { "msg_contents": "Hi \r\n\r\nWhen I used COPY FROM command on windows, I found that If the line data ends with a backslash and carriage return/newlines(\\r\\n),COPY FROM mishandle the line .\r\nAs a result, there were unexpected data loaded into database.\r\n\r\nThe following case can reproduce this issue.\r\n...
[ { "msg_contents": "Hi all,\n\nIndex vacuuming is one of the most time-consuming processes in lazy\nvacuuming. lazy_tid_reaped() is a large part among them. The attached\nthe flame graph shows a profile of a vacuum on a table that has one index\nand 80 million live rows and 20 million dead rows, where\nlazy_tid_...
[ { "msg_contents": ">You can check the more details in the attached patch. Any feedback is\nwelcome.\n\nI have tiny comments about your patch:\n\n1. name of file is uniquekey.c?\n\n+ * pathkeys.c\n+ * Utilities for maintaining uniquekey.\n\n2. Variable \"PathKey *pathkey\" at function: add_uniquekey_for_uniquei...
[ { "msg_contents": "Hi, hackers\n\nThe documentation [1] says:\n\nWhen dropping a subscription that is associated with a replication slot on the\nremote host (the normal state), DROP SUBSCRIPTION will connect to the remote\nhost and try to drop the replication slot as part of its operation. This is\nnecessary so...
[ { "msg_contents": "Hi.\n\nThe following test case makes postgresql backend crash. The trigger is \nincorrect, but this didn't crash postgresql before\n\ncommit 86dc90056dfdbd9d1b891718d2e5614e3e432f35 (HEAD)\nAuthor: Tom Lane <tgl@sss.pgh.pa.us>\nDate: Wed Mar 31 11:52:34 2021 -0400\n\n Rework planning an...