threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nValgrind on our internal buildfarm complained about use-after-free\nduring currentEventTriggerState->commandList manipulations, e.g. lappend\nin EventTriggerCollectSimpleCommand. I've discovered that the source of\nproblem is EventTriggerAlterTableEnd not bothering to switch into its\n...
[ { "msg_contents": "Hi,\n\nI noticed that the table AM abstraction introduced the symbol\nHEAP_TABLE_AM_HANDLER_OID, although we already have a convention for\ndefining symbols automatically for builtin functions, which in this case is\n(currently unused) F_HEAP_TABLEAM_HANDLER.\n\nIt seems a wart to have two sy...
[ { "msg_contents": "Hi Stephen, hackers,\n\n> The analyze is doing more-or-less random i/o since it's skipping through\n> the table picking out select blocks, not doing regular sequential i/o.\nVS\n>> Breakpoint 1, heapam_scan_analyze_next_block (scan=0x10c8098, blockno=19890910, bstrategy=0x1102278) at heapam_h...
[ { "msg_contents": "As I mentioned in [1], I've volunteered to clear out the TODO list of items\nthat appear to be too difficult, controversial, or otherwise not worth\ndoing to warrant being listed there. I'll be working a few sections at a\ntime, and every so often I'll have a list of proposed items for remova...
[ { "msg_contents": "Hi,\n\nThe patch in [1] makes the horizon logic in procarray.c aware of temp\ntables not needing to care about other session's snapshots (also\ndiscussed in[2]). Extending a7212be8b9e, which did that for VACUUM, but\nnot HOT pruning etc.\n\nWhile polishing that patch I was wondering whether t...
[ { "msg_contents": "Forking this thread, since the existing CFs have been closed.\nhttps://www.postgresql.org/message-id/flat/20200914143102.GX18552%40telsasoft.com#58b1056488451f8594b0f0ba40996afd\n\nOn Tue, Oct 06, 2020 at 01:38:23PM +0900, Michael Paquier wrote:\n> On Mon, Oct 05, 2020 at 10:07:33PM -0500, Ju...
[ { "msg_contents": "Forking this thread, since the existing CFs have been closed.\nhttps://www.postgresql.org/message-id/flat/20200914143102.GX18552%40telsasoft.com#58b1056488451f8594b0f0ba40996afd\n\nOn Mon, Sep 14, 2020 at 09:31:03AM -0500, Justin Pryzby wrote:\n> On Sat, Sep 12, 2020 at 10:35:34AM +0900, Mich...
[ { "msg_contents": "Hi,\n\nLog message for GSS connection is missing once connection\nauthorization is successful. We have similar log messages for SSL\nconnections once the connection authorization is successful. This\nmessage will help the user to identify the connection that was\nselected from the logfile. I'...
[ { "msg_contents": "Hi, hackers!\n\nI tried to run PG in a Valgrind on OSX 10.13 with Clang 9/10 and get an\nassertion error inside Valgrind\n\nvalgrind --leak-check=no --gen-suppressions=all --time-stamp=yes \\\n --error-markers=VALGRINDERROR-BEGIN,VALGRINDERROR-END \\\n --log-file=%p.log --trace-children=yes ...
[ { "msg_contents": "Hi hackers,\n\nThe following error was encountered by our customers:\nThem have  very huge catalog (size of pg_class relation is more than \n30Gb)  blowned by temporary relations.\nWhen them try to vacuum it, the following error is reported:\n\nvacuum full analyze pg_catalog.pg_class;\nERROR:...
[ { "msg_contents": "Hi,\n\nBug #16427 mentioned that temporary files are not removed after a crash. I\nheard similar complaints from some customers. In the bug report [1], I\nproposed a new GUC to control whether temporary files are removed after a\ncrash recovery. The current behavior is only useful for debuggi...
[ { "msg_contents": "On 28.10.2020 17:57, Даниил Захлыстов wrote:\n> Hi, thanks for the patch!\n> I’ve made a quick review and found one issue.\n> If the backend sends a CompressionAck message followed by some already \n> compressed message (for example, AuthenticationOk), then there is a \n> chance that pqReadDa...
[ { "msg_contents": "Starting separate threads to keep from cluttering the TODO list thread.\n\nHere's a patch for the subject, as mentioned in\nhttps://www.postgresql.org/message-id/20201027220555.GS4951%40momjian.us\n\n-- \nJohn Naylor\nEnterpriseDB: http://www.enterprisedb.com\nThe Enterprise PostgreSQL Compan...
[ { "msg_contents": "Hello,\n\nI know, nobody in their mind should do that, but, if the postmaster\nprocess is killed with SIGKILL signal, most backend processes\ncorrectly notice the fact of the postmaster process absence and exit.\nThere is one exception though, when there are autovacuum worker\nprocesses they ...
[ { "msg_contents": "Hi,\n\nCurrently, ExecInitAgg() performs quite a lot of work, to deduplicate \nidentical Aggrefs, as well as Aggrefs that can share the same transition \nstate. That doesn't really belong in the executor, we should perform \nthat work in the planner. It doesn't change from one invocation of t...
[ { "msg_contents": "Hello,\n\nI the fast shutdown was initiated before pg_prewarm managed to load\nbuffers from the dump (and start the main loop), the pg_prewarm\nbgworker process never exits on SIGTERM and effectively preventing the\nclean shutdown of the cluster.\n\nThis problem bite me a few times, but yeste...
[ { "msg_contents": "Forking this thread:\nhttps://www.postgresql.org/message-id/fd93f1c5-7818-a02c-01e5-1075ac0d4def@iki.fi\n\nI think these are old-fashioned since 9.6 (?), so remove them for v14.\n\nI found it confusing when re-familiarizing myself with modern streaming\nreplication that there are extensions w...
[ { "msg_contents": "postgres --help:\n -o OPTIONS pass \"OPTIONS\" to each server process (obsolete)\n\nThis was marked obsolete in 2006 (86c23a6eb28).\n\nIs it perhaps time to get rid of it?\n\n-- \n Magnus Hagander\n Me: https://www.hagander.net/\n Work: https://www.redpill-linpro.com/\n\n\n", "ms...
[ { "msg_contents": "Commit b918bf86c65 added the errorcode PXE_DECRYPT_FAILED to the existing set\nof PXE_ error codes. When pgcrypto was changed to the EVP APIs in 5ff4a67f63,\nno new error codes were added in favour of existing ones. This results in\nencryption failures returning PXE_ERR_GENERIC, which seems...
[ { "msg_contents": "Hi hackers,\n\nThere're probably mostly harmless, being mostly error and debug\nmessages and the like, and considering that eg OID parsing tolerates\nnegative numbers when reading them back in, but for what it's worth:\nGCC complains about many %d vs %u type mixups if you build with\n$SUBJECT...
[ { "msg_contents": "While hacking on the NSS patch I realized that sslinfo was passing the ->ssl\nPort member directly to OpenSSL in order to extract information regarding the\nconnection. This breaks the API provided by the backend, as well as duplicates\ncode for no real benefit. The attached 0001 patch rewr...
[ { "msg_contents": "Hi\n\nI run my development instances with track_io_timing=on, as I've found\nthat to be really useful. Unfortunately that causes tests to fail\nwhenever I forget to turn that off to run installcheck.\n\nThe diffs are caused by the additional data shown in the explain tests:\n...\n- \"Te...
[ { "msg_contents": "Hi All,\n\nToday while working on some other task related to database encoding, I\nnoticed that the MINUS SIGN (with byte sequence a1-dd) in EUC-JP is\nmapped to FULLWIDTH HYPHEN-MINUS (with byte sequence ef-bc-8d) in\nUTF-8. See below:\n\npostgres=# select convert('\\xa1dd', 'euc_jp', 'utf8'...
[ { "msg_contents": "Hi\r\n\r\nI am checking one customer query where there are some empty tables in a\r\nnontrivial query. The fixed estimation on empty tables in Postgres are\r\nworking very well, but I found another issue.\r\n\r\ncreate table test_a(id int);\r\ncreate table test_b(id int);\r\ninsert into test_...
[ { "msg_contents": "Hi hackers,\n\nPlease find attached my first patch (the tiniest of doc patches) :\nI found the wording around convalidated in pg_catalog documentation a bit\nconfusing/ambiguous.\n\nIf I'm doing something wrong, please let me know :)\n\nBest regards,\nJimmy\n\nJimmy Angelakos\nSenior PostgreS...
[ { "msg_contents": "This is the other doc fix as suggested in\nhttps://www.postgresql.org/message-id/20201027220555.GS4951%40momjian.us\n\nThere is already a compatibility section, so put there.\n-- \nJohn Naylor\nEnterpriseDB: http://www.enterprisedb.com\nThe Enterprise PostgreSQL Company", "msg_date": "Fri...
[ { "msg_contents": "Forking this thread, since the existing CFs have been closed.\nhttps://www.postgresql.org/message-id/flat/20200914143102.GX18552%40telsasoft.com#58b1056488451f8594b0f0ba40996afd\n\nThe strategy is to create catalog entries for all tables with indisvalid=false,\nand then process them like REIN...
[ { "msg_contents": "Hi,\n\nPer Coverity.\n\nIf test set->latch against NULL, is why it can be NULL.\nResetEvent can dereference NULL.\n\nregards,\nRanier Vilela", "msg_date": "Sat, 31 Oct 2020 11:40:53 -0300", "msg_from": "Ranier Vilela <ranier.vf@gmail.com>", "msg_from_op": true, "msg_subject": ...
[ { "msg_contents": "Hi,\n\nPer Coverity.\n\nmake_ruledef function can dereference a NULL pointer (actions),\nif \"ev_qual\" is provided and \"actions\" does not exist.\n\nThe comment there is contradictory: \" /* these could be nulls */ \"\nBecause if \"ev_qual\" is not null, \"actions\" cannot be either.\n\nSol...
[ { "msg_contents": "For my patch https://commitfest.postgresql.org/30/2522/\n\nWhen I run\n\nmake -j4 all contrib && make check-world\nlocally\n\nI see 2 errors.\n\nWhen cf-bot runs this it sees\n35 out of 93 failed.\n\nHow can I see the same errors?\n\nDave Cramer\n\nFor my patch https://commitfest.postgresql.o...
[ { "msg_contents": "Over in [1] I noted a need for fmgroids.h macros for pg_proc entries\nthat overload a particular C function. The F_XXX macros seem to be\ndesigned on the assumption that the only thing they're needed for\nis to call the function, so you don't really care which SQL alias\nyou use to get there...
[ { "msg_contents": "While fooling with Gen_fmgrtab.pl for a nearby patch [1], I noticed\nthat fmgrtab.c had a lot of entries pointing at aggregate_dummy,\nwhich seemed rather useless. So I experimented with removing them.\n\nIt turns out that nodeWindowAgg.c is carelessly expecting them to be\nthere, because it...
[ { "msg_contents": "I posted the idea of allowing negative indexes in split_part to pgsql-general\nlast week, and it seemed there was some interest:\n\nhttp://postgr.es/m/CAPWqQZR%2B-5pAZNSSrnmYczRaX-huemc%3DoO8URvDZvUA-M%3DMOBA%40mail.gmail.com\n\nAttached is a patch, based on master, that implements the approa...
[ { "msg_contents": "This is a new thread about possible refactoring and commit a6642b3ae\n(\"Add support for partitioned tables and indexes in REINDEX\")\n\nCurrently, ReindexPartitions() calls ReindexMultipleInternal() which loops\naround ReindexRelationConcurrently(), similar to what's done with\nReindexMultip...
[ { "msg_contents": "Hi,\n\nAt the moment we do very basic parsing of makefiles to build the\nvisual studio project file in order to build our contrib modules on\nMSVC. This parsing is quite basic and still requires a number of\nspecial cases to get enough information into the project file in order\nfor the buil...
[ { "msg_contents": "I noticed that hash_array_extended() does not pass down the collation to \nthe element's collation function, unlike hash_array(). As a \nconsequence, hash partitioning using text arrays as partition key fails.\n\nThe attached patch fixes this. I propose to backpatch this.", "msg_date": ...
[ { "msg_contents": "Hi all,\n\nI've attached a patch that fixes a typo in verify_heapam.c recently added.\n\ns/wheter/whether/\n\nRegards,\n\n--\nMasahiko Sawada\nEnterpriseDB: https://www.enterprisedb.com/", "msg_date": "Mon, 2 Nov 2020 17:05:46 +0900", "msg_from": "Masahiko Sawada <sawada.mshk@gmail.c...
[ { "msg_contents": "While looking at the parallel copy patches, it started to annoy me how \nlarge copy.c is. It confuses my little head. (Ok, it's annoyed me many \ntimes in the past, but I haven't done anything about it.)\n\nThere isn't much common code between COPY FROM and COPY TO, so I propose \nthat we spl...
[ { "msg_contents": "We directly call the heap function VM_ALL_VISIBLE in the\r\nIndexOnlyNext function. This is not in line with the design idea of\r\ntable am. If the new storage type needs to implement index only\r\nscan, he must hack the IndexOnlyNext function.\r\n\r\nSo this patch add a new table am 'tid_vis...
[ { "msg_contents": "Hi,\n\nhere is another patch related to using CALL statement inside PL/pgSQL code.\n\nA repeated using of CALL statement is expensive. How much?\n\nI wrote synthetic test:\n\nCREATE TABLE foo(a int, b int, c int);\n\nCREATE OR REPLACE PROCEDURE public.simple_proc3(a integer, b integer, c\nint...
[ { "msg_contents": "Hello Pgsql-hackers,\n\nWhen selecting data from json column it named as '?column?'\ntucha=# select info->>'suma', docn from document order by id desc limit 5;\n ?column? | docn \n----------+------\n 665.97 | 695\n 513.51 | 632\n 665.97 | 4804\n 492.12 | 4315\n 332.98 | 1302\n(5 row...
[ { "msg_contents": "Hi\n\nI found some possible typo in procarray.c and xlogreader.h\n\n- * For VACUUM separate horizons (used to to decide which deleted tuples must\n+ * For VACUUM separate horizons (used to decide which deleted tuples must\n\n- *\t\tCallers supply a page_read callback if they want to to call\n...
[ { "msg_contents": "Hi Stephen, hackers,\n\n>> > With all those 'readahead' calls it certainly makes one wonder if the\n>> > Linux kernel is reading more than just the block we're looking for\n>> > because it thinks we're doing a sequential read and will therefore want\n>> > the next few blocks when, in reality,...
[ { "msg_contents": "Hi,\n\nI would like to propose an updated patch on multi/bulk inserts in CTAS [1]\nthat tries to address the review comments that came up in [1]. One of the\nmain review comments was to calculate/estimate the tuple size to decide on\nwhen to flush. I tried to solve this point with a new funct...
[ { "msg_contents": "to_json is declared as taking \"anyelement\" as input, which means\nyou can't pass it something of unknown type:\n\n postgres=# SELECT to_json('foo');\n ERROR: could not determine polymorphic type because input has type unknown\n\nBut this works fine with the very similar json_build_...
[ { "msg_contents": "Hi,\n\nAs pointed out in [1], BRIN is not properly handling toasted data, which\nmay easily lead to index tuples referencing TOAST-ed values. Which is\nclearly wrong - it's trivial to trigger failues after a DELETE.\n\nAttached is a patch that aims to fix this - AFAIK the brin_form_tuple\nwas...
[ { "msg_contents": "Hi,\n\nWhile running some multixact-oriented stress tests, I noticed that\ncommit dee663f7843:\n\n Defer flushing of SLRU files.\n\n Previously, we called fsync() after writing out individual pg_xact,\n pg_multixact and pg_commit_ts pages due to cache pressure, leading to\n re...
[ { "msg_contents": "Hello.\n\nWhile updating a patch, I noticed that the replication slot stats\npatch (9868167500) put some somewhat doubious codes.\n\nIn pgstat_recv_replslot, an assertion like the following exists:\n\n>\tidx = pgstat_replslot_index(msg->m_slotname, !msg->m_drop);\n..\n>\tAssert(idx >= 0 && id...
[ { "msg_contents": "\nGreetings Stephen,\n\nI saw up 410MB/s for a few seconds with this patch on NVMe, and that's \nhuge ~5.2x improvement which is amazing for a such simple patch.\n\nThe system and data was identical like last time, so results are directly comparable \nto the previous post. The only change is ...
[ { "msg_contents": "Hi all.\n\nBack in 2016 I started a thread about making cancellations safer[1], I'd\nlike to try to pick this up again. Here a summary of the previous\nconversation:\n\nThe main ask here is to allow clients to specify which command to cancel,\nto avoid various race conditions where the wrong ...
[ { "msg_contents": "crake is showing xversion upgrade failures since 9e38c2bb50:\n\npg_restore: error: could not execute query: ERROR: function array_cat(anyarray, anyarray) does not exist\nCommand was: CREATE AGGREGATE \"public\".\"array_cat_accum\"(\"anyarray\") (\n SFUNC = \"array_cat\",\n STYPE = \"an...
[ { "msg_contents": "A few client tools duplicate error messages already provided by libpq, \nsuch as\n\npg_rewind: fatal: could not connect to server: could not connect to \nserver: No such file or directory\n\npg_basebackup: error: could not connect to server: could not connect to \nserver: No such file or dire...
[ { "msg_contents": "Hi,\n\nThe patch that makes pg_stat_statements track the number of rows that\nREFRESH MATERIALIZED VIEW command processes was proposed at [1].\nWhen reviewing the patch, I just wondered why the completion tag output\nfor REFRESH MATERIALIZED VIEW doesn't include the row count. Is this\nan int...
[ { "msg_contents": "Seems to be missing.\n\nThe 2nd patch does some more cleanup - Before, a failed syscache lookup would\nERROR, but I don't think that's supposed to happen. get_rel_relispartition()\nwould instead return false, and we won't call get_partition_parent().\n\ncommit a8ad949f22b8dd7b23049b0b0704e5b...
[ { "msg_contents": "subscribing\nsubscribing", "msg_date": "Fri, 06 Nov 2020 10:26:29 +0800", "msg_from": "\"meission\" <meission@aliyun.com>", "msg_from_op": true, "msg_subject": "=?UTF-8?B?c3Vic2NyaWJpbmc=?=" } ]
[ { "msg_contents": "Hi all,\n\nPlease find attached a patch set to sanitize the use of MD5 we have in\nthe core tree.\n\nAs of now, there are two duplicated implementations of MD5, one in\ncontrib/pgcrypto/ used as a fallback when not compiling with OpenSSL,\nand one in src/common/ used by the backend when compi...
[ { "msg_contents": "Since the impact of the long transaction is huge in postgresql, for example\na long transaction by incident, tables may become very huge and it can't\nbecome small again even the transaction is completed unless a vacuum full\nis used.\n\nI have 2 ideas about this. One is in the Read Committ...
[ { "msg_contents": "Hello, hackers!\n\nWhile trying to test a patch that adds a synchronization barrier in \npgbench [1] on Windows, I found that since the commit \"Use ppoll(2), if \navailable, to wait for input in pgbench.\" [2] I cannot use a large \nnumber of client connections in pgbench on my Windows virtu...
[ { "msg_contents": "Hi Marina,\nNice catch.\n\n>rc/bin/pgbench/pgbench.c, the function add_socket_to_set:\n>if (fd < 0 || fd >= FD_SETSIZE)\n>{\n>/*\n>* Doing a hard exit here is a bit grotty, but it doesn't seem worth\n>* complicating the API to make it less grotty.\n>*/\n>pg_log_fatal(\"too many client connect...
[ { "msg_contents": "See\n\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=c66a3225e07b5098a796f24588a6b81bfdedd2fd\n\nPlease send any corrections by Sunday.\n\n\t\t\tregards, tom lane\n\n\n", "msg_date": "Fri, 06 Nov 2020 17:07:12 -0500", "msg_from": "Tom Lane <tgl@sss.pgh.pa.us>", ...
[ { "msg_contents": "Hi, hacker\n\nI met an error as below when I use ecpg\n\na.pgc:5: ERROR: invalid bit string literal\na.pgc:5: ERROR: internal error: unreachable state; please report this to <pgsql-bugs@lists.postgresql.org>\n\nthe test source is attached.\n\nAfter investigating the code, I think the process ...
[ { "msg_contents": "I propose to apply the following changes to messages in pg13.\n\nIn 0001, I propose changing messages that were introduced as different \nfor parallel vacuum workers. Frankly I don't understand why we are\nbragging about the vacuum being done in a parallel worker; does the user\ncare? It se...
[ { "msg_contents": "Hi\n\nI had to solve a slow due very slow JIT preparing. I found very unpleased\nsituation where some subplan was strangely slow\n\n -> Hash Anti Join (cost=11.35..19.41 rows=143 width=3011) (actual\ntime=5039.022..5039.105 rows=203 loops=1)\n Hash Cond: (term_p.id_i = term_d_1.id_i)\...
[ { "msg_contents": "The problems discussed in bug #16703 [1] show that pg_dump needs a\nversion of LOCK TABLE that behaves differently for views than\nwhat we have now. Since v11, LOCK TABLE on a view recurses to all\ntables and views named in the view, and it does so using the view\nowner's permissions, meanin...
[ { "msg_contents": "Hi,\n\nWhile rebasing some of the BRIN patches, I noticed some of the code in\nbrin_memtuple_initialize is duplicated. This happened in 8bf74967dab\nwhich moved some of the code from brin_new_memtuple, not removing the\nshared pieces. In practice this is benign, of course.\n\nBarring objectio...
[ { "msg_contents": "Hi hackers,\n\nHere is a scenario that produces segfault during update (on version 12 \nand 13):\n\ncreate table bdttrig (created_at timestamp without time zone not null \ndefault now(),col1 bool not null default false, col2 text not null \ndefault 'def', col3 char(6) not null default 'bdtbdt...
[ { "msg_contents": "Hi,\n\nAttached is a draft of the release announcement for the upcoming\n2020-11-12 update release.\n\nCorrections and feedback welcome, so long as it is submitted by\n2020-11-11 AoE[1].\n\nThanks!\n\nJonathan\n\n[1] https://en.wikipedia.org/wiki/Anywhere_on_Earth", "msg_date": "Sun, 8 No...
[ { "msg_contents": "We had an outage caused by transaction wraparound. And yes, one of the\nfirst things I did on this site was check that we didn't have any\ndatabases that were in danger of wraparound.\n\nHowever since then we added a monitoring job that used a temporary\ntable with ON COMMIT DELETE ROWS. Sinc...
[ { "msg_contents": "Michael reported a BF failure [1] related to one of the logical\nstreaming test case and I've analyzed the issue. As responded on\npgsql-committers [2], the issue here is that the streaming\ntransactions can be interleaved and because we are maintaining whether\nxact_wrote_changes at the Logi...
[ { "msg_contents": "Hello,\n\nI've been doing some benchmarking on recent version of PostgreSQL and\nI'm seeing some regressions. The benchmark setup is as described in [1]\nexcept it looks like I got lucky in the runs used for that article.\n\nAfter many more runs, I get these NOPM averages (hopefully formatti...
[ { "msg_contents": "Hi\n\nI think I found a typo for the output of an error message which may cause building warning.\nPlease refer to the attachment for the detail.\n\nPrevious discussion:\nhttps://www.postgresql.org/message-id/alpine.DEB.2.21.1910311939430.27369@lancre\n\nBest regards\nTang", "msg_date": "...
[ { "msg_contents": "Hi Hackers,\n\nToday I have accidentally noticed that autoprewarm feature of pg_prewarm \nused TimestampDifference()'s results in a wrong way.\n\nFirst, it used *seconds* result from it as a *milliseconds*. It was \ncausing it to make dump file autoprewarm.blocks ~every second with \ndefault ...
[ { "msg_contents": "Currently the cost model of append path sums the cost/rows for all the\nsubpaths, it usually works well until we run into the run-time partition\nprune\ncase. The first result is that generic plans will rarely be used for some\ncases.\nFor instance, SELECT * FROM p WHERE pkey = $1; The cust...
[ { "msg_contents": "I am working on a project called \"bottom-up index deletion\" (I was\ncalling it \"delete deduplication\" until recently). This is another\nnbtree project. The patch series adds a mechanism that controls old\nduplicate versions caused by non-HOT UPDATEs. This is very effective.\nIn fact, it p...
[ { "msg_contents": "Hi all,\n\nTrying to use OpenSSL with FIPS breaks if one attempts to call the\nlow-level SHA2 routines we currently use in sha2_openssl.c (upstream\ncalls that OpenSSLDie()), forcing a crash of PG. The actual way to\nfix that is to use EVP as I solved here:\nhttps://commitfest.postgresql.org...
[ { "msg_contents": "Hi all\n\nThe attached patch adds a test to the TAP logical decoding suite to show\nthat pg_replication_slot_advance() works on a server in standby mode.\n\nI didn't add a full demonstration of how to do failover with logical slots\nbecause we're still missing a way to \"sync\" a logical slot...
[ { "msg_contents": "Hi all\n\nI noticed that when recovery.conf was removed in 2dedf4d9a8 (yay!) the docs\nfor it were removed completely as well. That's largely sensible, but is\nconfusing when users have upgraded and are trying to find out what\nhappened, or how to configure equivalent functionality.\n\nhttps:...
[ { "msg_contents": "Hi\n\nI notice that there are no Nullif case in eval_const_expression.\nSince Nullif is similar to Opexpr and is easy to implement,\nI try add this case in eval_const_expressions_mutator.\n\nBest regards,\nhouzj", "msg_date": "Tue, 10 Nov 2020 11:31:47 +0000", "msg_from": "\"Hou, Zhij...
[ { "msg_contents": "Hi all,\n\nFollowing the report of Coverity that led to 3636efa, I have reviewed\nthe existing callers of parsePGArray() in pg_dump and some of its\nerror handling is a bit sloppy.\n\nIt could theoretically be possible to reach an OOM in parsePGArray()\nwith a dump able to finish. This is ve...
[ { "msg_contents": "Hello. This is a thread for an alternative solution to wal_level=none\n[*1] for bulk data loading.\n\n*1: https://www.postgresql.org/message-id/TYAPR01MB29901EBE5A3ACCE55BA99186FE320%40TYAPR01MB2990.jpnprd01.prod.outlook.com\n\nAt Tue, 10 Nov 2020 09:33:12 -0500, Stephen Frost <sfrost@snowman...
[ { "msg_contents": "There are a number of rules like this in the grammar:\n\nopt_foo: FOO\n | /*EMPTY*/\n;\n\nAnd there are some like this:\n\nopt_foo: FOO {}\n | /*EMPTY*/ {}\n;\n\nand some even like this:\n\n%type <node> opt_foo\n\nopt_foo: FOO { $$ = NULL; }\n | /*EMPT...
[ { "msg_contents": "(From a report by user \"ftzdomino\" on IRC of a segfault while loading\ndata with a pg_trgm gist index)\n\nIf gtrgm_picksplit is invoked on a vector of exactly 2 items (which I\nthink is rare, but it can happen if gistSplit recurses or I think in\ncases of secondary splits), then it tries to...
[ { "msg_contents": "Hello Pgsql-hackers,\n\nSeems I fall into corner case:\n\ntest=> SELECT * FROM generate_series( '2020-11-09', '2020-11-09', INTERVAL '00:00:00' );\nERROR: step size cannot equal zero\n\nBut:\ntest=> SELECT * FROM generate_series( '2020-11-09', '2020-11-10', INTERVAL '1 day' );\n generate_...
[ { "msg_contents": "Currently we only match the Common Name (CN) of a client certificate\nwhen authenticating a user. The attached patch allows matching the\nentire Distinguished Name (DN) of the certificate. This is enabled by\nthe HBA line option \"clientname\", which can take the values \"CN\" or\n\"DN\". \"C...
[ { "msg_contents": "I would like to propose a few points that will help us detect file\ndamage, inconsistencies in files and track actions of users.\n\nOptionally, we could add these fields onto the WAL commit record:\n* 8-byte session start time (from MyStartTime)\n* 2-byte pid (from MyProcPid)\n* 4-byte user o...
[ { "msg_contents": "Hi,\n\nWhile restoring a backup using recovery_target immediate, I noticed that\nthere\nisn't a timestamp available.\n\nLOG: consistent recovery state reached at 0/A000100\nLOG: recovery stopping after reaching consistency\nLOG: pausing at the end of recovery\nHINT: Execute pg_wal_replay_...
[ { "msg_contents": "Hello Hackers,\n\nWhile supporting customers, it would frequently be useful to have more information about the history of a cluster. For example, which prior versions were ever installed and running on the cluster? Has the cluster ever been run with fsync=off? When did the server last ente...
[ { "msg_contents": "So far as I can tell, the partition machinery is critically dependent\non the idea that partition constraint conditions can never return\nNULL, only true or false. This is explicitly noted in the comments in\nget_qual_for_list, for instance, and it's visibly true by construction\nfor both li...
[ { "msg_contents": "Hello\n\nI found a simple test case:\n\nCREATE TABLE test(id int NOT NULL, gen int GENERATED ALWAYS AS (id + 1) STORED) partition by range (id);\ncreate table test_part_create partition of test for values from ( 0) to (10);\ncreate table test_part_attach (id int NOT NULL, gen int);\nalter tab...
[ { "msg_contents": "Hi,\n\n\nWe're facing some issue in a new extension we use at LzLabs to\nemulate server side rollback at statement level in PostgreSQL,\nsee for full detail https://github.com/lzlabs/pg_statement_rollback/\n\nThe problem we are encountering is when PostgreSQL is compiled in debug\nmode with -...
[ { "msg_contents": "While going through the code I noticed that the nTapes member in\nSharedSort is unused. This is just initialized with nworkers but\nnever used. The attached patch removes this variable.\n\n-- \nRegards,\nDilip Kumar\nEnterpriseDB: http://www.enterprisedb.com", "msg_date": "Thu, 12 Nov 2...
[ { "msg_contents": "Hackers,\n\nI'm investigating the bug report [1] about the behavior of\nwebsearch_to_tsquery() with quotes and multi-lexeme tokens. See the\nexample below.\n\n# select to_tsvector('pg_class foo') @@ websearch_to_tsquery('\"pg_class\nfoo\"');\n ?column?\n----------\n f\n\nSo, tsvector doesn't...
[ { "msg_contents": "Hi, it looks like Vik Fearing's patch does not apply anymore, because there\nare many conflicts with recent changes, fixed patch attached.\nI am interested in reviewing and testing it for the next commitfest, if\nit's design and implementation is found to be acceptable.\nAdditionally, if it i...
[ { "msg_contents": "Hi,\n\nAttached is a patch to allow estimation of (Var op Var) clauses using\nextended statistics. Currently we only use extended stats to estimate\n(Var op Const) clauses, which is sufficient for most cases, but it's not\nvery hard to support this second type of clauses.\n\nThis is not an en...
[ { "msg_contents": "Hi, hackers!\n\nFor historical reasons, now we have two differently named but similar\nternary data types in TSearch and Gin text-related types. Before v13 there\nwas also Gin's private TS_execute() version, from which we eventually\nshifted to Tsearch's TS_execute().\n\nTo make things more e...
[ { "msg_contents": "If a file is modified and becomes larger in the source system while \npg_rewind is running, pg_rewind can leave behind a partial copy of file. \nThat's by design, and it's OK for relation files because they're \nreplayed from WAL. But it can cause trouble for configuration files.\n\nI ran int...
[ { "msg_contents": "When spellchecking one of my patches for submission, a few other typos fell out\nas per the attached. The one change which isn't in a comment is the object\naddress class description used for error messages:\n\n-\t\t\"extented statistics\",\n+\t\t\"extended statistics\",\n\nIt's used in an e...
[ { "msg_contents": "I saw a bunch of these in my logs:\n\nlog_time | 2020-10-25 22:59:45.619-07\ndatabase | \nleft | could not open relation with OID 292103095\nleft | processing work entry for relation \"ts.child.alarms_202010_alarm_clear_time_idx\"\n\nThose happen following a REINDEX job on that index....
[ { "msg_contents": "Hi,\n\nI got somewhat scared when my explain took a few seconds to complete and \nused a few gigs of RAM.\nTo reproduce try the following:\n\ndiscard temp;\ncreate temp table a as select to_timestamp(generate_series(1, 7000)) i;\nanalyze a;\nset work_mem to '3GB';\nexplain select distinct a1....
[ { "msg_contents": "Hello,\n\nThis patch introduces a set of changes to the table AM APIs, making them\naccept a column projection list. That helps columnar table AMs, so that\nthey don't need to fetch all columns from disk, but only the ones\nactually needed.\n\nThe set of changes in this patch is not exhaustiv...