threads
listlengths
1
2.99k
[ { "msg_contents": "Hi Hackers,\n\nI propose adding trackable information in postgres_fdw, in order to track remote query correctly.\n\n## Background and motivation\n\nCurrently postgres_fdw connects remote servers by using connect_pg_server(). However the function just calls PQconnectdbParams() with fallback_ap...
[ { "msg_contents": "Hello:\r\n\r\nThere is a small problem with the documentation for the previously added SQL function “bit_count”.\r\nIn the doc, (https://www.postgresql.org/docs/14/functions-binarystring.html)\r\n“bit_count('\\x1234567890'::bytea)” result is \"31\" , but the actual result is \"15\".\r\n\r\nSi...
[ { "msg_contents": "Hackers,\n\nWhile reviewing and benchmarking 91e9e89dc (Make nodeSort.c use Datum\nsorts for single column sorts), I noticed that we use a separate\nmemory context to store tuple data and we just reset when we're done\nif the sort fits in memory, or we dump the tuples to disk in the same\nord...
[ { "msg_contents": "While testing the numeric_power() patch in [1], I found this problem\ntrying to use to_char() to format very small numbers:\n\nSELECT to_char(1.2e-1001, '9.9EEEE'); -- OK\n to_char\n------------\n 1.2e-1001\n\nSELECT to_char(1.2e-1002, '9.9EEEE'); -- fails\nERROR: division by zero\n\nIt tu...
[ { "msg_contents": "Hi, all\r\n\r\nWhen I used SPI_execute_plan function on PG12 which commit 41c6a5be is used,\r\nSegment fault occurred.\r\n\r\nPS: If commit 41c6a5be is not used, this phenomenon will not happen. \r\n\r\nReproduce:\r\nIn a background process, the following steps are executed.\r\n--------------...
[ { "msg_contents": "Hi,\n\nWhen reviewing logicalreplication related patches, I noticed the function\nparam ReorderBufferTXN *txn not used in the function maybe_send_schema(). Since\nthis is not an external function, I think it might be better to remove the unused paramater.\n\nBest regards,\nHouzj", "msg_da...
[ { "msg_contents": "Hi,\n\nSince\n\ncommit 960869da0803427d14335bba24393f414b476e2c\nAuthor: Magnus Hagander <magnus@hagander.net>\nDate: 2021-01-17 13:34:09 +0100\n\n Add pg_stat_database counters for sessions and session time\n\npgstat_report_stat() does another timestamp computation via\npgstat_send_conn...
[ { "msg_contents": "Hi,\n\nWhile looking at a patch I noticed that SubPostmasterMain() for bgworkers\nunconditionally does\n\n\t\t/* Need a PGPROC to run CreateSharedMemoryAndSemaphores */\n\t\tInitProcess();\n\nwhich presents a problem, because StartBackgroundWorker() then does\n\n\t/*\n\t * If we're not suppos...
[ { "msg_contents": "Hi Hackers\n\nWhen review and test another patch at [1], I found some comments in existing test code of \" src/test/regress/sql/publication.sql \" is a little bit confused.\nAttached a patch to fix them, please take a check.\n\nHere is the detail:\n\nExisting code:\nCREATE TABLE testpub_tbl2 ...
[ { "msg_contents": "Hi,\n\nI am currently looking into a partition constraint violation that occurs on update of a partition key on a foreign server. To reproduce it you can run:\n\nOn server 1 using port 5432:\n\ncreate extension postgres_fdw;\ncreate table players (id integer, name text) partition by list(name...
[ { "msg_contents": "Hi hackers,\n\nWhen testing some other logical replication related patches, I found two\nunexpected behaviours about ALTER SUBSCRIPTION ADD/DROP PUBLICATION.\n\n(1)\nwhen I execute the following sqls[1], the data of tables that registered to\n'pub' wasn't copied to the subscriber side which m...
[ { "msg_contents": "Hi,\n\nI've previously complained ([1]) that process initialization has gotten\nvery complicated. I hit this once more last week when trying to commit\none of the shared memory stats pieces...\n\nI think there's quite a few different issues around this - here I'm just\ntrying to tackle a few ...
[ { "msg_contents": "Hi,\n\nI'm attempting to develop a new type of full-text index. I've started\nbuilding a new index access method.\n\nIs it possible to calculate values during the index scan and then make\nthem available for display in a select clause? For example,\n\nSELECT title, score, total_hits\nFROM myt...
[ { "msg_contents": "\nI have pushed Release 13 of the PostgreSQL BuildFarm client.\n\n\nChange highlights:\n\n * add tests for a few cases that were previously missing\n * more fine-grained control over which TAP test sets run\n * --no-keepall can be specified on the command line\n * repair a repo if it cras...
[ { "msg_contents": "Hi!\n\nIn the discussion of [1], the option ASENSITIVE was added to DECLARE.\nI have improved its tab completion and attached a patch.\n\nDo you think?\n\n[1] https://www.postgresql.org/message-id/flat/96ee8b30-9889-9e1b-b053-90e10c050e85%40enterprisedb.com\n\nRegards,\nShinya Kato", "msg...
[ { "msg_contents": "Hi,\n\nI don't think I really understand what decides what should use\nbefore_shmem_exit() and what into on_shmem_exit(). The existing comments say:\n\n/* ----------------------------------------------------------------\n *\t\tbefore_shmem_exit\n *\n *\t\tRegister early callback to perform us...
[ { "msg_contents": "Hi all,\n\nWhile working on a patch adding new stats, houzj pointed out that\n'len' function arguments of all pgstat_recv_* functions are not used\nat all. Looking at git history, pgstat_recv_* functions have been\nhaving ‘len’ since the stats collector was introduced by commit\n140ddb78fe 20...
[ { "msg_contents": "Hi hackers,\n\nIn each PathKey we have an EC representing the value being sorted on.\nThis works correctly and efficiently in scan/join planning since the\nmembers in an EC are always equal to each other.\n\nHowever, after applying GROUP BY grouping sets, the members in an EC may\nnot be that...
[ { "msg_contents": "Hello,\n\nI came across this issue while I was tweaking a TAP test with Ashwin for\nthis thread [1].\n\nWe noticed that while the startup process waits for a recovery delay, it does\nnot respect changes to the recovery_min_apply_delay GUC. So:\n\n// Standby is waiting on recoveryWakeupLatch w...
[ { "msg_contents": "Going by [1], it looks like we can use the __popcnt and __popcnt64\nintrinsic functions on MSVC if the CPU supports POPCNT. We already\nhave code to check for that, we just need to enable it on MSVC.\n\nThe attached patch seems to be all that's needed.\n\nDavid\n\n[1] https://docs.microsoft....
[ { "msg_contents": "Hi,\n\nI found two extra code lines in commit_ts.h (see attachment).\nThey confused me during exploring of the code. If they still needed, may \nbe add some comments?\n\n-- \nregards,\nAndrey Lepikhov\nPostgres Professional", "msg_date": "Tue, 3 Aug 2021 14:36:34 +0500", "msg_from": "...
[ { "msg_contents": "Hi Hackers,\n\nThe other day I noticed that there's no tab completion after ALTER TABLE\n… ADD, so here's a patch. In addition to COLUMN and all the table\nconstraint types, it also completes with the list of unique indexes on\nthe table after ALTER TABLE … ADD … USING INDEX.\n\n- ilmari", ...
[ { "msg_contents": "There are 273 patches in the queue for the Sept Commitfest already, so\nit seems clear the queue is not being cleared down each CF as it was\nbefore. We've been trying hard, but it's overflowing.\n\nOf those, about 50 items have been waiting more than one year, and\nabout 25 entries waiting f...
[ { "msg_contents": "Hi all,\nI am building libecpg 13.1 but 13.3 behaves in the same manner and my build\nfails with:\n\npath.c: In function 'get_html_path':\npath.c:787:38: error: 'HTMLDIR' undeclared (first use in this function)\n 787 | make_relative_path(ret_path, HTMLDIR, PGBINDIR, my_exec_path);\n ...
[ { "msg_contents": "\nI have just pushed Release 13.1 of the PostgreSQL BuildFarm client.\n\nThis update to Release 13 fixes errors that occur from the new default\nbranch name checking code when used with versions of git that are too\nold. This code is now disabled if the git version is not capable of\nrunning ...
[ { "msg_contents": "CPU caches have multiple levels, so I had an idea to use that concept in\nthe syscaches.\n\nImagine if catcache buckets were cacheline-sized. In that case, we would\nstore the most recently accessed hash values and pointers to catctup, in\naddition to the dlist_head:\n\ntypedef struct cc_buck...
[ { "msg_contents": "Hackers,\n\nYou can easily get a cache lookup failure by changing the regression tests as included in this small patch. The failure looks thus:\n\n+COMMENT ON STATISTICS ab1_a_b_stats IS 'new comment';\n+CREATE ROLE temp_role;\n+SET SESSION AUTHORIZATION temp_role;\n+COMMENT ON STATISTICS ab...
[ { "msg_contents": "Here's a little finger exercise that improves a case that's bothered me\nfor awhile. In a POSIX regexp, parentheses cause capturing by default;\nyou have to write the very non-obvious \"(?:...)\" if you don't want the\nmatching substring to be reported by the regexp engine. That'd be fine\n...
[ { "msg_contents": "Dear Hackers, Tom,\n\n(I changed subject because this is no longer postgres_fdw's patch)\n\n> > What would be better to think about is how to let users specify this\n> > kind of behavior for themselves. I think it's possible to set\n> > application_name as part of a foreign server's connecti...
[ { "msg_contents": "If we drop a column we cascade that drop to all indexes and all\nconstraints that mention that column, even if they include other\ncolumns also. We might expect that indexes should be dropped\nautomatically, but the latter behavior for constraints seems like a\nbug, since it can silently remo...
[ { "msg_contents": "In expanded mode psql calculates the width of the longest field in all the output rows,\nand prints the header line according to it. This often results in record header wrapping\nover several lines (see example below).\n\nThis huge record header is printed the same way before each record, eve...
[ { "msg_contents": "Tom,\n\nwhile testing your patch in [1], I stumbled upon the following assert in master, without your patch applied:\n\n+select 'vyrlvyrlwvqko' ~ '(?:(?:((.))))((\\2)\\1.){0,0}?';\n+server closed the connection unexpectedly\n+ This probably means the server terminated abnormally\n+ before...
[ { "msg_contents": "Hi,\n\nWhen testing EXEC_BACKEND on linux I see occasional test failures as long as I\ndon't disable ASLR. There's a code comment to that effect:\n\n\t * If testing EXEC_BACKEND on Linux, you should run this as root before\n\t * starting the postmaster:\n\t *\n\t * echo 0 >/proc/sys/kernel/ra...
[ { "msg_contents": "Hi,\n\nThe call to “pg_stat_reset“ does reset all the statistics data for\ntables belonging to the current database but does not take care of\nshared tables e.g pg_attribute. Similarly to reset the statistics at\ntable level, the call to “pg_stat_reset_single_table_counters“ does\nnot take ca...
[ { "msg_contents": "Hi,\n\nI have been working on analyzing the performance of sending the tuple\nfrom workers to the Gather using the tuple queue. In the past there\nwere many off-list discussions around this area, basically, the main\npoint is that when the \"shm_mq\" was implemented that time maybe this\nwas...
[ { "msg_contents": "Hi Everyone,\n\nI've ran into an issue where the OpenSSL API function \"ssl_get_fd\" fails, due to the underlying BIO object created by Postgres is not being flagged properly.\n\nPrevious to OpenSSL version 1.1.0, the BIO methods object would be copied directly from the existing socket type a...
[ { "msg_contents": "Hi\n\nCommit 6bf0bc842 replaced float.c's CHECKFLOATVAL() macro with static inline subroutines, \nbut the fix introduced a performance regression as Tom Lane pointed out and fixed at 607f8ce74.\n\nFound obsolete CHECKFLOATVAL usage in contrib/btree_gist, and tried to fix it according to 607f8...
[ { "msg_contents": "I've pushed the first draft for $SUBJECT at\n\nhttps://git.postgresql.org/pg/commitdiff/2f38ec6a157b60291ece1deb072bfff84f317334\n\nPlease send comments/corrections by Sunday.\n\n\t\t\tregards, tom lane\n\n\n", "msg_date": "Fri, 06 Aug 2021 14:57:39 -0400", "msg_from": "Tom Lane <tgl@...
[ { "msg_contents": "pgstat: Bring up pgstat in BaseInit() to fix uninitialized use of pgstat by AV.\n\nPreviously pgstat_initialize() was called in InitPostgres() and\nAuxiliaryProcessMain(). As it turns out there was at least one case where we\nreported stats before pgstat_initialize() was called, see\nAutoVacW...
[ { "msg_contents": "Hi hackers,\n\nHere's a patch adding EXECUTE to the list of of commands tab completed\nafter the various EXPLAIN variants.\n\n- ilmari", "msg_date": "Sat, 07 Aug 2021 22:29:01 +0100", "msg_from": "ilmari@ilmari.org (Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?=)", "msg_from_op": true,...
[ { "msg_contents": "Hi,\n\nIn the course of [1] I again looked at all pgstat_* callsites and noticed the\nnew calls to pgstat_get_my_query_id() in elog.c.\n\nAs currently implemented those pgstat_get_my_query_id() calls are not\nsafe. It's fine during backend startup because MyBEEntry is not set, but\nduring shu...
[ { "msg_contents": "PSA a patch to fix trivial comment typo in newly committed TAP test.\n\n\"amd\" -> \"and\"\n\n------\nKind Regards,\nPeter Smith.\nFujitsu Australia", "msg_date": "Sun, 8 Aug 2021 16:14:36 +1000", "msg_from": "Peter Smith <smithpb2250@gmail.com>", "msg_from_op": true, "msg_su...
[ { "msg_contents": "I was wondering about the following code in explain.c\n\nchar buf[MAXINT8LEN + 1];\n\npg_lltoa(plannedstmt->queryId, buf);\nExplainPropertyText(\"Query Identifier\", buf, es);\n\nI thought it was a bit strange that we don't just use\nExplainPropertyInteger() instead of going to the trouble of...
[ { "msg_contents": "1) Are there free scripts for CREATE TYPE (native type), more advanced, <date> or <datetime> sorts of types out there, online, free for commercial use? With function support, too? Can someone reply with a link or a suggestion?\n\n2) How may I get PostgreSQL to output the create table statemen...
[ { "msg_contents": "Hi,\nI am able to hit \"ERROR: cache lookup failed for function %d\" while I am\ndropping function from another session.\n\n*Reproducible steps are as(I tried on current head d8a75b1308b133502ae3):*\n\n*Step 1) Fire below query from session-1 to create a function:*\ncreate function fun1(int)...
[ { "msg_contents": "Our minor releases coming out this week will create a script when\npg_upgrade finishes that contains ALTER EXTENSION ... UPDATE commands\nfor extension that show updates in pg_available_extensions. However, I\nam unclear if all extensions that have updates are reported in\npg_available_exten...
[ { "msg_contents": "To reproduce, initialize a cluster with wal_level=minimal and\nmax_wal_senders=0. Then from psql:\n\n\\! mkdir /tmp/goose\n\nCHECKPOINT;\nCREATE TABLESPACE goose LOCATION '/tmp/goose';\nSET wal_skip_threshold=0;\nBEGIN;\nCREATE TABLE wild (a int, b text) TABLESPACE goose;\nINSERT INTO wild VA...
[ { "msg_contents": "Hi everyone,\nI am doding some jobs in postgres. I want to add \"^=\" like \"!=\" and \"<>\".\n\nSo i modify the code in scan.l.\nPlan 1:\nequals_greater \"=>\"\nless_equals \"<=\"\ngreater_equals \">=\"\nless_greater \"<>\"\nnot_equals (!=|\\^=)\n\nMaybe i can delete some code to make the ...
[ { "msg_contents": "Good day, hackers.\n\nOur client caught process stuck in tuplehash_grow. There was a query \nlike\n`select ts, count(*) from really_huge_partitioned_table group by ts`, \nand\nplanner decided to use hash aggregation.\n\nBacktrace shows that oldsize were 2147483648 at the moment. While \nnewsi...
[ { "msg_contents": "While fixing up a patch I had dealing with temporary tables I noticed\na bit of a quirk with pg_temp schemas. Namely that we have no actual\nmeta data marking them as temporary aside from their names. And we\ndon't do anything to protect that -- superuser can happily issue ALTER\nSCHEMA RENAM...
[ { "msg_contents": "we can use regular expressions (<>|!=) to cover \"<>\" and \"!=\". There is no\nneed to have two definitions less_greater and not_equals, because it will confuse developer.\nSo, we can use only not_equals to cover this operator set.\n\nPlease review my patch.\n\nThanks.", "msg_date": "Wed...
[ { "msg_contents": "Back in March 2016, e06a38965 added support for parallel aggregation.\nIIRC, because it was fairly late in the release cycle, I dropped\nparallel DISTINCT to reduce the scope a little. It's been on my list\nof things to fix since then. I just didn't get around to it until\ntoday.\n\nThe patch...
[ { "msg_contents": "Hi,\n\nAttached is a draft for the 2021-08-12 release announcement. Please\nreview for technical accuracy.\n\nPlease ensure you have your feedback in no later than midnight today\n(Aug 11) AoE[1].\n\nThanks!\n\nJonathan\n\n[1] https://en.wikipedia.org/wiki/Anywhere_on_Earth", "msg_date": ...
[ { "msg_contents": "Currently, all platforms must indirect through a function pointer to call\npopcount on a word-sized input, even though we don't arrange for a fast\nimplementation on non-x86 to make it worthwhile.\n\n0001 moves some declarations around so that \"slow\" popcount functions are\ncalled directly ...
[ { "msg_contents": "While reading through the README of the hash index I noticed a grammar\nerror, the attached patch fixes the same.\n\n-- \nRegards,\nDilip Kumar\nEnterpriseDB: http://www.enterprisedb.com", "msg_date": "Thu, 12 Aug 2021 14:09:59 +0530", "msg_from": "Dilip Kumar <dilipbalaut@gmail.com>"...
[ { "msg_contents": "A recent thread gave me the idea that it would be convenient to have\nanother flag for `regexp_matches` to make it return a singular\ntwo-dimensional array of matches when performing a global match.\n\nWhy? Well, basically you avoid having to aggregate the rows afterwards\nusing by wrapping i...
[ { "msg_contents": "I heard the moan about \"Why doesn't TIMESTAMP mean TIMESTAMP WITH TIME\nZONE\" again today, so here is something concrete to address that.\n\nAFAIK, SQL Standard requires the default to be WITHOUT TIME ZONE, but\nnobody seems to think that is useful. We even added a specially\noptimized ALTE...
[ { "msg_contents": "Hi hackers,\n\nWhile working on [1], it appears that (on master) the issue reproduction \n(of toast rewrite not resetting the toast_hash) is triggering a failed \nassertion:\n\n#2  0x0000000000b29fab in ExceptionalCondition (conditionName=0xce6850\n\"(rb->size >= sz) && (txn->size >= sz)\", e...
[ { "msg_contents": "Hi,\n\nWe are using Postgres 10 (Single client)and observed that there are multiple PostgreSQL Server process are running in background.\nWhy these additional process are created or is this an expected behavior.\n\n[cid:image001.png@01D7905A.F629F440]\n\nRegards,\nRamCharan", "msg_date":...
[ { "msg_contents": "Hello,\n\nThe attached patch adds native spinlock support to PostgreSQL on RISC-V \nsystems. As suspected by Richard W.M. Jones of Red Hat back in 2016, the \n__sync_lock_test_and_set() approach applied on arm and arm64 works here \nas well.\n\nTested against PostgreSQL 13.3 on a physical rv6...
[ { "msg_contents": "Hello,\n\nThe logging system already captures a lot of information in the ErrorData. But \nat present there is no way for a log message authors to include more metadata \nabout the log outside of the log message itself. For example, including the \nextension name which can be useful for filte...
[ { "msg_contents": "Both bugs #16676[1] and #17141[2] illustrate that the combination of SKIP\nLOCKED and FETCH FIRST\nWITH TIES break expectations when it comes to rows returned to other\nsessions accessing the same\nrow. Since this situation is detectable from the syntax and hard to fix\notherwise, forbid for...
[ { "msg_contents": "created pg_buffercache extension:\nCREATE EXTENSION pg_buffercache;\n\nrestarted server and updated statistic for table :\nVACUUM ANALYZE public.my_table;\n\nthen just tried to cache table in buffer:\nSELECT * FROM public.my_table;\n\nand then tried to get table total page quantity and how mu...
[ { "msg_contents": "During some development on encoding-related parts of postgres I stumbled over the new length-checking-code in common/hex.c/pg_hex_encode.\n\nDifferently when comparing it to all versions before the output-buffer-length is checked during encoding of every individual source byte.\n\nThis may im...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 17144\nLogged by: alex kozhemyakin\nEmail address: a.kozhemyakin@postgrespro.ru\nPostgreSQL version: 14beta1\nOperating system: ubuntu 20.04\nDescription: \n\nWhen trying to upgrade PostgreSQL 13 c...
[ { "msg_contents": "While trying to improve the code-coverage report for backend/regex/,\nI found that there are portions of copyins() and copyouts() that are\njust plain unreachable, because those functions are over-engineered.\nIn point of fact, the only uses of copyins() and copyouts() are in\nplaces where th...
[ { "msg_contents": "Hi all,\n\ntopminnow has just failed in a weird fashion:\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=topminnow&dt=2021-08-15%2013%3A24%3A58\n# SELECT pid != FROM pg_stat_replication WHERE application_name = 'tap_sub';\n# expecting this output:\n# t\n# last actual query output:\n...
[ { "msg_contents": "Hi Hackers,\n\nRecently, a issue has been bothering me, This is about conditional push-down in SQL.\nI use cases from regression testing as an example.\nI found that the conditions (B =1) can be pushed down into the subquery, However, it cannot be pushed down to sublink/subplan.\nIf a subli...
[ { "msg_contents": "Here is a patch to add support for hexadecimal, octal, and binary \ninteger literals:\n\n 0x42E\n 0o112\n 0b100101\n\nper SQL:202x draft.\n\nThis adds support in the lexer as well as in the integer type input \nfunctions.\n\nThose core parts are straightforward enough, but there a...
[ { "msg_contents": "Hi.\n\nI'm currently looking on pushing down SQLValue expressions to foreign \nservers and was surprised that two timestamptz-related functions are not \nimmutable.\nI see that this was changed in commit\n\ncommit 1ab415596d1de61561d0de8fe9da4aea207adca4\nAuthor: Tom Lane <tgl@sss.pgh.pa.us>\...
[ { "msg_contents": "Attached patches introduce more macros to group some RELKIND_* macros:\n\n- RELKIND_HAS_PARTITIONS()\n- RELKIND_HAS_TABLESPACE()\n- RELKIND_HAS_TABLE_AM()\n- RELKIND_HAS_INDEX_AM()\n\nI collected those mainly while working on the relkind error messages \npatch [0]. I think they improve the s...
[ { "msg_contents": "I have suspected that there are serious design issues with the FSM\n(and related heapam code like hio.c) for several years now [1]. This\nhas a lot to do with the experience of using Jan Wieck's BenchmarkSQL\nimplementation of TPC-C [2][3][4]. It clearly makes Postgres exhibit\npathological p...
[ { "msg_contents": "Hey, hackers!\n\nWhile working with some foreign keys, I noticed some mildly unexpected\nbehavior. The columns referenced by a unique constraint must naturally\nhave a unique constraint on them:\n\nCREATE TABLE foo (a integer);\nCREATE TABLE bar (x integer REFERENCES foo(a));\n> ERROR: there...
[ { "msg_contents": "Hi hackers,\nRecently, I noticed a great patch in pg 14.\n\"Rework planning and execution of UPDATE and DELETE. (86dc90056dfdbd9d1b891718d2e5614e3e432f35)\"\nThis changes the DML execution of the partitioned table and makes it more friendly.\n But I am very confused about the following change...
[ { "msg_contents": "Hi\n\nI created some roles in extension. I will try to implement some security\nchecks. When I dropped this extension, the roles were not dropped.\n\nIs it expected behaviour?\n\nRegards\n\nPavel\n\nHiI created some roles in extension. I will try to implement some security checks.  When I dr...
[ { "msg_contents": "Hello.\n\npg_veryfybackup can fail with a valid backup when the backup was taken\nfrom TLI > 1.\n\n=====\n# initdb\n$ pg_ctl start (just to make sure)\n$ pg_ctl stop\n$ touch $PGDATA/standby.signal\n$ pg_ctl start\n$ pg_ctl promote\n$ psql\npostgres=# select pg_switch_wal();\n pg_switch_wal \...
[ { "msg_contents": "The attached fixes s/atleast/at least/ in the logical decoding examples\nsection in the docs, will push in a bit.\n\n--\nDaniel Gustafsson\t\thttps://vmware.com/", "msg_date": "Wed, 18 Aug 2021 11:38:44 +0200", "msg_from": "Daniel Gustafsson <daniel@yesql.se>", "msg_from_op": true...
[ { "msg_contents": "Hello dear hackers. I understand the position of the developers community\nabout NAMEDATALEN length - and, in fact, 63 bytes is more than enough - but\nonly if we speak about latin languages.\n\nPostgresql has wonderful support for unicode in table and column names. And\nit looks like very go...
[ { "msg_contents": "I don't very close with PG testing methodology, but I can pay for a server\n(virtual or dedicated, DO maybe) and give access to it, if anyone has time\nfor that.\n\nOr if someone describes to me steps and shows where to look - I can do it\nby myself.\n\nI don't very close with PG testing meth...
[ { "msg_contents": "When working on zedstore, the developers solved the lack of support\nfor passing column projection into the AM as explained in the\nzedstore/README [*]\n\n-----8<------8<------8<-------8<-------\nCurrent table am API requires enhancement here to pass down column\nprojection to AM. The patch ...
[ { "msg_contents": "Has anybody worked on making the pgbench internal functions available\nas extensions ?\n\nI mean the ones from \" Built-In Functions\" [*]\n\nSome of these are probably available in other extensions or even as\nbuiltins but having things like hash_fnv1a() or random_zipfian() which\nare guaran...
[ { "msg_contents": "Hi,\n\nI ran into some segfaults when using Postgres that was compiled with LLVM 7. According to the backtraces these crashes happened during the call to llvm_shutdown, during cleanup after another out of memory condition. It seems that calls to LLVMOrcDisposeInstance, can crash (at least on ...
[ { "msg_contents": "Hi hackers,\r\n\r\nI received a report of missing privileges after an upgrade, and I\r\nbelieve I've traced it back to pg_dump's handling of ALTER DEFAULT\r\nPRIVILEGES IN SCHEMA. I did find a recent report [0] that looks\r\nrelated, but I didn't see any follow-ups on that thread. It looks\...
[ { "msg_contents": "Quite a few years ago Microsoft recognized that with windows copy and\nxcopy commands had some serious inadequacies. They therefore created\nrobocopy <https://ss64.com/nt/robocopy.html> as a replacement, and it\nhas shipped in all modern versions of Windows. At any rate it's\nsomething I thin...
[ { "msg_contents": "Hello.\n\nWhile I was examining message translation for PG14, I found some\nmessages that would need to be fixed.\n\n0001 is a fix for perhaps-leftovers of the recent message cleanups\nrelated to \"positive integer\"(fd90f6ba7a).\n\n0002 is a fix for a maybe-mistake in message convention of a...
[ { "msg_contents": "The current FE/BE protocol assumes that the client is talking to the\nserver directly. If middleware wants to do something like load\nbalancing, the only current option is to inspect the incoming commands\nand take action from that. That approach performs poorly and has\nproven difficult to m...
[ { "msg_contents": "Hi.\n\nThe attached patches allow pushing down \ncurrent_timestamp/localtimestamp/current_time/localtime and now() to \nremote PostgreSQL server as locally computed parameters.\nThe idea is based on oracle_fdw behavior.\n\nExamples.\n\n\\d test\n Foreign table \"...
[ { "msg_contents": "## What is this?\n\nIt's a draft patch that replaces code like this:\n```c\npg_file_unlink(PG_FUNCTION_ARGS)\n{\nchar *filename;\nrequireSuperuser();\nfilename = convert_and_check_filename(PG_GETARG_TEXT_PP(0));\n```\n\nWith this shorter version:\n```c\npg_file_unlink(PG_FUNCTION_ARGS)\n{\n...
[ { "msg_contents": "Hi all ,\n\nIt's reported on pgsql-bugs[1] that I/O timings in EXPLAIN don't show\nthe one for temp files. I think it's not a bug but could be an item\nfor PG15. As mentioned on that thread, this would be useful for users\nin a case where temp buffers I/O used most of the time. So I've\nwritt...
[ { "msg_contents": "A customer recently hit this error message:\n\nERROR: t_xmin is uncommitted in tuple to be updated\n\nThis was not very informative, so without any clues, we had to let it\ngo. But it did occur to me that we can improve this message so that we\nknow details such as the TID and the relation ...
[ { "msg_contents": "-hackers,\n\nEnclosed, find a POC patch that implements \"special values\" for int GUCs. We have quite a few GUCs\nwith values that have special meaning atop other settings. I have attempted to identify these and\nmake it so you can specify a symbol name for these values instead of just rel...
[ { "msg_contents": "While poking at a report of slow regexp matching [1], I happened\nto notice that citerdissect and creviterdissect are being remarkably\nstupid about how to backtrack after a match failure. Specifically,\nhaving used the DFA logic to identify K possible submatches, they\nthen start the slow r...
[ { "msg_contents": "I'm using an ongoing patch review to educate myself on parts of the\ncodebase.\n\nIn src/backend/access/transam/xact.c, I'm noticing a code style\ninconsistency.\n\nIn some cases, a function will declare a variable of some struct pointer\ntype, assign it to a globally declared struct, and the...
[ { "msg_contents": "\n\n> 20 авг. 2021 г., в 09:45, Nikolay Samokhvalov <nik@postgres.ai> написал(а):\n> \n> The patches changing the SLRU algorithm and adding GUCs to control the buffer sizes look really promising. Optimization in this area would really help those who use SAVEPOINTs. I suspect, we have a lot of...
[ { "msg_contents": "In commit 2f48ede08 I copied some error-message wording that had\nexisted in exec_run_select() since 2003. I'm now dissatified\nwith that, after realizing that it can produce output like this:\n\nERROR: query \"WITH a AS (\n SELECT\n regexp_split_to_table(info_out, '\\n') AS info\n ...
[ { "msg_contents": "When perusing the pg_amcheck code the other day for the recently pushed fixes I\nfound two small things that seem worth fixing: The help function progname\nparameter shadows the global variable of the same name, which no doubt will\nmake static analyzers complain so we might as well fix that;...
[ { "msg_contents": "Hi,\n\nI've been pinged many time over the years to either fix Windows compatibility\nor provide DLL for multiple extensions I'm maintaining. I've finally taken\nsome time to setup a Windows build environment so I could take care of most of\nthe problem, but not all (at least not in a satisf...
[ { "msg_contents": "Hi,\n\nAfter [1], seawasp blew up[2]. I tested the following fix on LLVM 13\nand 14 (main branch ~2 days ago). Better ideas welcome.\n\n- if (F.getAttributes().hasFnAttribute(llvm::Attribute::NoInline))\n+#if LLVM_VERSION_MAJOR < 14\n+#define hasFnAttr hasFnAttribute\n+#endif\n+\n+ ...
[ { "msg_contents": "Hi, all\n\nRecently, I got a problem that the startup process of standby is stuck and keeps in a waiting state. The backtrace of startup process shows that it is waiting for a backend process which conflicts with recovery processing to exit, the guc parameters max_standby_streaming_delay and...
[ { "msg_contents": "Hackers,\n\nPlease find attached an improvement to the error messages given for invalid backreference usage:\n\n select 'xyz' ~ '(.)(.)\\3';\n ERROR: invalid regular expression: invalid backreference number\n select 'xyz' ~ '(.)(.)(?=\\2)';\n-ERROR: invalid regular expression: invalid backr...