threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nThe backup manifest patch added a bunch of new code to\nsrc/backend/replication/basebackup.c, and while lamenting the\ncomplexity of that source file yesterday, I suddenly realized that I'd\nunwittingly contributed to making that problem worse, and that it\nwould be quite easy to move ...
[ { "msg_contents": "\nI was just trying to revive lousyjack, my valgrind buildfarm animal\nwhich has been offline for 12 days, after having upgraded the machine\n(fedora 31, gcc 9.3.1, valgrind 3.15) and noticed lots of errors like this:\n\n\n2020-04-17 19:26:03.483 EDT [63741:3] pg_regress LOG:  statement: CREA...
[ { "msg_contents": "The HEAPDEBUGALL define has been broken since PG12 due to tableam \nchanges. Should we just remove this? It doesn't look very useful. \nIt's been around since Postgres95.\n\nIf we opt for removing: PG12 added an analogous HEAPAMSLOTDEBUGALL \n(which still compiles correctly). Would we want...
[ { "msg_contents": "Hi,\nstrlen it is one of the low fruits that can be harvested.\nWhat is your opinion?\n\nregards,\nRanier Vilela", "msg_date": "Sun, 19 Apr 2020 11:24:38 -0300", "msg_from": "Ranier Vilela <ranier.vf@gmail.com>", "msg_from_op": true, "msg_subject": "[PATCH] Small optimization ...
[ { "msg_contents": "Hi,\n\nlast week I finished pspg 3.0 https://github.com/okbob/pspg . pspg now\nsupports pipes, named pipes very well. Today the pspg can be used as pager\nfor output of \\watch command. Sure, psql needs attached patch.\n\nI propose new psql environment variable PSQL_WATCH_PAGER. When this\nva...
[ { "msg_contents": "There was a previous thread[1], but I think it needs some wider\ndiscussion.\n\nI brought up an issue where GCC in combination with FORTIFY_SOURCE[2]\ncauses a perf regression for logical tapes after introducing\nLogicalTapeSetExtend()[3]. Unfortunately, FORTIFY_SOURCE is used by\ndefault on ...
[ { "msg_contents": "Hackers,\n\nI have been talking with Robert about table corruption that occurs from time to time. The page checksum feature seems sufficient to detect most random corruption problems, but it can't detect \"logical\" corruption, where the page is valid but inconsistent with the rest of the dat...
[ { "msg_contents": "Hi!\n\nIt appears that definition of pg_statio_all_tables has bug.\n\nCREATE VIEW pg_statio_all_tables AS\n SELECT\n C.oid AS relid,\n N.nspname AS schemaname,\n C.relname AS relname,\n pg_stat_get_blocks_fetched(C.oid) -\n pg_...
[ { "msg_contents": "Over in \"execExprInterp() questions / How to improve scalar array op\nexpr eval?\" [1] I'd mused about how we might be able to optimized\nscalar array ops with OR'd semantics.\n\nThis patch implements a binary search for such expressions when the\narray argument is a constant so that we can ...
[ { "msg_contents": "While revising the docs for the geometric operators, I came across\nthese entries:\n\n<^\tIs below (allows touching)?\tcircle '((0,0),1)' <^ circle '((0,5),1)'\n>^\tIs above (allows touching)?\tcircle '((0,5),1)' >^ circle '((0,0),1)'\n\nThese have got more than a few problems:\n\n1. There ar...
[ { "msg_contents": "Subject changed. Earlier it was : spin_delay() for ARM\n\nOn Fri, 17 Apr 2020 at 22:54, Robert Haas <robertmhaas@gmail.com> wrote:\n>\n> On Thu, Apr 16, 2020 at 3:18 AM Amit Khandekar <amitdkhan.pg@gmail.com> wrote:\n> > Not relevant to the PAUSE stuff .... Note that when the parallel\n> > cl...
[ { "msg_contents": "Hello.\n\nThe commit a7e8ece41c adds a new member restoreCommand to\nXLogPageReadPrivate. readOneRecord doesn't make use of it but forgets\nto set NULL. That can lead to illegal pointer access.\n\nregards.\n\n-- \nKyotaro Horiguchi\nNTT Open Source Software Center", "msg_date": "Tue, 21 A...
[ { "msg_contents": "Hi!\n\nI found concurrency bug in amcheck running on replica. When\nbtree_xlog_unlink_page() replays changes to replica, deleted page is\nleft with no items. But if amcheck steps on such deleted page\npalloc_btree_page() expects it would have items.\n\n(lldb_on_primary) b btbulkdelete\n\npr...
[ { "msg_contents": "Hi,\n\nI have some code that I've been using in production that supports adding\nand authenticating Windows groups via the pg_ident file. It has a new\nindicator (+), that signifies the identifier is a Windows group, as in the\nfollowing example:\n\n# MAPNAME SYSTEM-USERNAME PG-USERN...
[ { "msg_contents": "Hi,\n\nWe are  getting a server crash on zlinux machine  if we set \njit_above_cost=0 in postgresql.conf file after configuring  PG v12 \nserver  with --with-llvm ( llvm-ttoolset-6.0)\n\nWe configured  PG v12 sources with switch --with-llvm  ( after setting \nthese variables on command prompt...
[ { "msg_contents": "Hi. I read the thread. \n\nProbably this fiddle will be helpful for testing:\n\nhttps://dbfiddle.uk/?rdbms=postgres_12&fiddle=abe845142a5099d921d3729043fb8491\n\nI recently encountered a problem:\nWhy Window-specific functions do not allow DISTINCT to be used within the function argument list...
[ { "msg_contents": "Hi All,\n I was pleasantly surprised to see that triggers can be created on FDW tables. I'm running into a problem.\n\nI create a trigger on an imported foreign table. In the procedure, I change the value of a column that is not in the triggering update statement. This change does not make it...
[ { "msg_contents": "HI,\n\nI tried to install PG v11 and v12 on IBM z/OS using YUM command , \nfollowing -https://wiki.postgresql.org/wiki/YUM_Installation_on_z_Systems\n\nFound that 2 issues\n\n1) rpm packages  are failing  due to \" Package .....  is not signed \"\n\nPG v12 -\nPackage postgresql12-contrib-12.1...
[ { "msg_contents": "Hi,\n\nGetting a server crash while creating partition table which have\nself-referencing foreign key\n\npostgres=# CREATE TABLE part1 (c1 int PRIMARY KEY, c2 int REFERENCES part1)\nPARTITION BY LIST (c1);\nCREATE TABLE\npostgres=# CREATE TABLE part1_p1 PARTITION OF part1 FOR VALUES IN (1);\...
[ { "msg_contents": "Hi!\nI wrote extension for postgresql that is collecting statistics about errors in logfile.\n\nThis extension counts the number of messages of each type and code.\nIt's designed to enable monitoring tools. I'm going to use it as a data source for plot of number of errors, warnings and fatals...
[ { "msg_contents": "Hi hackers,\n\nWhile poking at the build system I stumbled upon some trivial trailer\ncomment inconsistencies in config/c-compiler.m4. They can be fixed\neither way: either changing the macro names or changing the comment. PFA\na patch that keeps the macro names.\n\nIn hindsight though, it se...
[ { "msg_contents": "I looked into the cause of several recent buildfarm failures:\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=handfish&dt=2020-04-20%2020%3A32%3A23\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=crake&dt=2020-04-18%2018%3A20%3A12\nhttps://buildfarm.postgresql.org/cgi-bin/...
[ { "msg_contents": "Hi,\nper Coverity.\n\n1. assign_zero: Assigning: opaque = NULL.\n2. Condition buf < 0, taking true branch.\n3. Condition !(((PageHeader)page)->pd_upper == 0), taking false branch.\n4. Condition blkno != orig_blkno, taking true branch.\n5. Condition _bt_page_recyclable(page), taking false bran...
[ { "msg_contents": "Patch 0001 fixes this issue with vpath postgres builds:\n\n$ make -C src/test/regress install-tests\n/usr/bin/install: cannot create regular file\n'PGPREFIX/lib/postgresql/regress/PGPREFIX/src/test/regress/expected/errors.out':\nNo such file or directory\nmake: *** [GNUmakefile:90: install-te...
[ { "msg_contents": "Hi,\n\nI'd like to propose to introduce the +(pg_lsn, int8) and -(pg_lsn, int8)\noperators. The + operator allows us to add the number of bytes into pg_lsn,\nresulting new pg_lsn. The - operator allows us to substract the number\nof bytes from pg_lsn, resulting new pg_lsn. Thought?\nI sometim...
[ { "msg_contents": "Hi,\n\nPer Coverity.\n\nIf has 0 full groups, \"we don't need to do anything\" and need goes to next.\nOtherwise a integer division by zero, can raise.\n\ncomments extracted trom explain.c:\n /*\n* Since we never have any prefix groups unless we've first sorted\n* a full groups and transition...
[ { "msg_contents": "Hi,\n\nPer Coverity.\n\nIf test oldtuple can be NULL, I mean it can really be NULL.\nOn DELETE process, if oldtuple is NULL, log error and continue.\nSo UPDATE must have the same treatment.\n\nregards,\nRanier Vilela", "msg_date": "Thu, 23 Apr 2020 10:47:41 -0300", "msg_from": "Ranier...
[ { "msg_contents": "Hi,\nPer Coverity.\n\nread_controlfile alloc memory with pg_malloc and fail in releasing the\nmemory.\n\nregards,\nRanier Vilela", "msg_date": "Thu, 23 Apr 2020 15:20:59 -0300", "msg_from": "Ranier Vilela <ranier.vf@gmail.com>", "msg_from_op": true, "msg_subject": "[PATCH] FIx...
[ { "msg_contents": "Hi,\nPer Coverity.\n\nverify_manifest_checksum, declare and can utilize array of uint8, without\ninitializing it.\nWhile here, I applied the quick exit technique, to avoid unnecessary\ncomputations, if it is possible to avoid them.\n\nregards,\nRanier Vilela", "msg_date": "Thu, 23 Apr 202...
[ { "msg_contents": "Hi, \n\nThere are two unexpected codes for me about wait events for timeline \nhistory file.\nPlease let me know your thoughts whether if we need to change.\n\n\n1. readTimeLineHistory() function in timeline.c\n\nThe readTimeLineHistory() reads a timeline history file, \nbut it doesn't report...
[ { "msg_contents": "Hi\n\nplpgsql generate lot of auto variables - FOUND, SQLERRM, cycle's control\nvariable, TG_WHEN, TG_OP, ..\n\nCurrently these variables are not protected, what can be source of\nproblems, mainly for not experienced users. I propose mark these variables\nas constant.\n\n-- today\npostgres=# ...
[ { "msg_contents": "Hey,\n\nOur application sends millions of rows to the database every hour\nusing the COPY\nIN protocol.\nWe've switched recently from TEXT based COPY to the BINARY one.\nWe've noticed a slight performance increase, mostly because we don't need\nto escape the content anymore.\n\nUnfortunately ...
[ { "msg_contents": "src/timezone/README mentions\n\n When there has been a new release of Windows (probably including Service\n Packs), the list of matching timezones need to be updated. Run the\n script in src/tools/win32tzlist.pl on a Windows machine running this new\n release and apply any new timezones t...
[ { "msg_contents": "Hi,\n\nIt has come to my attention that PostgreSQL has a bunch of code to\nread and write 'tar' archives and it's kind of a mess. Attached are\ntwo patches. The second one was written first, and does some modest\ncleanups, most notably replacing the use of the constants 512 and the\nformula (...
[ { "msg_contents": "Hi,\n\nThe PostgreSQL 13 Release Management Team is pleased to announce that\nthe release date for PostgreSQL 13 Beta 1 is set to be 2020-05-21. The\nOpen Items page is updated to reflect this.\n\nWe’re excited to make the Beta available for testing and receive some\nearly feedback around the...
[ { "msg_contents": "Hi\n\nLast release of pspg supports stream mode - it means so you can open psql\nin one terminal, redirect output to named pipe. In second terminal you can\nstart pspg and read input from named pipe. Then you can see and edit SQL in\none terminal, and you can see a result in second terminal.\...
[ { "msg_contents": "I recently expressed an interest in using Valgrind memcheck to detect\naccess to pages whose buffers do not have a pin held in the backend,\nor do not have a buffer lock held (the latter check makes sense for\npages owned by index access methods). I came up with a quick and dirty\npatch, that...
[ { "msg_contents": "psql slash usage show two options for listing foreign tables.\n\n \\dE[S+] [PATTERN] list foreign tables\n \\det[+] [PATTERN] list foreign tables\n\nThis seems a little odd especially when the output of both of these\ncommands is different.\n\npostgres=# \\dE+\n List of ...
[ { "msg_contents": "Starting 2019-11-17, jacana and bowerbird (different compiler, same machine?)\nhave failed four times like this:\n\n# poll_query_until timed out executing this query:\n# SELECT pg_current_wal_lsn() <= replay_lsn AND state = 'streaming' FROM pg_catalog.pg_stat_replication WHERE application_nam...
[ { "msg_contents": "Hi hackers,\n\nMy local build of master started failing last night with this error:\n\nllvmjit_inline.cpp:59:10: fatal error: 'llvm/IR/CallSite.h' file not found\n#include <llvm/IR/CallSite.h>\n ^~~~~~~~~~~~~~~~~~~~\n\nI searched my inbox and the archive, strange that nobody else is s...
[ { "msg_contents": "Hi,\n\nbasebackup.c's code to read from files uses fread() and friends. This\nis not great, because it's not documented to set errno. See commit\n286af0ce12117bc673b97df6228d1a666594d247 and related discussion. It\nseems like a better idea would be to use pg_pgread(), which not only\ndoes set...
[ { "msg_contents": "Hey, everyone.\n\nIt's been quite a while since I last contributed a patch but, as this is a\nnew feature, I wanted to gather feedback before doing so. I've found this\nfunctionality, already in use at Universität Tübingen, to be both highly\nbeneficial in many of my queries as well as a smal...
[ { "msg_contents": "Hello --\n\nI regularly build GiST indexes on large databases. In recent times, as the\nsize of the database has ballooned (30 million rows) along with the build\ntime on a column of points in 3- and 8-dimensional space (0-volume cube).\n\nIs anyone working on (or already implemented) a paral...
[ { "msg_contents": "Attached are two patches, both of which are fixes for bugs in nbtree\nVACUUM page deletion.\n\nThe first fix for a bug in commit 857f9c36cda. The immediate issue is\nthat the code that maintains the oldest btpo.xact in the index\naccesses the special area of pages without holding a buffer pin...
[ { "msg_contents": "Hi hackers,\n\nI happened to notice $subject and not sure if it's an issue or not. When\nwe're trying to remove a LEFT JOIN, one of the requirements is the inner\nside needs to be a single baserel. If there is a join qual that is a\nsublink and can be converted to a semi join with the inner s...
[ { "msg_contents": "One of the problems to allow logical decoding of in-progress (or\nprepared) transactions is that the transaction which we are decoding\ncan abort concurrently and we might not be able to detect it which\nleads to getting the wrong version of a row from system catalogs.\nThis can further lead ...
[ { "msg_contents": "Hey,\n\nfor an university project I'm currently doing some research on \nPostgreSQL. I was wondering if hypothetically it would be possible to \nimplement a raw device system to PostgreSQL. I know that the \ndisadvantages would probably be higher than the advantages compared to \nworking with...
[ { "msg_contents": "Is there any impact of using the character varying without providing the\nlength while creating tables?\nI have created two tables and inserted 1M records. But I don't see any\ndifference in pg_class. (size, relpage)\n\ncreate table test_1(name varchar);\ncreate table test_2(name varchar(50))...
[ { "msg_contents": "Hi ,\n\nWhile testing something else ,i found 1 scenario  where pg_dump  is failing\n\nBelow is the standalone scenario -\n\n--connect to psql terminal and create 2 database\n\npostgres=# create database db1;\nCREATE DATABASE\npostgres=# create database db2;\nCREATE DATABASE\n\n--Connect to d...
[ { "msg_contents": "Hi hackers,\n\nPer discussion in [1], we don't need to strip relabel for the expr\nexplicitly before calling pull_varnos() to retrieve all mentioned\nrelids. pull_varnos() would recurse into T_RelabelType nodes.\n\nAdd a patch to remove that and simplify the code a bit.\n\n[1]\nhttps://www.po...
[ { "msg_contents": "I think that the PVC_RECURSE_WINDOWFUNCS flag shouldn't be used in\nmake_partial_grouping_target().\n\nFirst, this function uses the grouping_target (see grouping_planner()) as the\ninput, and that should only contain the input expressions of window functions\nas opposed to the window functio...
[ { "msg_contents": "Hello PG Hackers\n\nHope you are well and safe!\n\nI'm opening this thread to clarify something that I can observe: duplicated\nvalues for sequences.\n\n[My understanding is that duplication is not something we desire. In fact\nit does NOT happen in the majority of cases, for example, when yo...
[ { "msg_contents": "Hi,\n\nI think it's not good that do_pg_start_backup() takes a flag which\ntells it to call back into basebackup.c's sendTablespace(). This means\nthat details which ought to be private to basebackup.c leak out and\nbecome visible to other parts of the code. This seems to have\noriginated in ...
[ { "msg_contents": "Hi hackers,\n\nI found two email threads below,\n\nhttps://www.postgresql.org/message-id/b0d099ca-f9c3-00ed-0c95-4d7a9f7c97fc%402ndquadrant.com\n\nhttps://www.postgresql.org/message-id/CA%2B4BxBwBHmDkSpgvnfG_Ps1SEeYhDRuLpr1AvdbUwFh-otTg8A%40mail.gmail.com\n\nand I understood \"OUT parameters ...
[ { "msg_contents": "I played with a silly example and got a result that surprises me:\n\n WITH RECURSIVE fib AS (\n SELECT n, \"fibₙ\"\n FROM (VALUES (1, 1::bigint), (2, 1)) AS f(n,\"fibₙ\")\n UNION ALL\n SELECT max(n) + 1,\n sum(\"fibₙ\")::bigint\n FROM (SELECT n, ...
[ { "msg_contents": "Hi:\n For a given level for join_search_one_level, it is always try to join\nevery relation\nin joinrel[level-1] to *initial_rels*. but the current code doesn't show\nthis directly.\n\njoin_search_one_level\n\n if (level == 2) /* consider remaining\ninitial r...
[ { "msg_contents": "I noticed that in hot standby, XLOG_STANDBY_LOCK redo is sometimes block by another query, and all the rest redo is blocked by this lock getting operation, which is not good and often happed in my database, so the hot standby will be left behind and master will store a lot of WAL which can’t ...
[ { "msg_contents": "Collegues,\n\nAccidently I've come over minor bug in the Mkvcbuild.pm.\nIt happens, that it doesn't tolerate spaces in the $config->{python}\npath, because it want to call python in order to find out version,\nprefix and so on, and doesn't properly quote command.\n\nFix is very simple, see at...
[ { "msg_contents": "Hi,\n\nAs I understand it, the point of having \"do {} while (0)\" in a\nmulti-statement macro is to turn it into a simple statement. As such,\nending with a semicolon in both the macro definition and the\ninvocation will turn it back into multiple statements, creating\nconfusion if someone w...
[ { "msg_contents": "In another thread [1] I'd mused that \"there might be some value in a\nREADME or comments\naddition that would be a guide to what the various hash\nimplementations are useful for...so that we have something to make the\ncode base a bit more discoverable.\"\n\nI'd solicited feedback from Andre...
[ { "msg_contents": "Hi,\n\nWhen I tried to reset a counter in pg_stat_slru using\npg_stat_reset_slru(name),\nnot only the specified counter but all the counters were reset.\n\n postgres=# SELECT * FROM pg_stat_slru ;\n name | blks_zeroed | blks_hit | blks_read | blks_written |\nblks_exists | flush...
[ { "msg_contents": "Collegues,\n\nPostgresql embeded perl, plperl contain code long time ago copied\nfrom POSIX.xs file in the perl distribution.\nIt is function setlocale_perl, which does some allocation of\nperl-specific locale data using functions(or macros) new_ctype,\nnew_collate and new_numeric.\n\nThis is...
[ { "msg_contents": "[proposal for PG 14]\n\nThere are a number of Remove${Something}ById() functions that are \nessentially identical in structure and only different in which catalog \nthey are working on. This patch refactors this to be one generic \nfunction. The information about which oid column, index, et...
[ { "msg_contents": "Hi all,\n\nThe first part of src/backend/replication/README lists all the APIs\nusable for a WAL receiver, but these have aged and lost track of most\nchanges that happened over the years. Four functions are listed in\nthe README, with incorrect signatures and many others are missing:\n- wal...
[ { "msg_contents": "Hi,\n\nover the past couple of weeks I've been running various benchmarks with\nthe intent to demonstrate how the performance evolved since ~8.3. In\nmost tests we're doing pretty good, but I've noticed that full-text\nsearch using GiST indexes is an annoying exception - it's getting slower\n...
[ { "msg_contents": "1. Warning: the right operand to | always evaluates to 0\n\nsrc/include/storage/bufpage.h\n#define PAI_OVERWRITE (1 << 0)\n#define PAI_IS_HEAP (1 << 1)\n\n#define PageAddItem(page, item, size, offsetNumber, overwrite, is_heap) \\\nPageAddItemExtended(page, item, size, offsetNumber, \\\n((ove...
[ { "msg_contents": "Hi hackers,\r\n\r\nI believe I've discovered a race condition between the startup and\r\ncheckpointer processes that can cause a CRC mismatch in the pg_control\r\nfile. If a cluster crashes at the right time, the following error\r\nappears when you attempt to restart it:\r\n\r\n FATAL...
[ { "msg_contents": "As of HEAD, building the PDF docs for A4 paper draws 538 \"contents\n... exceed the available area\" warnings. While this is a nice step\nforward from where we were (v12 has more than 1500 such warnings),\nwe're far from done fixing that issue.\n\nA large chunk of the remaining warnings are ...
[ { "msg_contents": "I have committed the first draft of the PG 13 release notes. You can\nsee them here:\n\n\thttps://momjian.us/pgsql_docs/release-13.html\n\nIt still needs markup, word wrap, and indenting. The community doc\nbuild should happen in a few hours.\n\n-- \n Bruce Momjian <bruce@momjian.us> ...
[ { "msg_contents": "Hi,\n\nin the Postgres documentation it says: \"PostgreSQLprovides the index \nmethods B-tree, hash, GiST, SP-GiST, GIN, and BRIN. Users can also \ndefine their own index methods, but that is fairly complicated.\" \n(https://www.postgresql.org/docs/12/sql-createindex.html)\n\nEven though it's...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 16419\nLogged by: Saeed Hubaishan\nEmail address: dar_alathar@hotmail.com\nPostgreSQL version: 12.2\nOperating system: Windows 10x64\nDescription: \n\nselect to_date('-1-01-01','yyyy-mm-dd');\r\nwi...
[ { "msg_contents": "If pg_basebackup is not able to read BLCKSZ content from file, then it\njust emits a warning \"could not verify checksum in file \"____\" block\nX: read buffer size X and page size 8192 differ\" currently but misses\nto error with \"checksum error occurred\". Only if it can read 8192 and\nche...
[ { "msg_contents": "I see that commit 33a94bae605edf3ceda6751916f0b1af3e88630a removed\nsmgrdounlinkfork() because it was dead code. Should we also remove\nsmgrdounlink() now? It also appears to be dead code.\n\n-- \nPeter Geoghegan\n\n\n", "msg_date": "Wed, 6 May 2020 20:03:04 -0700", "msg_from": "Peter...
[ { "msg_contents": "Hi,\n\nI am looking for feedback on the possibility of adding a table expansion\nhook to PostgreSQL (see attached patch). The motivation for this is to\nallow extensions to optimize table expansion. In particular, TimescaleDB\ndoes its own table expansion in order to apply a number of optimiz...
[ { "msg_contents": "Hi,\n\nThe following description in pg_buffercace is no longer true.\n\nWhen the pg_buffercache view is accessed, internal buffer manager\nlocks are taken for long enough to copy all the buffer state data that\nthe view will display. This ensures that the view produces a\nconsistent set of re...
[ { "msg_contents": "Hello,\n\nIt is possible to startup an instance with min > max, without the system \ncomplaining:\n\nmrechte=# show min_wal_size ;\n\n2020-05-07 11:12:11.422 CEST [11098] LOG: durᅵe : 0.279 ms\n\n min_wal_size\n\n--------------\n\n 128MB\n\n(1 ligne)\n\n\n\nmrechte=# show max_wal_size ;\...
[ { "msg_contents": "Hi, all\n\nIt appeared than GIN index sometimes lose results if simultaneously:\n\n\n1 if query operand contains weight marks\n\n2 if weight-marked operand is negated by ! operator\n\n3 if there are only logical (not phrase) operators from this negation\ntowards the root of query tree.\n\n\ne...
[ { "msg_contents": "Hi,\n\nWhile investigating a pg_restore error, I stumbled upon a message that is\nnot so useful.\n\npg_restore: error: could not close data file: No such file or directory\n\nWhich file? File name should be printed too like in the error check for\ncfopen_read a few lines above.\n\nRegards,\n\...
[ { "msg_contents": "Hi,\n\nI've been re-running the TPC-H benchmark, to remind myself the common\nissues with OLAP workloads, and one of the most annoying problems seems\nto be the misestimates in Q2. The query is not particularly complex,\nalthough it does have a correlated subquery with an aggregate, but it's\...
[ { "msg_contents": "Seems to me it should, at least conditionally. At least if there's a function\nscan or a relation or ..\n\nI mentioned a bit about our use-case here:\nhttps://www.postgresql.org/message-id/20200219173742.GA30939%40telsasoft.com\n=> I'd prefer our loaders to write their own data rather than d...
[ { "msg_contents": "\nHello devs,\n\nalthough having arrays is an anathema in a relational world, pg has them, \nand I find it useful for some queries, mostly in an aggregation to show \nin a compact way what items were grouped together.\n\nThere are a few functions available to deal with arrays. Among these \nf...
[ { "msg_contents": "Why Postgres default FILLFACTOR for table is 100 and for Index is 90.\n\nAlthough Oracle is having completely different MVCC architecture, it uses\ndefault 90 for table and 100 for Index (exact reverse of Postgres)\n\nPostgres blocks needed more spaces for row update compares to Oracle\n(beca...
[ { "msg_contents": "I happened to notice that COPY TO releases the ACCESS SHARE lock\non the table right when the command ends rather than holding it\nuntil the end of the transaction:\n\n From backend/commands/copy.c:\n\n/*\n * Close the relation. If reading, we can release the AccessShareLock\n * we got; if w...
[ { "msg_contents": "PG12\nSteps to reproduce on 3 nodes cluster with quorum commit.\n1. Cut off network on master with everything.\n2. Pkill -9 PostgreSQL on each node.\n3. Start PostgreSQL on each node.\n\nWhat was strange?\nI check every second pg_last_wal_replay_lsn() and pg_last_wal_receive_lsn().\n\nAll ti...
[ { "msg_contents": "Hello hackers,\n\n\nI have read the community mail from 'postgrespro' which the link\n\nbelow ①, a summary for the patch, it generals a CSN by timestamp\n\nwhen a transaction is committed and assigns a special value as CSN\n\nfor abort transaction, and record them in CSN SLRU file. Now we can...
[ { "msg_contents": "On primary I can execute ’SELECT write_lsn FROM pg_stat_replication;’ and get write_lsn of standby.\nI didn’t find function like \"pg_last_write_lsn()” to get write_lsn on standby. Is it possible?\n\n", "msg_date": "Fri, 8 May 2020 18:25:02 +0500", "msg_from": "=?utf-8?Q?godjan_=E2=80...
[ { "msg_contents": "Here is a sketch for implementing the design that Tom described here:\nhttps://www.postgresql.org/message-id/flat/357.1550612935%40sss.pgh.pa.us\n\nIn short, we would like to have only one plan for ModifyTable to get\ntuples out of to update/delete, not N for N child result relations as\nis d...
[ { "msg_contents": "Hi, hackers!\n\n*** The problem ***\nI'm investigating some cases of reduced database performance due to MultiXactOffsetLock contention (80% MultiXactOffsetLock, 20% IO DataFileRead).\nThe problem manifested itself during index repack and constraint validation. Both being effectively full tab...
[ { "msg_contents": "psql currently supports HTML, CSV, etc output formats. I was wondering\nif supporting JSON format was requested or discussed in past. If there's\ndesire for this feature, perhaps we can add it to the TODO list on wiki so\nsomeone can pick it up and work on it in future.\n\nBest regards,\n--\n...
[ { "msg_contents": "I happened to notice $subject while working on the release notes.\nAFAICS, it is 100% inappropriate for the parser to compute the\nset of generated columns affected by an UPDATE, because that set\ncould change before execution. It would be really easy to break\nthis for an UPDATE in a stored...
[ { "msg_contents": "I believe check_pg_config as used by src/test/ssl/t/002_scram.pl\nshouldn't rely on /usr/include/postgresql/pg_config.h but use the file\nfrom the build tree instead:\n\nsrc/test/perl/TestLib.pm:\n\n Return the number of matches of the given regular expression\n within the installation'...
[ { "msg_contents": "See\n\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=ac0e30e0d0fe402fbdb3099fd8b32e4bc6755a6a\n\nAs usual, please send any corrections by Sunday.\n\n\t\t\tregards, tom lane\n\n\n", "msg_date": "Fri, 08 May 2020 16:41:54 -0400", "msg_from": "Tom Lane <tgl@sss.pgh.p...
[ { "msg_contents": "Hi,\n\nI'd like to propose a fairly major refactoring of the server's\nbasebackup.c. The current code isn't horrific or anything, but the\nbase backup mechanism has grown quite a few features over the years\nand all of the code knows about all of the features. This is going to\nmake it progre...
[ { "msg_contents": "Hi!\n\nI noticed that commit 3eb77eba5a changed the logic in \nProcessSyncRequests() (formerly mdsync()) so that if you have fsync=off, \nthe entries are not removed from the pendingOps hash table. I don't \nthink that was intended.\n\nI propose the attached patch to move the test for enableF...
[ { "msg_contents": "Hi,\n\nISTM that it's our coding style that we use\n\nsomething\nmy_paramless_func(void)\n{\n...\n}\n\ndefinitions rather than omitting the (void), which makes the function\nlook like an old-style function declaration. I somewhat regularly notice\nsuch omissions during review, and fix them.\n...
[ { "msg_contents": "When I want t to convert json array into postgres array, I do:\n\nwith t(j) as(\n> select '{\"my_arr\":[3,1,2]}'::json\n> )\n> SELECT ARRAY(SELECT json_array_elements_text(j->'my_arr')) from t\n\n\nIt works like a charm and I never noticed any problem, but I'm asking here\njust to make su...
[ { "msg_contents": "Hello hackers,\n\nI've found that gcov coverage data miss some information when a postgres\nnode stopped in 'immediate' mode.\nFor example, on the master branch:\nmake coverage-clean; time make check -C src/test/recovery/; make\ncoverage-html\ngenerates a coverage report with 106193 lines/631...
[ { "msg_contents": "Hi\n\nI try to use procedures in Orafce package, and I did some easy performance\ntests. I found some hard problems:\n\n1. test case\n\ncreate or replace procedure p1(inout r int, inout v int) as $$\nbegin v := random() * r; end\n$$ language plpgsql;\n\nThis command requires\n\ndo $$\ndeclare...
[ { "msg_contents": "Hi,\n\nWhile looking at an old wal2json issue, I stumbled on a scenario that a\ntable\nwith a deferred primary key is not updatable in logical replication. AFAICS\nit\nhas been like that since the beginning of logical decoding and seems to be\nan\noversight while designing logical decoding. I...
[ { "msg_contents": "Hello.\n\nI happened to notice a wrong function name in the comment of\nXLogReadDetermineTimeline.\n\n * The caller must also make sure it doesn't read past the current replay\n * position (using GetWalRcvWriteRecPtr) if executing in recovery, so it\n\nThe comment is mentioning \"replay posit...