threads
listlengths
1
2.99k
[ { "msg_contents": "Hi:\n\nTake the following example:\n\ninsert into cte1 select i, i from generate_series(1, 1000000)i;\ncreate index on cte1(a);\n\nexplain\nwith cte1 as (select * from cte1)\nselect * from c where a = 1;\n\nIt needs to do seq scan on the above format, however it is pretty\nquick if we chang...
[ { "msg_contents": "Hello hackers,\n\nAfter fixing bug #16161 (pg_ctl inability to open just deleted\npostmaster.pid) there are still some errors related to the same\nWindows-only issue.\nNamely, pg_upgradeCheck failures seen on\nhttps://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=fairywren&br=REL_13_STA...
[ { "msg_contents": "Hi, Hackers.\n\n Yesterday, OR REPLACE clause was provided to the CREATE TRIGGER statement, so I wrote a patch for tab completion for the psql command.\nTRIGGER adds tab completion to the CREATE OR REPLACE statement, and the CREATE TRIGGER and CREATE OR REPLACE TRIGGER statements are complete...
[ { "msg_contents": "Hi,\n\nThis is more of a head-ups than anything else, as I suspect this may come\nup in various forums.\n\nThe PostgreSQL installers for macOS (from EDB, possibly others too) create\nthe data directory in /Library/PostgreSQL/<major_ver>/data. This has been\nthe case since the first release, 1...
[ { "msg_contents": "Hello,\n\nI've changed the BEGIN WAIT FOR LSN statement to core functions \npg_waitlsn, pg_waitlsn_infinite and pg_waitlsn_no_wait.\nCurrently the functions work inside repeatable read transactions, but \nwaitlsn creates a snapshot if called first in a transaction block, which \ncan possibly ...
[ { "msg_contents": "This one seems to have fallen by the wayside.\n\nErik", "msg_date": "Mon, 16 Nov 2020 13:26:36 +0100", "msg_from": "Erik Rijkers <er@xs4all.nl>", "msg_from_op": true, "msg_subject": "doc CREATE INDEX" }, { "msg_contents": "On 2020-Nov-16, Erik Rijkers wrote:\n\n> This ...
[ { "msg_contents": "Hi,\n\nAttached is a PoC/WIP patch adding support for extended statistics on\nexpressions. This is by no means \"ready\" - most of the stuff works, but\noften in a rather hackish way. I certainly don't expect this to pass\nregression tests, for example.\n\nThere's an example demonstrating how...
[ { "msg_contents": "The docs are misleading for this feature, since they say:\n\"This option disables all page-skipping behavior, and is\nintended to be used only when the contents of the visibility map are\nsuspect, which should happen only if there is a hardware or software\nissue causing database corruption.\...
[ { "msg_contents": "Hi Hackers,\n\nWhile investigating a possible file-descriptor issue, I enabled the\nFDDEBUG code in src/backend/storage/file/fd.c, only to find that it\nresulted in a crash as soon as it was invoked.\nIt turns out the crash was in some logging code that was being passed\na NULL fileName.\nI'v...
[ { "msg_contents": "Two recent patches that I have reviewed have reminded me that the \nResourceOwner interface is a bit clunky. There are two issues:\n\n1. Performance. It's fast enough in most use, but when I was testing \nKyotaro's catcache patches [1], the Resowner functions to track catcache \nreferences ne...
[ { "msg_contents": "Hello,\n\nMy database is experiencing a 'ERROR: too many dynamic shared memory\nsegment' error from time to time. It seems to happen most when traffic\nis high, and it happens with semi-simple select statements that run a\nparallel query plan with a parallel bitmap heap scan. It is currently\...
[ { "msg_contents": "Hello dear pgsql hackers\n\n\nI think Postgres had fix 2038 problems since 8.4, when I read in\nstackexchange:\n\n\nhttps://dba.stackexchange.com/a/233084/102852\n\n\nSo I test on my PC by simply change system date to `2040-09-25`:\n\n\n\n - Windows 10 Home edition\n - CPU: AMD 64 bit\n ...
[ { "msg_contents": "When arguments and other local variables in pl/pgsql functions have the\nsame name as columns referenced in queries it is necessary to disambiguate\nthe names. This can be done by prefixing the function name (e.g.\nmy_func.name), using the argument number is the case of an argument (e.g.\n$1)...
[ { "msg_contents": "Hi,\n\n\nCurrently, EXPLAIN is the only way to know whether the plan is generic \nor custom according to the manual of PREPARE.\n\n https://www.postgresql.org/docs/devel/sql-prepare.html\n\nAfter commit d05b172, we can also use pg_prepared_statements view to \nexamine the plan types.\n\nHow...
[ { "msg_contents": "Hi,\n\nAFAIU, when the planner statistics are updated, generic plans are \ninvalidated and PostgreSQL recreates. However, the manual doesn't seem \nto explain it explicitly.\n\n https://www.postgresql.org/docs/devel/sql-prepare.html\n\nI guess this case is included in 'whenever database obj...
[ { "msg_contents": "Hi hackers,\r\n\r\nRecently, we encounter an issue that if the database grant too many roles that `datacl` toasted, vacuum freeze will fail with error \"wrong tuple length\".\r\n\r\nTo reproduce the issue, please follow below steps:\r\nCREATE DATABASE vacuum_freeze_test;\r\n\r\n-- create help...
[ { "msg_contents": "Today, we build and update the docs on\nhttps://www.postgresql.org/docs/devel/ are rebuilt and deployed by the\nbuildfarm automatically every 4 hours.\n\nIf there are no changes at all made to the docs, they are *still*\nkicked out of all caches and the search indexes are rebuilt, because\nwe...
[ { "msg_contents": "Hi, I wonder why there's no function to aggregate arrays by\nconcatenation out of the box?\n\nThere is a usual function `array_cat(anyarray, anyarray)`, but it\ndoesn't seamlessly work with grouping.\n\nWouldn't it be natural to have this:\n\nCREATE AGGREGATE array_cat (anyarray)\n(\n    sfun...
[ { "msg_contents": "I saw in the docs for CREATE AGGREGATE, under argmode, \"Aggregate functions\ndo not support OUT arguments\".\n\nAnd because I tend to poke things I'm told not to poke, I thought \"but\nwait, the CREATE AGGREGATE doesn't have much to say about the return type\nanyway, that's just the FINALFUN...
[ { "msg_contents": "Hi hackers,\n\nBgwriter process will call `pgstat_send_bgwriter` to send statistics to stat collector, but stat collector is not started when standby is not in hot standby mode.\n\n```\n if (pmState == PM_RUN || pmState == PM_HOT_STANDBY)\n PgStatPID = pgstat_start();\n```\n\nThis would ...
[ { "msg_contents": "Hackers,\n\nOver in news [1] Josh Drake and Eric Ridge discovered the undocumented\nfeature \"IS [NOT] OF\"; introduced seemingly as an \"oh-by-the-way\" in 2002\nvia commit eb121ba2cfe [2].\n\nIs there any reason not to document this back to 9.5, probably with a note\nnearby to pg_typeof(any...
[ { "msg_contents": "Hi,\n\nIn the lwlock.c, InitializeLWLocks() calculate the LWLock offset by \nitself (c319991bcad),\nhowever, there are macros defined in lwlock.h, I think, we can use the \nmacros.\n\ndiff --git a/src/backend/storage/lmgr/lwlock.c \nb/src/backend/storage/lmgr/lwlock.c\nindex 2fa90cc095..108e6...
[ { "msg_contents": "Hi all\n\nHere's a patch I wrote a while ago to detect and report when a\nLWLockAcquire() results in a simple self-deadlock due to the caller already\nholding the LWLock.\n\nTo avoid affecting hot-path performance, it only fires the check on the\nfirst iteration through the retry loops in LWL...
[ { "msg_contents": "We can reproduce this difference with the following steps.\n\ncreate table su (a int, b int);\ninsert into su values(1, 1);\n\n- session 1:\nbegin;\nupdate su set b = 2 where b = 1;\n\n- sess 2:\nselect * from su where a in (select a from su where b = 1) for update;\n\n- sess 1:\ncommit;\n\nT...
[ { "msg_contents": "Hi All,\n\nThere are currently 2 ways as per my knowledge to get the creation time\n(CREATE TABLE/FUNCTION/PROC/etc...) or modified time (ALTER ....) of an\nObject.\n\n1. Using track_commit_timestamp\n - Can be a slight overhead as this is applicable globally.\n\n2. Using Event Triggers.\n...
[ { "msg_contents": "\nI noticed somewhat to my surprise as I was prepping the tests for the\n\"match the whole DN\" patch that pg_ident.conf is parsed using the same\nroutines used for pg_hba.conf, and as a result the DN almost always\nneeds to be quoted, because they almost all contain a comma e.g.\n\"O=PGDG,OU...
[ { "msg_contents": "It would appear weak symbol linking is not handled properly without\n'isysroot' parameter passed to linker.\n\nFixes:\nUndefined symbols for architecture x86_64:\n \"___darwin_check_fd_set_overflow\", referenced from:\n _ClientAuthentication in auth.o\n _pgstat_init in pgstat.o\n ...
[ { "msg_contents": "Hi,\n\nI'm not sure how to reach the cause and reproduce it.\nAny suggestion will be appreciated.\nPostgreSQL 11.7\npostgresql-42.2.12.jar\nWindows Server 2016\n\nThanks,\nKiyoshi\n\n2020-11-13 21:11:51.535 JST [3652] LOG: CreateProcess call failed: A\nblocking operation was interrupted by a...
[ { "msg_contents": "Hi,\n\nThe pg_stat_progress_cluster view can report incorrect\nheap_blks_scanned values when synchronize_seqscans is enabled, because\nit allows the sequential heap scan to not start at block 0. This can\nresult in wraparounds in the heap_blks_scanned column when the table\nscan wraps around,...
[ { "msg_contents": "Greetings,\n\nAttached is a patch to move from 'default role' terminology to\n'predefined role' in the documentation. In the code, I figured it made\nmore sense to avoid saying either one and instead opted for just\n'ROLE_NAME_OF_ROLE' as the #define, which we were very close to (one\nremovi...
[ { "msg_contents": "I figured out that my TLS version was too low in the libpq call and increased it to TLS v1.1\nShould I go to 1.2? I am wondering because I do not want to limit compatibility.\n\nOnce I got past that hurdle, I am getting the error \"ssl error: the certificate verify failed\"\nSince I built th...
[ { "msg_contents": "While looking at another issue I noticed that create_gather_merge_plan\ncalls make_sort if the subplan isn't sufficiently sorted. In all of\nthe cases I've seen where a gather merge path (not plan) is created\nthe input path is expected to be properly sorted, so I was wondering\nif anyone hap...
[ { "msg_contents": "Over on the -bugs list we had a report [1] of a seg fault with\nincremental sort. The short of the investigation there was that a\nsubplan wasn't being serialized since it wasn't parallel safe, and\nthat attempting to initialize that subplan resulted in the seg fault.\nTom pushed a change to ...
[ { "msg_contents": "If you have a sufficiently broken data page, pageinspect throws an\nerror when trying to examine the page:\n\nERROR: invalid memory alloc request size 18446744073709551451\n\nThis is pretty unhelpful; it would be better not to try to print the\ndata instead of dying. With that, at least you...
[ { "msg_contents": "Hi,\n\nI would like to propose getting the callstack of the postgres process\nby connecting to the server. This helps us in diagnosing the problems\nfrom a customer environment in case of hung process or in case of long\nrunning process.\nThe idea here is to implement & expose pg_print_callst...
[ { "msg_contents": "OSX implements sysv shmem support via a mach wrapper, however the mach\nsysv shmem wrapper has some severe restrictions that prevent us from\nallocating enough memory segments in some cases.\n\nThese limits appear to be due to the way the wrapper itself is\nimplemented and not mach.\n\nFor ex...
[ { "msg_contents": "Hi,\n\n\nI have a question about parallel plans. I also posted it on the general list but perhaps it's a question for hackers. Here is my test case :\n\n\nselect version();\nversion\n\n\n----------------------------------------------------------------------------------------------------------...
[ { "msg_contents": "Hi,\n\nAfter my commit c532d15ddd to split up copy.c, buildfarm animal \"prion\" \nfailed in pg_upgrade \n(https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=prion&dt=2020-11-23%2009%3A23%3A16):\n\n> Upgrade Complete\n> ----------------\n> Optimizer statistics are not transferred by pg_u...
[ { "msg_contents": " From a report by user \"kes\" on irc, I constructed this test case:\n\ncreate table marktst (id integer, val numrange, exclude using gist (val with &&));\ninsert into marktst select i, numrange(i, i+1, '[)') from generate_series(1,1000) i;\nvacuum marktst;\nanalyze marktst;\n\nselect * from ...
[ { "msg_contents": "Hello\n\nChloe Dives reported that sometimes a walsender would become stuck\nduring shutdown and *not* shutdown, thus preventing postmaster from\ncompleting the shutdown cycle. This has been observed to cause the\nservers to remain in such state for several hours.\n\nAfter a lengthy investig...
[ { "msg_contents": "It was only needed between these:\n\ncommit a8677e3ff6bb8ef78a9ba676faa647bba237b1c4\nAuthor: Peter Eisentraut <peter_e@gmx.net>\nDate: Fri Apr 13 17:06:28 2018 -0400\n\n Support named and default arguments in CALL\n\ncommit f09346a9c6218dd239fdf3a79a729716c0d305bd\nAuthor: Tom Lane <tgl...
[ { "msg_contents": "Hi Hackers,\n\nMy company (NTT Comware) and NTT OSS Center did verification of\npartitioned table on PG14dev, and we faced a problem that consumed\nhuge memory when we created a Foreign key constraint on a partitioned\ntable including 500 partitioning tables and inserted some data.\n\nWe inve...
[ { "msg_contents": "Hi\n I would like to know if it is possible to migrate Oracle multitenant database (with multiple PDB) to PostgreSQL ?\n\n Thanks in advance\n\nBest Regards\n\nD ROS\nEDF\nCe message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinatai...
[ { "msg_contents": "Hi, hackers\n\nI found that the cache_plan argument to ri_PlanCheck already been remove since\n5b7ba75f7ff854003231e8099e3038c7e2eba875. I think we can remove the comments\ntor cache_plan to ri_PlanCheck.\n\ndiff --git a/src/backend/utils/adt/ri_triggers.c b/src/backend/utils/adt/ri_trigger...
[ { "msg_contents": "Hi:\n\nFor example, we added a new field in a node in primnodes.h\n\nstruct FuncExpr\n{\n\n + int newf;\n};\n\nthen we modified the copy/read/out functions for this node. In\n_readFuncExpr,\nwe probably add something like\n\nstatic FuncExpr\n_readFuncExpr(..)\n{\n..\n+ READ_INT_FILED(newf)...
[ { "msg_contents": "Hi,\n\nwith this message, I want to draw attention to the RFC patches on the \ncurrent commitfest. It would be good if committers could take a look at \nthem.\n\nWhile doing a sweep through the CF, I have kicked a couple of entries \nback to Waiting on author, so now the list is correct. Now ...
[ { "msg_contents": "Hi hackers,\r\n\r\nI've attached a patch to add a few new options to CHECKPOINT that\r\nmight be useful. Specifically, it adds the FORCE, IMMEDIATE, and WAIT\r\noptions. All of these options are already implemented internally, but\r\nit is not possible to adjust them for manually triggered ...
[ { "msg_contents": "Hi Hackers,\n\nI noticed that there is a table access method API added starting from \nPG12. In other words, Postgresql open the door for developers to add \ntheir own access methods, for example, zheap, zedstore etc. However, the \ncurrent pgbench doesn't have an option to allow user to spec...
[ { "msg_contents": "Hackers,\n\nPostgreSQL is a complex multi-process system, and we are periodically faced\nwith complicated concurrency issues. While the postgres community does a\ngreat job on investigating and fixing the problems, our ability to\nreproduce concurrency issues in the source code test suites is...
[ { "msg_contents": "Hi hackers,\n\nI wonder if it is considered as correct behavior that transaction \nconflict detection depends on presence of primary key:\n\ncreate table t(pk integer, val integer);\ninsert into t values (1,0),(2,0);\n\nSession1: begin isolation level serializable;\nSession2: begin isolation ...
[ { "msg_contents": "Improving spin-lock implementation on ARM.\n------------------------------------------------------------\n\n* Spin-Lock is known to have a significant effect on performance\n with increasing scalability.\n\n* Existing Spin-Lock implementation for ARM is sub-optimal due to\n use of TAS (test...
[ { "msg_contents": "Hello,\n\nCollation versioning has been committed, but there are still at least 2 cases\nthat aren't perfectly handled:\n\n- AMs which don't rely on stable collation ordering (hash, bloom...)\n- expressions which don't rely on a stable collation ordering (e.g. md5())\n\nHandling expressions w...
[ { "msg_contents": "Hello\n\n\nThe attached patch is intended to prevent a scenario that\narchive recovery hits WALs which come from wal_level=minimal\nand the server continues to work, which was discussed in the thread of [1].\nThe motivation is to protect that user ends up with both getting replica\nthat could...
[ { "msg_contents": "Hi,\n\nI always compile PostgreSQL from source and never install a pre-compiled package. When I run configure, the last check, which is for DocBook XML always takes very long compared to all others. It's about 15 to 20 secs or so. I noticed that with many configure scripts, not only the one o...
[ { "msg_contents": "This is the latest patch for feature GTT(v38).\nEverybody, if you have any questions, please let me know.\n\n\nWenjing", "msg_date": "Thu, 26 Nov 2020 19:46:24 +0800", "msg_from": "=?utf-8?B?5pu+5paH5peM?= <wenjing.zwj@alibaba-inc.com>", "msg_from_op": true, "msg_subject": "[P...
[ { "msg_contents": "Hello,\n\nI am currently working on Library with some specific operators to\nmanipulate RangeType in PostGreSQL. I would like to know if it is possible\nto return a setof rangetype elements in Postresql in C-Language function\nusing the suggestion like specified here:\nhttps://www.postgresql....
[ { "msg_contents": "Hello,\n\n\nI got too annoyed at building queries for gexec all the time. So wrote a patch to fix the issue that the rename of partitioned trigger doesn't affect children.\n\n\nIn case there isn't a dependent trigger with the same name on the child the function errors out. If the user touched...
[ { "msg_contents": "Hi All,\nAn LSN is printed using format \"%X/%X\" and passing (uint32) (lsn >>\n32), (uint32) lsn as arguments to that format specifier. This pattern\nis repeated at 180 places according to Cscope. I find it hard to\nremember this pattern every time I have to print LSN. Usually I end up\ncopy...
[ { "msg_contents": "Hi,\n\nhttps://www.postgresql.org/docs/current/default-roles.html mentions the\n\"Administrator\" several times, but does not specify it further. I\nunderstand that it is mentioned elsewhere [1], but I think it would be\nbeneficial to remind the reader on that page at least once that\n\"Admin...
[ { "msg_contents": "Hi,\n\nAs discussed in this thread \n(https://www.postgresql.org/message-id/201010112055.o9BKtZf7011251@wwwmaster.postgresql.org) \nbtree_gist is broken for the inet and cidr types. The reason is that it \nuses convert_network_to_scalar() to make a lossy GiST index, but \nconvert_network_to_s...
[ { "msg_contents": "I noticed in CI builds of PL/Java with PG 13 that -Wimplicit-fallthrough=3\nin pg_config's CFLAGS was causing some switch case fallthrough warnings\nafter an elog(ERROR. [1]\n\nI added my own pg_unreachable() after the elog(ERROR, ...) calls [2]\nand that did away with the warnings.\n\nBut it...
[ { "msg_contents": "Hi,\n\ntesting master at 3df51ca8 with sqlsmith triggers the following\nassertion:\n\n TRAP: FailedAssertion(\"!bms_is_empty(present_parts)\", File: \"partprune.c\", Line: 588, PID: 8540)\n\nI looked at a dozen backtraces and they all sport a window aggregate but\nthat may still be random ...
[ { "msg_contents": "Hi all.\n\nI often fall into error like this:\n\nDBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::Pg::st execute failed: ERROR: timestamp out of range\nCONTEXT: SQL function \"accounting_ready\" statement 1 [for Statement \"SELECT COUNT( * ) FROM (WITH\ntarget_date AS ( SELECT...
[ { "msg_contents": "Hi,\n\ntesting with sqlsmith on master at 3df51ca8b3 produced one instance of\nthe following error:\n\n ERROR: failed to build any 6-way joins\n\nI can reproduce it on a fresh regression database with the query below.\nThese were last logged in 2015. Back then, it resulted in this commit...
[ { "msg_contents": "Hi,\n\nyesterday's sqlsmith run on master at 3df51ca8b3 also yielded 4855\nqueries failing with ERRORs like the following:\n\n,----\n| ERROR: subplan \"InitPlan 3 (returns $3)\" was not initialized\n| CONTEXT: parallel worker\n`----\n\nThey all run fine with parallel scans off. Below is a ...
[ { "msg_contents": "Hi\r\n\r\nFound a possible typo in cost.h\r\n\r\n-/* If you change these, update backend/utils/misc/postgresql.sample.conf */\r\n+/* If you change these, update backend/utils/misc/postgresql.conf.sample */\r\n\r\n\r\nBest regards,\r\nTang", "msg_date": "Mon, 30 Nov 2020 03:15:45 +0000", ...
[ { "msg_contents": "Hi all\n\nWe have a dynamic_library_path setting to allow postgres to search\nadditional locations for loadable libraries (since 8.1, commit\n761a0bb69b). This permits libraries to be located in alternate\nlocations for loading by shared_preload_libraries, LOAD commands,\nimplicit loading via...
[ { "msg_contents": "Hi all\n\nI recently wrote some notes on interaction between physical\nreplication failover/promotion and logical replication publisher\nand/or standby.\n\nAs you probably all know, right now we don't support physical failover\nfor logical replication publishers at all, either for in-core log...
[ { "msg_contents": "GCC 4.8.5 does not default to gnu99 or gnu11 like the newer versions.\n---\n src/common/logging.c | 3 ++-\n src/common/unicode_norm.c | 3 ++-\n 2 files changed, 4 insertions(+), 2 deletions(-)\n\ndiff --git a/src/common/logging.c b/src/common/logging.c\nindex f3fc0b8..2ac502a 100644\n---...
[ { "msg_contents": "Hi hackers,\r\n\r\nI found that when running command vaccum full in stand-alone mode there will be a core dump.\r\nThe core stack looks like this:\r\n------------------------------------\r\nbackend> vacuum full\r\nTRAP: FailedAssertion(\"IsUnderPostmaster\", File: \"dsm.c\", Line: 439)\r\n./p...
[ { "msg_contents": "Hi,\n\nI noticed a couple of comments that were obsoleted by commit\n578b229718 which forgot to remove them. Attached fixes that.\n\n-- \nAmit Langote\nEDB: http://www.enterprisedb.com", "msg_date": "Mon, 30 Nov 2020 17:21:39 +0900", "msg_from": "Amit Langote <amitlangote09@gmail.com...
[ { "msg_contents": "Hi,\n\nI found IncrementalSortPath type is not analyzed in outNode.\nIt does not matter during runtime though.\n\nJust for the convenience of debugging, \nwhen debug by gdb, we can use \"call pprint(incresortpath)\" to list the node info.\n\nSo I try to support IncrementalSortPath in outNode....
[ { "msg_contents": "Hi,\n\nWhile testing of Asynchronous Append feature with TPC-H queries, I found \nthat the push-down JOIN technique is rarely used.\nFor my servers fdw_tuple_cost = 0.2, fdw_startup_cost = 100.\nExploring the code, i found in postgres_fdw, estimate_path_cost_size(), \nlines 2908,2909:\nrun_co...
[ { "msg_contents": "This makes toast tables a bit less special and easier to inspect.\n\npostgres=# \\dtS+ pg_toast.pg_toast_2619\n pg_toast | pg_toast_2619 | toast table | pryzbyj | permanent | heap | 56 kB | \n\nThis follows commit from last year:\n| eb5472da9 make \\d pg_toast.foo show its indices ...
[ { "msg_contents": "Hello,\n\nIn a previous thread [1], we added smarts so that processes running\nCREATE INDEX CONCURRENTLY would not wait for each other.\n\nOne is adding the same to REINDEX CONCURRENTLY. I've attached patch\n0002 here which does that.\n\nWhy 0002, you ask? That's because preparatory patch 0...
[ { "msg_contents": "Hi hackers,\n\nhere is a scenario that produces an orphaned function (means it does not \nbelong to any namespace):\n\nSession 1:\n\npostgres=# create schema tobeorph;\nCREATE SCHEMA\n\npostgres=# BEGIN;\nBEGIN\n\npostgres=*# CREATE OR REPLACE FUNCTION tobeorph.bdttime() RETURNS TIMESTAMP AS ...
[ { "msg_contents": "Hi,\nIn our testPgRegressTrigger test log, I saw the following (this was for a\nrelatively old version of PG):\n\n197859 [ts-1]\n ../../../../../../src/postgres/src/backend/commands/indexcmds.c:1062:22:\nruntime error: null pointer passed as argument 2, which is declared to\nnever be null\n1...
[ { "msg_contents": "I've been investigating parallelizing certain correlated subqueries,\nand during that work stumbled across the fact that\nset_rel_consider_parallel disallows parallel query on what seems like\na fairly simple case.\n\nConsider this query:\n\nselect t.unique1\nfrom tenk1 t\njoin lateral (selec...
[ { "msg_contents": "If you quit the editor without saving, the current query buffer\nor the last executed SQL statement get run.\n\nThis can be annoying and disruptive, and it requires you to\nempty the file and save it if you don't want to execute anything.\n\nBut when editing a script, it is a clear POLA viola...
[ { "msg_contents": "Hi all\n\nI'd like to share the attached PG_LSN.pm module that I use when\nwriting TAP tests. I suggest that it be considered for inclusion in\ncore.\n\nIt defines a Perl datatype PG_LSN with operator support, so you can\nwrite things like\n\n cmp_ok($got_lsn, \"<\", $expected_lsn, \"testn...
[ { "msg_contents": "Hi\n\nSince seawasp's bleeding edge LLVM installation moved to \"trunk\n20201114 c8f4e06b 12.0.0\" ~16 days ago, it has been red. Further\nupdates didn't help it and it's now on \"trunk 20201127 6ee22ca6\n12.0.0\". I wonder if there is something in Fabien's scripting that\nneeds to be tweak...
[ { "msg_contents": "Hi, hackers!\n\nCommitfest 2020-11 is officially closed now.\nMany thanks to everyone who participated by posting patches, reviewing \nthem, committing and sharing ideas in discussions!\n\nToday, me and Georgios will move the remaining items to the next CF or \nreturn them with feedback. We'r...
[ { "msg_contents": "Hi,\n\nIn function plan_union_children(), \nI found the lcons and list_delete_first here is easy to be replaced by lappend and list_delete_last.\n\nAnd I also found a previous commit do similar thing, so I try to improve this one.\n\nPrevious commit:\nd97b714a219959a50f9e7b37ded674f5132f93f3...
[ { "msg_contents": "Hi,\n\nI think we can pass CURSOR_OPT_PARALLEL_OK to pg_plan_query() for\nrefresh mat view so that parallelism can be considered for the SELECT\npart of the previously created mat view. The refresh mat view queries\ncan be faster in cases where SELECT is parallelized.\n\nAttaching a small pat...
[ { "msg_contents": "Hackers,\n\nGiven that we have already heard about 3 separate minor release regressions\nin the most recent update I'm putting forth for discussion whether an\noff-schedule release should be done. I probably wouldn't care as much if\nit wasn't for the fact that the same release fixes two CVE...
[ { "msg_contents": "Hi,\n\nI've been using libpq to access postgres from within a system that uses an\nedge-triggered epoll in its event-loop. The instructions on\nhttps://www.postgresql.org/docs/current/libpq-async.html are pretty good,\nbut I've run into a bit of an edge case that would be much easier to handl...
[ { "msg_contents": "Peter,\n\nWhile working on the pg_amcheck code for [1], I discovered an unexpected deficiency in the way btree indexes are checked. So far as I can tell from the docs [2], the deficiency does not violate any promises that amcheck is making, but I found it rather surprising all the same. To ...
[ { "msg_contents": "Hey, all,\n\nIt is currently slightly difficult to determine how many background worker\nprocesses are currently running, which is useful when trying to manage\nthe max_worker_processes parameter. It seems the best bet is to use the\nbackend_type column and filter out the many types that are ...
[ { "msg_contents": "For about a week, eelpout has been failing the pg_basebackup test\nmore often than not, but only in the 9.5 and 9.6 branches:\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=eelpout&br=REL9_6_STABLE\nhttps://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=eelpout&br=REL9_5_...
[ { "msg_contents": "Hi,\n\nSomeone raised an interested point recently on pg_stat_kcache extension for\nhandling nested statements, which also applies to pg_stat_statements.\n\nThe root issue is that when pg_stat_statements tracks nested statements,\nthere's no way to really make sense of the counters, as top le...
[ { "msg_contents": "Hello,\n\n\nALTER TABLE SET LOGGED/UNLOGED on a partitioned table completes successfully, but nothing changes. I expected the underlying partitions are changed accordingly. The attached patch fixes this.\n\n\nRegards\nTakayuki Tsunakawa", "msg_date": "Wed, 2 Dec 2020 08:21:42 +0000", ...
[ { "msg_contents": "Hi\n\nI just noticed that in\n\n https://www.postgresql.org/docs/13/acronyms.html\n (i.e., doc/src/sgml/acronyms.sgml)\n\nthere is under lemma 'HOT' a link with URL:\n\n \nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/access/heap/README.HOT;hb=HEAD\n\nIs thi...
[ { "msg_contents": "While reading about deprecating and removing various things in other \nthreads, I was wondering about how deprecated SELECT INTO is. There are \nvarious source code comments about this, but the SELECT INTO reference \npage only contains soft language like \"recommended\". I'm proposing the ...
[ { "msg_contents": "There are a number of elog(LOG) calls that appear to be user-facing, so \nthey should be ereport()s. This patch changes them. There are more \nelog(LOG) calls remaining, but they all appear to be some kind of \ndebugging support. Also, I changed a few elog(FATAL)s that were nearby, \nbut I...
[ { "msg_contents": "Previous discussions on macOS SIP:\n\nhttps://www.postgresql.org/message-id/flat/561E73AB.8060800%40gmx.net\nhttps://www.postgresql.org/message-id/flat/CA%2BTgmoYGi5oR8Rvb2-SY1_WEjd76H5gCqSukxFQ66qR7MewWAQ%40mail.gmail.com\nhttps://www.postgresql.org/message-id/flat/6a4d6124-41f0-756b-0811-c5...
[ { "msg_contents": "Hi,\n\nPostgreSQL allows writing custom encoding conversion functions between \nany character encodings, using the CREATE CONVERSION command. It's \npretty flexible, you can define default and non-default conversions, and \nthe conversions live in schemas so you can have multiple conversions ...
[ { "msg_contents": "Attached is a patch for key management, which will eventually be part of\ncluster file encryption (CFE), called TDE (Transparent Data Encryption)\nby Oracle. It is an update of Masahiko Sawada's patch from July 31:\n\n\thttps://www.postgresql.org/message-id/CA+fd4k6RJwNvZTro3q2f5HSDd8HgyUc4C...
[ { "msg_contents": "Hi all,\n\nNow that the tree has a new set of files for cryptohash functions as\nof src/common/cryptohash*.c, it is a bit weird to have another file\ncalled cryptohashes.c for the set of SQL functions.\n\nAny objections to rename that to cryptohashfuncs.c? That would be\nmuch more consistent...
[ { "msg_contents": "Hi,\n\nWe are using Windows 2019 server.\n\nSometimes we see the pg_ctl.exe getting automatically deleted.\nDue to this, while starting up Postgres windows service we are getting the error.\n\"Error 2: The system cannot find the file specified\"\n\nCan you let us know the potential causes for...
[ { "msg_contents": "Hi hackers,\n\nI'm looking for more horsepower for testing commitfest entries\nautomatically, and today I tried out $SUBJECT. The attached is a\nrudimentary first attempt, for show-and-tell. If you have a Github\naccount, you just have to push it to a branch there and look at the\nActions t...