threads
listlengths
1
2.99k
[ { "msg_contents": "Currently there's no good way that I'm aware of for monitoring\nsoftware to check what the xmin horizon is being blocked at. You can\ncheck pg_stat_replication and pg_replication_slots and\ntxid_snapshot_xmin(txid_current_snapshot()) and so on, but that list\ncan grow, and it means monitoring...
[ { "msg_contents": "Hi,\n\nIn thread [1], we are discussing to expose WAL usage data for each\nstatement in a way quite similar to how we expose BufferUsage data.\nThe way it exposes seems reasonable to me and no one else raises any\nobjection. It could be that it appears fine to others who have\nreviewed the p...
[ { "msg_contents": "Imagine a function that was going to take a table of, say, images, and\nso something to them over and over, like:\n\n SELECT pixel_count(img), clr_name, img_name\n FROM images img\n CROSS JOIN colors clr\n\nWhen you run this function, you find that a great amount of time is\nbeing spend in...
[ { "msg_contents": "Hello,\n\nI guess no human or machine ever runs $SUBJECT, because when I tried\nit while hunting down users of txid_XXX functions, it failed (see\nend). To run it, you need a primary/standby pair, here 5441/5442, and\nthen:\n\nPGPORT=5441 psql postgres -f sql/hs_primary_setup.sql\nPGPORT=544...
[ { "msg_contents": "I’m using PostgreSQL Version 11.2. Try this:\n\ncreate type rt as (a text, b text);\ncreate table t(k serial primary key, r rt);\ninsert into t(r) values\n ('(\"a\",\"b\")'),\n ('( \"e\" , \"f\" )'),\n ('( \"g (h)\" , \"i, j\" )');\nselect\n k,\n '>'||(r).a||'<' as a,\n '>'||(r).b||'<' ...
[ { "msg_contents": "Currently there is no way to check if CAST will succeed.\n\nTherefore I propose adding new function: is_castable\n\nSELECT is_castable('foo' as time) // false\nSELECT is_castable('123' as numeric) // true\nSELECT is_castable(1.5 as int) // true\nSELECT is_castable('1.5' as int) // false\n\nMa...
[ { "msg_contents": "Hi,\n\nSuppose that the server is executing a lengthy query, and the client\nbreaks the connection. The operating system will be aware that the\nconnection is no more, but PostgreSQL doesn't notice, because it's not\ntry to read from or write to the socket. It's not paying attention to\nthe s...
[ { "msg_contents": "There are a couple of things that pg_basebackup can't do that might be\nan issue for some users. One of them is that you might want to do\nsomething like encrypt your backup. Another is that you might want to\nstore someplace other than in the filesystem, like maybe S3. We could\ncertainly te...
[ { "msg_contents": "Generate backup manifests for base backups, and validate them.\n\nA manifest is a JSON document which includes (1) the file name, size,\nlast modification time, and an optional checksum for each file backed\nup, (2) timelines and LSNs for whatever WAL will need to be replayed\nto make the bac...
[ { "msg_contents": "Hi,\n\nGetOldestXmin() applies vacuum_defer_cleanup_age only when\n!RecoveryInProgress(). In contrast to that GetSnapshotData() applies it\nunconditionally.\n\nI'm not actually clear whether including vacuum_defer_cleanup_age on a\nreplica is meaningful. But it strikes me as odd to have that ...
[ { "msg_contents": "Hi,\n\nRight now we prevent dead rows in non-shared catalog tables from being\nremoved whenever there is a logical slot with an older catalog\nxmin. Obviously that's required when the slot is in the current\ndatabase, but it's not when the slot is in a different database.\n\nI don't think we ...
[ { "msg_contents": "Hi,\n\nRunning sqlsmith on master i got an assertion failure on parse_coerce.c:2049\n\nThis is a minimal query to reproduce in an empty database, i also\nattached the stack trace\n\n \"\"\"\nselect\n pg_catalog.array_in(\n cast(pg_catalog.regoperatorout(\n cast(cast(null as regoperat...
[ { "msg_contents": "Hi,\n\nvacuum_rel() has the following comment:\n\t/*\n\t * Functions in indexes may want a snapshot set. Also, setting a snapshot\n\t * ensures that RecentGlobalXmin is kept truly recent.\n\t */\n\tPushActiveSnapshot(GetTransactionSnapshot());\n\nwhich was added quite a while ago in\n\ncommi...
[ { "msg_contents": "Hi,\n\nAnother one caught by sqlsmith, on the regression database run this\nquery (using any non-partitioned table works fine):\n\n\"\"\"\nselect currtid('pagg_tab'::regclass::oid, '(0,156)'::tid) >= '(1,158)'::tid;\n\"\"\"\n\nThis works on 11 (well it gives an error because the file doesn't\...
[ { "msg_contents": "Over in the thread at [1] we were wondering how come buildfarm member\nhyrax has suddenly started to fail like this:\n\ndiff -U3 /home/buildfarm/buildroot/HEAD/pgsql.build/src/test/regress/expected/errors.out /home/buildfarm/buildroot/HEAD/pgsql.build/src/test/regress/results/errors.out\n--- ...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 16345\nLogged by: Augustinas Jokubauskas\nEmail address: doitsimplefy@gmail.com\nPostgreSQL version: 12.0\nOperating system: Ubuntu 18.04.3\nDescription: \n\nWhen query:\r\n\r\nselect ts_headline(\...
[ { "msg_contents": "Hi,\n\nWhen starting with on a data directory with an older WAL page magic we\ncurrently make that hard to debug. E.g.:\n\n2020-04-05 15:31:04.314 PDT [1896669][:0] LOG: database system was shut down at 2020-04-05 15:24:56 PDT\n2020-04-05 15:31:04.314 PDT [1896669][:0] LOG: invalid primary ...
[ { "msg_contents": "Hello, hackers!\n\nI`m investigating a complains from our clients about archive recovery \nspeed been very slow, and I`ve noticed a really strange and, I think, a \nvery dangerous recovery behavior.\n\nWhen running multi-timeline archive recovery, for every requested segno \nstartup process i...
[ { "msg_contents": "Hi,\n\nUsing 2PC with master very quickly leads to:\n\n2020-04-05 19:42:18.368 PDT [2298126][5/2009:0] LOG: out of file descriptors: Too many open files; release and retry\n2020-04-05 19:42:18.368 PDT [2298126][5/2009:0] STATEMENT: COMMIT PREPARED 'ptx_2';\n\nThis started with:\n\ncommit 0d...
[ { "msg_contents": "Hi,\n\nDue to the change below, when using the default postgres configuration\nof ynchronous_commit = on, max_wal_senders = 10, will now acquire a new\nexclusive lwlock after writing a commit record.\n\ncommit 48c9f4926562278a2fd2b85e7486c6d11705f177\nAuthor: Simon Riggs <simon@2ndQuadrant.co...
[ { "msg_contents": "Executive summary: the \"MyWalSnd->write < sentPtr\" in WalSndWaitForWal() is\nimportant for promptly updating pg_stat_replication. When caught up, we\nshould impose that logic before every sleep. The one-line fix is to sleep in\nWalSndLoop() only when pq_is_send_pending(), not when caught ...
[ { "msg_contents": "Hi all,\n\nA quick make check with Postgres 11 and 12 for src/test/ssl/ shows a\nlot of difference in run time, using the same set of options with SSL\nand the same compilation flags (OpenSSL 1.1.1f, with debugging and\nassertions enabled among other things FWIW), with 12 taking up to five\nm...
[ { "msg_contents": "When testing commit c6b9204 with CLOBBER_CACHE_ALWAYS, of the 20 hours for\ncheck-world, 001_rep_changes.pl took 1.8 hours. At commit 5406513, the test\nfailed at a poll_query_until() timeout[1]. The slow part is the logical\nreplication of \"DELETE FROM tab_ins WHERE a > 0\", which deletes...
[ { "msg_contents": "Propose\n\n Optimization of using the family of macros VALGRIND_MEMPOOL_*.\n\nHow?\n\n - add the GetMemoryChunkCapacity method, which returns the size of\nusable space in the chunk\n - use GetMemoryChunkCapacity on VALGRIND_MEMPOOL_* calls\n - call VALGRIND_MEMPOOL_CHANGED only for really ch...
[ { "msg_contents": "Hi All,\n\nI am working on “pg_locale compilation error with Visual Studio 2017”,\nRelated threads[1],[2].\nWe are getting compilation error in static char *IsoLocaleName(const char\n*winlocname) function in pg_locale.c file. This function is trying to\nconvert the locale name into the Unix s...
[ { "msg_contents": "Hi,\n\nRight now, pg_checksums cannot check a base backup directory taken by\npg_basebackup:\n\ninitdb -k data > /dev/null\npg_ctl -D data -l logfile start > /dev/null\npg_basebackup -D data_backup\npg_checksums -D data_backup \npg_checksums: error: cluster must be shut down\n\nSo users need ...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 16346\nLogged by: Alexander Lakhin\nEmail address: exclusion@gmail.com\nPostgreSQL version: 12.2\nOperating system: Ubuntu 18.04\nDescription: \n\nWhen using pg_upgrade on a database with the follo...
[ { "msg_contents": "rr is a tool that makes gdb much more useful by supporting recording\nand replaying of the program being debugged. I highly recommend trying\nrr if you're somebody that regularly uses gdb to debug Postgres. rr\nimplements a gdbserver under the hood, so it's very easy to start\nusing once you'...
[ { "msg_contents": "Hi,\n\nI got an error when I was trying to insert a circle using the syntax \n(the 3rd one) specified in the latest document.\n\nhttps://www.postgresql.org/docs/current/datatype-geometric.html#DATATYPE-CIRCLE\n< ( x , y ) , r >\n( ( x , y ) , r )\n   ( x , y ) , r\n     x , y   , r\n\nHere is...
[ { "msg_contents": "Hi al\r\n\r\nIn getDefaultACLs function, some PQExpBuffer are not destroy\r\n\r\nFile: src/bin/pg_dump/pg_dump.c\r\nDefaultACLInfo *\r\ngetDefaultACLs(Archive *fout, int *numDefaultACLs)\r\n{\r\n......\r\n\tif (fout->remoteVersion >= 90600)\r\n\t{\r\n\t\tPQExpBuffer acl_subquery = createPQExp...
[ { "msg_contents": "Do we allow such a bool parameter value? This seems puzzling to me.\n\n\npostgres=# create table t1(c1 int) with(autovacuum_enabled ='tr');\nCREATE TABLE\npostgres=# create table t2(c1 int) with(autovacuum_enabled ='fa');\nCREATE TABLE\npostgres=# \\d+ t1\n ...
[ { "msg_contents": "This is just a placeholder thread for an open item that I'm adding to\nthe Open Items list. We can make a decision later.\n\nNow that we have Disk-based Hash Aggregation, there are a lot more\nsituations where the planner can choose HashAgg. The\nenable_hashagg_disk GUC, if set to true, choos...
[ { "msg_contents": "Support FETCH FIRST WITH TIES\n\nWITH TIES is an option to the FETCH FIRST N ROWS clause (the SQL\nstandard's spelling of LIMIT), where you additionally get rows that\ncompare equal to the last of those N rows by the columns in the\nmandatory ORDER BY clause.\n\nThere was a proposal by Andrew...
[ { "msg_contents": "Hi,\n\nNot sure what changed, but I'm seeing this failure:\n\nparse_coerce.c: In function ‘coerce_type’:\nparse_coerce.c:345:9: warning: implicit declaration of function ‘datumIsEqual’ [-Wimplicit-function-declaration]\n 345 | if (!datumIsEqual(newcon->constvalue, val2, false, newcon->co...
[ { "msg_contents": "Allow users to limit storage reserved by replication slots\n\nReplication slots are useful to retain data that may be needed by a\nreplication system. But experience has shown that allowing them to\nretain excessive data can lead to the primary failing because of running\nout of space. This...
[ { "msg_contents": "Dear hackers!\nDue to changes in PG13 RUM extension had errors on compiling.\nI propose a short patch to correct this.\n\nBest regards,\n\nPavel Borisov", "msg_date": "Wed, 8 Apr 2020 13:13:45 +0400", "msg_from": "Pavel Borisov <pashkin.elfe@gmail.com>", "msg_from_op": true, "...
[ { "msg_contents": "Hello\n\nThe following patch, which we added to build mingw-postgresql on Fedora, \nadds some missing libraries to Libs.private of libpq.pc, discovered when \nattempting to statically link with libpq:\n\n-lz: is required by -lcrypto\n-liconv: is required by -lintl (though possibly depends on ...
[ { "msg_contents": "Hi\n\nThe following patch, which we added to build mingw-postgresql on Fedora, \nmakes the internal minimal pthreads reimplementation only used when \nbuilding with MSVC, as on MINGW it causes symbol collisions with the \nsymbols provided my winpthreads.\n\nThanks\nSandro\n\n\ndiff -rupN post...
[ { "msg_contents": "Rationalize GetWalRcv{Write,Flush}RecPtr().\n\nGetWalRcvWriteRecPtr() previously reported the latest *flushed*\nlocation. Adopt the conventional terminology used elsewhere in the tree\nby renaming it to GetWalRcvFlushRecPtr(), and likewise for some related\nvariables that used the term \"rec...
[ { "msg_contents": "Hi,\n\nI just came across this scenario  where - vaccum o/p with (full 1, \nparallel 0) option not working\n\n--working\n\npostgres=# vacuum (parallel 1, full 0 ) foo;\nVACUUM\npostgres=#\n\n--Not working\n\npostgres=# vacuum (full 1, parallel 0 ) foo;\nERROR:  cannot specify both FULL and PA...
[ { "msg_contents": "This seems to be a bug in master, v12, and (probably) v11, where \"FOR EACH FOR\"\nwas first allowed on partition tables (86f575948).\n\nI thought this would work like partitioned indexes (8b08f7d48), where detaching\na partition makes its index non-inherited, and attaching a partition marks ...
[ { "msg_contents": "Hi,\n\nCompiling master on debian stretch, gcc 9.3.0 complains:\n\npartbounds.c: In function ‘partition_bounds_merge’:\npartbounds.c:1024:21: warning: unused variable ‘inner_binfo’ \n[-Wunused-variable]\n 1024 | PartitionBoundInfo inner_binfo = inner_rel->boundinfo;\n | ...
[ { "msg_contents": "After having reviewed [1] more than a year ago (the problem I found was that\nthe transient table is not available for deferred constraints), I've tried to\nimplement the same in an alternative way. The RI triggers still work as row\nlevel triggers, but if multiple events of the same kind app...
[ { "msg_contents": "I reviewed docs for v13, like:\ngit log --cherry-pick origin/master...origin/REL_12_STABLE -p doc\n\nI did something similar for v12 [0]. I've included portions of that here which\nstill seem lacking 12 months later (but I'm not intending to continue defending\neach individual patch hunk).\n...
[ { "msg_contents": "Hackers,\n\nRecently, as part of testing something else, I had need of a tool to create\nsurgically precise corruption within heap pages. I wanted to make the\ncorruption from within TAP tests, so I wrote the tool as a set of perl modules.\n\nThe modules allow you to \"tie\" a perl array to ...
[ { "msg_contents": "Hi,\n\nI'm playing with partitioned tables and found a minor thing with the\nerror reporting of bounds checking when create partitions.\n\nIn function check_new_partition_bound(), there are three places where\nwe call ereport() with a parser_errposition(pstate, spec->location)\nargument. How...
[ { "msg_contents": "Hello PostgreSQL 14 hackers,\n\nFreeBSD is much faster than Linux (and probably Windows) at parallel\nhash joins on the same hardware, primarily because its DSM segments\nrun in huge pages out of the box. There are various ways to convince\nrecent-ish Linux to put our DSMs on huge pages (see...
[ { "msg_contents": "Hi all,\n\nDuring investigating the issue our customer had, I realized that\n_bt_killitems() can record the same FPI pages multiple times\nsimultaneously. This can happen when several concurrent index scans\nare processing pages that contain killable tuples. Because killing\nindex items could...
[ { "msg_contents": ">On Wed, Apr 8, 2020 at 7:39 PM Juan José Santamaría Flecha\n\n>> Let me explain further, in pg_config_os.h you can check that the value of\n>> _WIN32_WINNT is solely based on checking _MSC_VER. This patch should also\n>> be meaningful for WIN32 builds using MinGW, or we might see this issue\...
[ { "msg_contents": "\nWe currently only run perlcritic at severity level 5, which is fairly\npermissive. I'd like to reduce that, ideally to, say, level 3, which is\nwhat I use for the buildfarm code.\n\nBut let's start by going to severity level 4. Give this perlcriticrc,\nderived from the buildfarm's:\n\n\n ...
[ { "msg_contents": "Hi hackers,\n\nWe found that several functions -- namely numeric_combine,\nnumeric_avg_combine, numeric_poly_combine, and int8_avg_combine -- are\nreturning NULL without signaling the nullity of datum in fcinfo.isnull.\nThis is obscured by the fact that the only functions in core (finalfunc\n...
[ { "msg_contents": "Hi,\n\nWe use (an equivalent of) the PAUSE instruction in spin_delay() for\nIntel architectures. The goal is to slow down the spinlock tight loop\nand thus prevent it from eating CPU and causing CPU starvation, so\nthat other processes get their fair share of the CPU time. Intel\ndocumentatio...
[ { "msg_contents": "Hi,\n\nI have noticed that attempting to use pg_basebackup from HEAD leads to\nfailures when using it with backend versions from 12 and older:\n$ pg_basebackup -D hoge\npg_basebackup: error: backup manifests are not supported by server\nversion 12beta2\npg_basebackup: removing data directory ...
[ { "msg_contents": "I've noticed that Postgres doesn't have support for DATETIMEOFFSET (or \nany functional equivalent data type) yet. Is this on the roadmap to \nimplement? I find it a very useful data type that I use all over the \nplace in TSQL databases.\n\n-- \nBest regards,\nJeremy Morton (Jez)\n\n\n", ...
[ { "msg_contents": "Over at https://www.postgresql.org/message-id/172c9d9b-1d0a-1b94-1456-376b1e017322@2ndquadrant.com\nPeter Eisentraut suggests that pg_validatebackup should be called\npg_verifybackup, with corresponding terminology changes throughout the\ncode and documentation.\n\nHere's a patch for that. I'...
[ { "msg_contents": "Hi hackers,\r\n\r\nI think I've found a small bug in pg_dump that could cause some schema\r\nprivileges to be missed. In short, if you've renamed a schema that\r\nhas an entry in pg_init_privs, pg_dump will skip dumping the initial\r\nACL for the schema. This results in missing privileges o...
[ { "msg_contents": "Hi\n\nNow, the content of redirect output has two parts\n\n1. tabular output\n2. cmd tags\n\nThere is a problem with command tags, because it is specific kind of\ninformation and can be nice if can be redirected to stdout every time like\n\\h output. There can be new psql variable like REDIRE...
[ { "msg_contents": "I just fixed a relcache leak that I accidentally introduced \n(5a1d0c9925). Because it was a TAP test involving replication workers, \nyou don't see the usual warning anywhere unless you specifically check \nthe log files manually.\n\nHow about a compile-time option to turn all the warnings ...
[ { "msg_contents": "Short version:\n\nIn what I'm currently working on I had a few questions about arrays\nand the execExpr/execExprInterp framework that didn't seem obviously\nanswered in the code or README.\n\n- Does the execExpr/execExprInterp framework allow a scalar array op\nto get an already expanded arra...
[ { "msg_contents": "Adding -hackers, originally forgotten.\n\nOn Sat, Apr 11, 2020 at 10:26:39PM +0200, Tomas Vondra wrote:\n> Thanks! I'll investigate.\n> \n> On Sat, Apr 11, 2020 at 02:19:52PM -0500, Justin Pryzby wrote:\n> > frequent crash looks like:\n> > \n> > #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/...
[ { "msg_contents": "Hi,\n\nI am experimenting with postgres and am wondering if there is any tutorial\non how to properly add a new command to postgres.\n\nI want to add a new constraint on \"CREATE ROLE\" that requires an integer,\nit has an identifier that is not a known (reserved or unreserved keyword)\nin po...
[ { "msg_contents": "Hi \n\nI found an exception using the latest master branch of PGSQL and wanted to check if it was a bug\n\nPlease refer this below scenario\n1)initdb ./initdb -k -D data\n2)Connect to server using single user mode ( ./postgres --single -D data postgres) and create a table\n ./postgres --sin...
[ { "msg_contents": "I'm not a fan of error messages like\n\n relation \"%s\" is not a table, foreign table, or materialized view\n\nIt doesn't tell me what's wrong, it only tells me what else could have \nworked. It's also tedious to maintain and the number of combinations \ngrows over time.\n\nThis was dis...
[ { "msg_contents": "As discussed in the thread at [1], I've been working on redesigning\nthe tables we use to present SQL functions and operators. The\nfirst installment of that is now up; see tables 9.30 and 9.31 at\n\nhttps://www.postgresql.org/docs/devel/functions-datetime.html\n\nand table 9.33 at\n\nhttps:...
[ { "msg_contents": "PGSQL Communities,\n\n\nWe migrated Oracle 11.x Database to PostgreSQL 12.x Database on a RH Linux\n7.x server.\nOn a different RH Linux 7.x Server, I have Oracle Client installed. Since\nwe have many scripts developed in Oracle SQL, is it possible for the\nPostgreSQL 12.x DB to process t...
[ { "msg_contents": "Hi,\n \n I find that most of the code does not check the return value of close(), When open a file for reading(O_RDONLY).\n\n But I find that it checks the return value of close() in code \"src/bin/pg_rewind/copy_fetch.c\" When open a file for reading(O_RDONLY).\n And it will call pg_fatal t...
[ { "msg_contents": "Hi,\n\nI have observed row_number() is giving different results when query\nexecuted in parallel. is this expected w.r.t parallel execution.\n\nCREATE TABLE tbl1 (c1 INT) partition by list (c1);\nCREATE TABLE tbl1_p1 partition of tbl1 FOR VALUES IN (10);\nCREATE TABLE tbl1_p2 partition of tbl...
[ { "msg_contents": "Hi,\n\nMaybe I am missing something obvious, but is it intentional that\nenable_indexscan is checked by cost_index(), that is, *after* creating\nan index path? I was expecting that if enable_indexscan is off, then\nno index paths would be generated to begin with, because I thought\nthey are ...
[ { "msg_contents": "Hi,\n\nWhen initializing an incremental sort node, we have the following as\nof ExecInitIncrementalSort():\n /*\n * Incremental sort can't be used with either EXEC_FLAG_REWIND,\n * EXEC_FLAG_BACKWARD or EXEC_FLAG_MARK, because we only one of many sort\n * batches in the current...
[ { "msg_contents": "Hi\r\n\r\nI am testing some features from Postgres 13, and I am not sure if I\r\nunderstand well to behave of EXPLAIN(ANALYZE, BUFFERS)\r\n\r\nWhen I run following statement first time in session I get\r\n\r\npostgres=# EXPLAIN (BUFFERS, ANALYZE) SELECT * FROM obce WHERE okres_id =\r\n'CZ0201...
[ { "msg_contents": "Hi ,\n\nWe have a sql file  called 'generated.sql' under src/test/regress/sql \nfolder . if we run this file on psql , take the dump and try to restore \nit on another db\nwe are getting error like -\n\npsql:/tmp/x:434: ERROR:  column \"b\" of relation \"gtest1_1\" is a \ngenerated column\nps...
[ { "msg_contents": ">>I m still working on testing this patch. If anyone has Idea please\nsuggest.\nI still see problems with this patch.\n\n1. Variable loct have redundant initialization, it would be enough to\ndeclare so: _locale_t loct;\n2. Style white space in variable rc declaration.\n3. Style variable cp_i...
[ { "msg_contents": "Guys; This errors out with: \n\nERROR: could not determine which collation to use for string comparison \n HINT: Use the COLLATE clause to set the collation explicitly.\n\n\nThe database is init'ed with: \ninitdb -D $PGDATA -E utf8 --locale=nb_NO.UTF-8\n\n13-dev HEAD as of 8128b0c152a67917535...
[ { "msg_contents": "Hi,\n\nOver in [1], Tom and I had a discussion in response to some confusion\nabout why remove_useless_groupby_columns() goes to the trouble of\nrecording a dependency on the PRIMARY KEY constraint when removing\nsurplus columns from the GROUP BY clause.\n\nThe outcome was that we don't need ...
[ { "msg_contents": "Hi!\n\nOne of our users asked me why they cannot read details of pg_stat_progress_vacuum while they have pg_read_all_stats role.\nMaybe I'm missing something, but I think they should be able to read stats...\n\nPFA fix.\nThis affects pg_stat_progress_analyze, pg_stat_progress_basebackup, pg_s...
[ { "msg_contents": "I had a report from the wilds that run-time partition pruning was not\nworking in certain cases.\n\nAfter some investigation and obtaining the mockup of the actual case,\nI discovered that the problem was down to accumulate_append_subpath()\nhitting the case where it does not pullup a Paralle...
[ { "msg_contents": "I'm trying to restore a backup on a different machine and it terminates\nwith the not really helpful messages:\n\npg_restore: [directory archiver] could not close data file: Success\npg_restore: [parallel archiver] a worker process died unexpectedly\n\nThe backup was made with\n\npg_dump --co...
[ { "msg_contents": "Hi all\r\n\r\nIn some cases , PGresult is not cleared.\r\n\r\nFile: src\\bin\\pg_basebackup\\streamutil.c\r\n\r\nbool\r\nRetrieveWalSegSize(PGconn *conn)\r\n{\r\n\tPGresult *res;\r\n......\r\n\tres = PQexec(conn, \"SHOW wal_segment_size\");\r\n\tif (PQresultStatus(res) != PGRES_TUPLES_OK)\r...
[ { "msg_contents": "The following documentation comment has been logged on the website:\n\nPage: https://www.postgresql.org/docs/10/sql-altersubscription.html\nDescription:\n\nIf the logical replication subscription is owned by a role that is not\nallowed to login (for example, if the LOGIN privilege is removed ...
[ { "msg_contents": "Hi,\n\nOver at http://postgr.es/m/CADM=JehKgobEknb+_nab9179HzGj=9EiTzWMOd2mpqr_rifm0Q@mail.gmail.com\nthere's a proposal for a parallel backup patch which works in the way\nthat I have always thought parallel backup would work: instead of\nhaving a monolithic command that returns a series of ...
[ { "msg_contents": "Hi,\n\n> On 2020-Apr-13, I wrote to buildfarm-admins:\n> > As skate and snapper are increasingly difficult to keep alive and \n> > building on debian sparc, and as there aren't many sparc animals \n> > in general, I've set up four new debian sparc64 animals, two on \n> > stretch and two on bu...
[ { "msg_contents": "Hi,\n\ncommit a96c41feec6b6616eb9d5baee9a9e08c20533c38\nAuthor: Robert Haas <rhaas@postgresql.org>\nDate: 2019-04-04 14:58:53 -0400\n\n Allow VACUUM to be run with index cleanup disabled.\n\n This commit adds a new reloption, vacuum_index_cleanup, which\n controls whether index cle...
[ { "msg_contents": "Hi,\n\nWhile testing for a feature I got this tablespace related error while\nrunning script.\nThe Issue is not reproducible everytime, but If I am running the same set\nof commands after 2-3 runs I am able to reproduce the same error.\n\n--first run - pass\n# master slave setup\n+ mkdir /tmp...
[ { "msg_contents": "While try to setup a cascading replication, I have observed that if we\nset the REPLICA IDENTITY to FULL on the subscriber side then there is\nan Assert hit.\n\nAfter analysis I have found that, when we set the REPLICA IDENTITY to\nFULL on subscriber side (because I wanted to make this a publ...
[ { "msg_contents": "Commit 896fcdb230e72 (sorry for chiming in too late, I missed that thread)\nadded a TLS init hook which is OpenSSL specific: openssl_tls_init_hook. Since\nthe rest of the TLS support in the backend is library agnostic, we should IMO\nmake this hook follow that pattern, else this will make a ...
[ { "msg_contents": "Hi !\r\n\r\nWhen using sepgsql module, I got warning \"WARNING: cache reference leak”.\r\n```\r\npostgres=# UPDATE range_parted set c = 95 WHERE a = 'b' and b > 10 and c > 100 returning (range_parted), *;\r\nWARNING: cache reference leak: cache pg_attribute (7), tuple 38/54 has count 1\r\nW...
[ { "msg_contents": "Hi,\n\nI'm starting a new thread for this, because the recent discussion of\nproblems with old_snapshot_threshold[1] touched on a lot of separate\nissues, and I think it will be too confusing if we discuss all of them\non one thread. Attached are three patches.\n\n0001 makes oldSnapshotContro...
[ { "msg_contents": "Hi,\n\nAvoiding some calls and set vars, when it is not necessary.\n\nbest regards,\nRanier Vilela", "msg_date": "Thu, 16 Apr 2020 19:59:41 -0300", "msg_from": "Ranier Vilela <ranier.vf@gmail.com>", "msg_from_op": true, "msg_subject": "[PATCH] Tiny optimization on nbtinsert.c"...
[ { "msg_contents": "Hi,\n\nWhen multiplying variables, the overflow will take place anyway, and only\nthen will the meaningless product be explicitly promoted to type int64.\nIt is one of the operands that should have been cast instead to avoid the\noverflow.\n\nregards,\nRanier Vilela", "msg_date": "Thu, 16...
[ { "msg_contents": "Hi, \n\nThe document(high-availability.sgml) says that there are only two ways \nto exit standby mode.\n\n 26.2.2. Standby Server Operation\n Standby mode is exited and the server switches to normal operation when \npg_ctl promote is run or a trigger file is found (promote_trigger_file).\n\nB...
[ { "msg_contents": "Hello.\n\nRecently a cache reference leak was reported then fixed [1].\n\nI happened to notice a similar possible leakage in\nremoveEtObjInitPriv. I haven't found a way to reach the code, but can\nbe forcibly caused by tweaking the condition.\n\nPlease find the attached.\n\nregards.\n\n[1] ht...
[ { "msg_contents": "Hi all\n\nI build postgers with VS in windows, and the following message output\n\n“ Unable to determine Visual Studio version: The nmake version could not be determined.”\n\nI investigated the VSObjectFactory.pm, and found the match string “if ($output =~ /(\\d+)\\.(\\d+)\\.\\d+(\\.\\d+)?$/m...
[ { "msg_contents": "I alluded to this in [0], but it's better discussed in its own thread.\n\nI think the check that makes pgstattuple_approx reject TOAST tables is a \nmistake. They have visibility and free space map, and it works just \nfine if the check is removed.\n\nAttached is a patch to fix this and add ...
[ { "msg_contents": "Hi, hackers!\n\n\nI found a problem with selectivity estimation for NULL-returning operators.\nmatchingsel() is not ready to use as a restriction selectivity estimator for\noperators like our jsonpath operators @? and @@, because it calls operator\nfunction on values obtained from pg_statisti...
[ { "msg_contents": "Hi\n\nI propose new function string_to_table. This function is significantly\nfaster (and simpler) variant of regexp_split_to_array function. There was\nsame process years ago when we implemented string_agg as faster variant of\narray_to_string(array_agg()). string_to_table is faster variant ...
[ { "msg_contents": "Our documentation explains many details about commands, tools, \nparameters in detail and with high accuracy. Nevertheless my impression \nis that we neglect the 'big picture': why certain processes exist and \nwhat their relation to each other is, summary of strategies, \nvisualization of ke...
[ { "msg_contents": "We choose a split point in nbtsplitloc.c primarily based on evenly\ndividing space among left and right halves of the split, while giving\nsecondary consideration to suffix truncation (there is other logic\nthat kicks in when there are many duplicates, which isn't related to\nwhat I want to t...
[ { "msg_contents": "pq_putmessage() is a macro which calls a function that is normally\nsocket_putmessage(), which returns either 0 on success or EOF in the\ncase of failure. Most callers ignore the return value, sometimes with\nan explicit cast to void, and other times without such a cast. As far\nas I can see,...
[ { "msg_contents": "I've recently been thinking about some optimizations to scalar array\nop expression evaluation [1], and Tom mentioned that I might want to\nconsider looking into previous efforts into caching stable\nsubexpressions as a component of that (particularly if I wanted it to\nbe useful for more tha...
[ { "msg_contents": "Hello PostgreSQL-development,\n\nOracle has implementation:\n\nselect id, amount, sum(DISTINCT amount) over () as total\n from xx;\n\n\nhttps://dbfiddle.uk/?rdbms=oracle_18&fiddle=8eeb60183ec9576ddb4b2c9f2874d09f\n\n\nWhy this is not possible in PG?\nhttps://dbfiddle.uk/?rdbms=postgres_12&fi...