threads
listlengths
1
2.99k
[ { "msg_contents": "In brief, I'm proposing to raise xidWrapLimit-xidStopLimit to 3M and\nxidWrapLimit-xidWarnLimit to 40M. Likewise for mxact counterparts.\n\n\nPostgreSQL has three \"stop limit\" values beyond which only single-user mode\nwill assign new values of a certain counter:\n\n- xidStopLimit protects...
[ { "msg_contents": "Hi Hackers,\n\nWhile I was looking at linkifying SQL commands in the system catalog\ndocs, I noticed that catalog.sgml uses the <command> tag to refer to\ninitdb, while I'd expected it to use <application>.\n\nLooking for patterns, I grepped for the two tags with contents\nconsisting only of ...
[ { "msg_contents": "Hi Hackers,\n\nWhile looking at making more <command>SQL</command> into links, I\nnoticed that <xref> loses the monospace formatting of <command>, and\ncan't itself be wrapped in <command>. This becomes particularly\napparent when you have one link that can be an <xref/> next to another\ntha...
[ { "msg_contents": "Back in bd3daddaf232d95b0c9ba6f99b0170a0147dd8af, which introduced\nAlternativeSubPlans, I wrote:\n \n There is a lot more that could be done based on this infrastructure: in\n particular it's interesting to consider switching to the hash plan if we start\n out using the non-hashed plan...
[ { "msg_contents": "Hi\n\nThere is one user request for unescape function in core.\n\nhttps://stackoverflow.com/questions/20124393/convert-escaped-unicode-character-back-to-actual-character-in-postgresql/20125412?noredirect=1#comment110502526_20125412\n\nThis request is about possibility that we do with string l...
[ { "msg_contents": "I propose to backpatch b61d161c14 [1] (Introduce vacuum errcontext to\ndisplay additional information.). In the recent past, we have seen an\nerror report similar to \"ERROR: found xmin 2157740646 from before\nrelfrozenxid 1197\" from multiple EDB customers. A similar report is\nseen on pgs...
[ { "msg_contents": "Hi,\n\nWhen a query on foreign table is executed from a local session using\npostgres_fdw, as expected the local postgres backend opens a\nconnection which causes a remote session/backend to be opened on the\nremote postgres server for query execution.\n\nOne observation is that, even after t...
[ { "msg_contents": "Hi,\n\nThis is something I've wanted several times in the past, so I thought\nothers here could be interested: if you're looking for a way to run\nyour development branch through check-world on a big endian box, the\nnew s390x support[1] on Travis is good for that. Capacity is a bit\nlimite...
[ { "msg_contents": "hello hackers,\r\n\r\nWhen I try to use pg_resetwal tool to skip some transaction ID, I get a problem that is\r\nthe tool can accept all transaction id I offered with '-x' option, however, the database\r\nmay failed to restart because of can not read file under $PGDATA/pg_xact. For\r\nexampl...
[ { "msg_contents": "Hi All,\nExecInitPartitionInfo() has code\n 536 /*\n 537 * Open partition indices. The user may have asked to check for\nconflicts\n 538 * within this leaf partition and do \"nothing\" instead of throwing\nan\n 539 * error. Be prepared in that case by initializing the ind...
[ { "msg_contents": "The comment for InsertPgAttributeTuple no longer, since 911e702077037996, match\nreality as attoptions isn't always initialized to NULL. The attached removes\nmention of attoptions, and updates the list of always-NULL attributes to match\nwhat the code does (the git history didn't provide ra...
[ { "msg_contents": "Hi,\n\nIf restart_lsn of logical replication slot gets behind more than\nmax_slot_wal_keep_size from the current LSN, the logical replication\nslot would be invalidated and its restart_lsn is reset to an invalid LSN.\nIf this logical replication slot with an invalid restart_lsn is specified\n...
[ { "msg_contents": "Hi All,\n\nI have been programming Perl for over several years and would like to help\nif needed. Will be looking through the issues for anything that jumps out\nat me, but if there is something that someone is aware of that needs\nattention please let me know.\n\nIf I am going about this th...
[ { "msg_contents": "In PostgreSQL there are a function table_to_xml to map the table content\nto xml value but there are no functionality to decompose xml back into\ntable which can be used in system that uses xml for transport only or there\nare a need to migrate to database system to use database functionality...
[ { "msg_contents": "Hello,\n\nI had some questions about the behavior of some accounting in parallel\nEXPLAIN plans. Take the following plan:\n\n```\nGather (cost=1000.43..750173.74 rows=2 width=235) (actual\ntime=1665.122..1665.122 rows=0 loops=1)\n Workers Planned: 2\n Workers Launched: 2\n Buffers: shared...
[ { "msg_contents": "Hi hackers,\n\nI was talking about PostgreSQL and threading on IRC the other day - which I\nknow is a frowned upon topic - and just wanted to frame the same questions\nhere and hopefully get a discussion going.\n\nOn IRC RhodiumToad offered the following advice (after a standard there be\ndra...
[ { "msg_contents": "Hi,\n\nIt's a bit odd that syncscan.c is used by both heapam.c and tableam.c,\nand provides a generic block-synchronization mechanism that other\ntable AMs might want to use too, but it lives under\nsrc/backend/access/heap. It doesn't actually do anything heap\nspecific (beyond being block-o...
[ { "msg_contents": "A few months ago while writing the initial version of a patch to extract\nthe columns that need to be scanned at plan time for use by table AMs,\n[1] Ashwin and I noticed some peculiar aspects of the reltarget exprs\nfor partition tables for DELETE FROM ... USING... WHERE... RETURNING ...\nqu...
[ { "msg_contents": "Hi,\n\nFix typo on sum size table_parallelscan_estimate.\nIf IsMVCCSnapshot(snapshot is true, add_size return is being lost.\n\nregards,\nRanier Vilela", "msg_date": "Tue, 23 Jun 2020 09:31:51 -0300", "msg_from": "Ranier Vilela <ranier.vf@gmail.com>", "msg_from_op": true, "msg...
[ { "msg_contents": "Here is a patch to reorganize dumpFunc() and dumpAgg() in pg_dump, \nsimilar to daa9fe8a5264a3f192efa5ddee8fb011ad9da365. Instead of \nrepeating the almost same large query in each version branch, use one\nquery and add a few columns to the SELECT list depending on the\nversion. This saves ...
[ { "msg_contents": "Hello all,\n\nas to my recent findings, I'm not able to build postgresql 10.13\nagainst libpq 12.1, as in that case, postgresql is missing changes\nimplemented in libpq 10.12 (and 12.2) [1]. So to rebase to postgresql\n10.13 on a system with a separated libpq package shipped at version\n12.1,...
[ { "msg_contents": "In the following log file the presence of \"exit code 1\" after performing a\n\"pg_ctl stop -m smart\" shutdown is bugging me. I take it most people would\njust ignore it as noise but a clean install from source, startup, and\nshutdown would ideally not result in a non-zero exit code being s...
[ { "msg_contents": "I just noticed that when you compile pg_bsd_indent with a PG tree that\nhas --enable-jit (or something around that), then it compiles the source\nfiles into bytecode.\n\nObviously this is not harmful since these files don't get installed, but\nI wonder if our compiles aren't being excessively...
[ { "msg_contents": "I was checking some loose ends in SQL conformance, when I noticed: We \nsupport GRANT role ... GRANTED BY CURRENT_USER, but we don't support \nCURRENT_ROLE in that place, even though in PostgreSQL they are \nequivalent. Here is a trivial patch to add that.\n\n-- \nPeter Eisentraut ...
[ { "msg_contents": "In PG13, we raised the server-side default of ssl_min_protocol_version \nto TLSv1.2. We also added a connection setting named \nssl_min_protocol_version to libpq. But AFAICT, the default value of the \nlibpq setting is empty, so any protocol version will be accepted. Is \nthis what we want...
[ { "msg_contents": "Hi\nI would like to use a Foreign Data Wrapper (FDW) to connect to a HADOOP cluster which uses KERBEROS authentication.\nis it possible to achieve this ? which FDW should be used ?\n\nThanks in advance\n\nBest Regards\nDidier ROS\nEDF\nCe message et toutes les pièces jointes (ci-après le 'Mes...
[ { "msg_contents": "Hi,\n\nCOPY command's FORMAT option allows only all lowercase csv, text or\nbinary, this is true because strcmp is being used while parsing these\nvalues.\n\nIt would be nice if the uppercase or combination of lower and upper\ncase format options such as CSV, TEXT, BINARY, Csv, Text, Binary s...
[ { "msg_contents": "\nHello devs,\n\nI would like to create an \"all defaults\" row, i.e. a row composed of the \ndefault values for all attributes, so I wrote:\n\n INSERT INTO t() VALUES ();\n\nThis is forbidden by postgres, and also sqlite.\n\nIs there any good reason why this should be the case?\n\n-- \nFab...
[ { "msg_contents": "Hi hackers,\n\nWhile working with Chris Hajas on merging Postgres 12 with Greenplum\nDatabase we stumbled upon the following strange behavior in the geometry\ntype polygon:\n\n------ >8 --------\n\nCREATE TEMP TABLE foo (p point);\nCREATE INDEX ON foo USING gist(p);\n\nINSERT INTO foo VALUES ...
[ { "msg_contents": "Back in [1] I experimented with a patch to coax compilers to build all\nelog/ereport calls that were >= ERROR into a cold path away from the\nfunction rasing the error. At the time, I really just wanted to test\nhow much of a speedup we could get by doing this and ended up just\nwriting up a ...
[ { "msg_contents": "Hi all,\n\nAs subject tells, we have in src/common/ four files that are only\ncompiled as part of the frontend: fe_memutils.c, file_utils.c,\nlogging.c and restricted_token.c. Two of them are missing the\nfollowing, to make sure that we never try to compile them with the\nbackend:\n+#ifndef ...
[ { "msg_contents": "Over on [1] Justin mentions that the non-text EXPLAIN ANALYZE should\nalways show the \"Disk Usage\" and \"HashAgg Batches\" properties. I\nagree with this. show_wal_usage() is a good example of how we normally\ndo things. We try to keep the text format as humanly readable as\npossible but ...
[ { "msg_contents": "Hi,\n\nSomeone contacted me about increasing CUBE_MAX_DIM\nin contrib/cube/cubedata.h (in the community RPMs). The current value\nis 100 with the following comment:\n\n* This limit is pretty arbitrary, but don't make it so large that you\n* risk overflow in sizing calculations.\n\n\nThey said...
[ { "msg_contents": "Hello,\n\nA one line change to remove a duplicate check. This duplicate check was detected during testing my contribution to a static code analysis tool. There is no functional change, no new tests needed.\n\nRegards,\n\nÁdám Balogh\nCodeChecker Team\nEricsson Hungary", "msg_date": "Thu, ...
[ { "msg_contents": "The bit/varbit type input functions cause file_fdw to fail to read the \nlogfile normally.\n\n1. Server conf:\n server_encoding = UTF8\n locale = zh_CN.UTF-8\n\n2. Create external tables using file_fdw\n\nCREATE EXTENSION file_fdw;\nCREATE SERVER pglog FOREIGN DATA WRAPPER file_fdw;\n...
[ { "msg_contents": "Hi Hackers,\n\nThere seems to be an extra palloc of 64KB of raw_buf for binary format\nfiles which is not required\nas copy logic for binary files don't use raw_buf, instead, attribute_buf\nis used in CopyReadBinaryAttribute.\n\nAttached is a patch, which places a check to avoid this unnecess...
[ { "msg_contents": "Hi,\n\nI would like to discuss a refactoring patch that builds on top of the\npatches at [1] to address $subject. To get an idea for what\neliminating these overheads looks like, take a look at the following\nbenchmarking results.\n\nNote 1: I've forced the use of generic plan by setting pla...
[ { "msg_contents": "\nFound when working against release 12.\n\n\nGiven the following extension:\n\n\n::::::::::::::\nshare/postgresql/extension/dummy--1.0.0.sql\n::::::::::::::\n-- complain if script is sourced in psql, rather than via CREATE EXTENSION\n\\echo Use \"CREATE EXTENSION dummy\" to load this file. \...
[ { "msg_contents": "Hi,\n\nPer Coverity.\nPerhaps it is excessive caution.\nProbably assertion check has already caught all possible errors.\nBut, redundancy may not cost as much and is worth it.\n\n1.Assertion check\n/* Caller messed up if we have neither a ready query nor held data. */\nAssert(queryDesc || por...
[ { "msg_contents": "Hi,\n\nIs anyone here interested in helping to evaluate an experimental patch\nfor wolfSSL support?\n\nAttached please find a WIP patch for wolfSSL support in postgresql-12.\nAs a shortcut, you may find this merge request helpful:\n\n https://salsa.debian.org/postgresql/postgresql/-/merge_...
[ { "msg_contents": "Hi,\n\nI found that tab completion for some parts of the copy statement was\nmissing. The Tab completion was missing for the following cases:\n1) COPY [BINARY] <sth> FROM filename -> \"BINARY\", \"DELIMITER\", \"NULL\",\n\"CSV\", \"ENCODING\", \"WITH (\", \"WHERE\" should be shown.\n2) COPY [...
[ { "msg_contents": "Hello,\n\nOn \"Debian GNU/Linux 9 (stretch)\", compiling master just now, I get the \nfollowing (interspersed with some output fom my build script):\n\n-- [2020.06.27 19:07:42 HEAD/1] ./configure \n--prefix=/home/aardvark/pg_stuff/pg_installations/pgsql.HEAD \n--bindir=/home/aardvark/pg_stuf...
[ { "msg_contents": "Since pg11 pg_read_file() and friends can be used with absolute paths as long as\nthe user is superuser or explicitly granted the role pg_read_server_files.\n\nI noticed that when trying to read a virtual file, e.g.:\n\n SELECT pg_read_file('/proc/self/status');\n\nthe returned result is a z...
[ { "msg_contents": "In a few days, the first commitfest of the 14 cycle - 2020-07 - will start.\nUnless anyone has already spoken up that I've missed, I'm happy to volunteer to\nrun CFM for this one.\n\ncheers ./daniel\n\n", "msg_date": "Sun, 28 Jun 2020 13:10:48 +0200", "msg_from": "Daniel Gustafsson <d...
[ { "msg_contents": "As I mentioned in [1], checking (struct Port)->ssl for NULL to determine\nwhether TLS is used for connection is a bit of a leaky abstraction, as that's\nan OpenSSL specific struct member. This sets the requirement that all TLS\nimplementations use a pointer named SSL, and that the pointer is...
[ { "msg_contents": "Hi,\n\nOne of the issues I'm fairly regularly reminded by users/customers is\nthat inserting into tables sharded using FDWs are rather slow. We do\neven get it reported on pgsql-bugs from time to time [1].\n\nSome of the slowness / overhead is expected, doe to the latency between\nmachines in...
[ { "msg_contents": "In connection with the discussion at [1], I realized that we could unwind\nthe hacks we've introduced --- mostly in commit 54cd4f045 --- to avoid\ndepending on the behavior of %.*s format in printf. Now that we always\nuse our own snprintf.c code, we know that it measures field widths in\nby...
[ { "msg_contents": "If I use the attached sql file to set up the database with loop-back\npostgres_fdw, and then turn on use_remote_estimate for this query:\n\ndistinct on (id) id, z from fgn.priority order by id, priority desc,z\n\nIt issues two queries for the foreign estimate, one with a sort and one\nwithout...
[ { "msg_contents": "Hi,\n\nI found the bug about archive_timeout parameter.\nThere is the case archive_timeout parameter is ignored after recovery works.\n\n[Problem]\nWhen the value of archive_timeout is smaller than that of checkpoint_timeout and recovery works, archive_timeout is ignored in the first WAL arch...
[ { "msg_contents": "Hi Hackers,\n\nFor Copy From Binary files, there exists below information for each\ntuple/row.\n1. field count(number of columns)\n2. for every field, field size(column data length)\n3. field data of field size(actual column data)\n\nCurrently, all the above data required at each step is read...
[ { "msg_contents": "Hi,\n\nDuring fully-cached SELECT-only test using pgbench, Postgres v13Beta1 shows\n~45% performance drop [2] at high DB connection counts (when compared with v12.3)\n\nDisabling pg_stat_statements.track_planning (which is 'On' by default)\nbrings the TPS numbers up to v12.3 levels.\n\nThe in...
[ { "msg_contents": "CREATE TABLE boom (a integer, b integer);\n\n-- index on whole-row expression\nCREATE UNIQUE INDEX ON boom ((boom));\n\nINSERT INTO boom VALUES\n (1, 2),\n (1, 3);\n\nALTER TABLE boom DROP b;\n\nTABLE boom;\n\n a \n---\n 1\n 1\n(2 rows)\n\nREINDEX TABLE boom;\nERROR: could not create uni...
[ { "msg_contents": "If a database (a) has a default tablespace set,\n\nReproduction:\n\nCREATE TABLESPACE t LOCATION '/tmp/t';\nCREATE DATABASE dumb TABLESPACE t;\n\\c dumb\nSET temp_tablespaces=t;\n\nAt this point if you run a query with a parallel hash join in it, the\ntempfiles go in base/pgsql_tmp instead of...
[ { "msg_contents": "[Resent on hackers for CF registration, sorry for the noise]\n\nHello Tom,\n\nThe attached patch fixes some of the underlying problems reported by delaying \nthe :var to $1 substitution to the last possible moments, so that what \nvariables are actually defined is known. PREPARE-ing is also d...
[ { "msg_contents": "Hi,\n\nThis patch removes two temporary files that are not removed. In\nDebian, repeated builds fail. We do not allow builds from modified\nsources.\n\nThe first file was clearly an oversight. It was created separately. I\nam not sure why the loop over @keys did not remove the second.\n\nFor ...
[ { "msg_contents": "Hi,\n\nI noticed the incremental sort code makes use of the long datatype a\nfew times, e.g in TuplesortInstrumentation and\nIncrementalSortGroupInfo. (64-bit windows machines have sizeof(long)\n== 4). I understand that the values are in kilobytes and it would\ntake 2TB to cause them to wra...
[ { "msg_contents": "Some time ago, there were some discussions about gcc warnings produced \nby -Wcast-function-type [0]. To clarify, while that thread seemed to \nimply that the warnings appear by default in some compiler version, this \nis not the case AFAICT, and the warnings are entirely optional.\n\nSo I t...
[ { "msg_contents": "Hello.\n\nWhile looking a patch, I found that a standby with archive_mode=always\nfails to archive segments under certain conditions.\n\nA. Walreceiver is gracefully terminated just after a segment is\n finished.\n\nB. Walreceiver is gracefully terminated while receiving filling chunks\n f...
[ { "msg_contents": "The first commitfest of the v14 cycle, 2020-07 is just around the corner now\nand the trend of growing the list of patches has continued, so there is a lot\nto go through.\n\nIf you have a patch registered in the commitfest, make sure it still applies\nand that the tests pass. Looking at the...
[ { "msg_contents": "This feature adds RESPECT NULLS and IGNORE NULLS syntax to several\nwindow functions, according to the SQL Standard.\n\nUnlike the last time this was attempted[1], my version does not hardcode\nthe spec's list of functions that this applies to. Instead, it accepts\nit for all true window fun...
[ { "msg_contents": "Hi,\n\nWhen I talked about max_slot_wal_keep_size as new feature in v13\nat the conference, I received the question like \"Why are the units of\nsetting values in max_slot_wal_keep_size and wal_keep_segments different?\"\nfrom audience. That difference looks confusing for users and\nIMO it's ...
[ { "msg_contents": "Buildfarm member hyrax has shown this failure twice recently:\n\n--- /home/buildfarm/buildroot/HEAD/pgsql.build/src/test/regress/expected/brin.out\t2020-01-23 11:10:05.730014075 -0500\n+++ /home/buildfarm/buildroot/HEAD/pgsql.build/src/test/regress/results/brin.out\t2020-06-30 03:50:23.651196...
[ { "msg_contents": "This adds support for writing CREATE FUNCTION and CREATE PROCEDURE \nstatements for language SQL with a function body that conforms to the \nSQL standard and is portable to other implementations.\n\nInstead of the PostgreSQL-specific AS $$ string literal $$ syntax,\nthis allows writing out th...
[ { "msg_contents": "Attached is a POC patch that teaches nbtree to delete old duplicate\nversions from unique indexes. The optimization targets non-HOT\nduplicate version bloat. Although the patch is rather rough, it\nnevertheless manages to more or less eliminate a whole class of index\nbloat: Unique index bloa...
[ { "msg_contents": "Hi,\n\nWhile working on 40efbf870 I noticed that when performing a Hash Join\nthat we always start out by setting nbatch to 1. That seems\nreasonable as it's hard to imagine being able to complete any non-zero\namount of work in fewer than 1 batch.\n\nIn the HashAgg case, since 40efbf870, we...
[ { "msg_contents": "Greetings,\n\nAmong the changes made to PG's recovery in v12 was to set\nrecovery_target_timeline to be 'latest' by default. That's handy when\nyou're flipping back and forth between replicas and want to have\neveryone follow that game, but it's made doing some basic things like\nrestoring f...
[ { "msg_contents": "Hi,\n\nAttached patch makes an adjustment to ipc.c code to be in the 80-column\nwindow.\n\nRegards,\nAmul", "msg_date": "Wed, 1 Jul 2020 12:30:29 +0530", "msg_from": "Amul Sul <sulamul@gmail.com>", "msg_from_op": true, "msg_subject": "Cleanup - adjust the code crossing 80-colu...
[ { "msg_contents": "Hi,\n\nWhile reviewing copy from I identified few improvements for copy from\nthat can be done :\na) copy from stdin copies lesser amount of data to buffer even though\nspace is available in buffer because minread was passed as 1 to\nCopyGetData, Hence it only reads until the data read from ...
[ { "msg_contents": "Outline-atomics is a gcc compilation flag that adds runtime detection of weather or not the cpu supports atomic instructions. CPUs that don't support atomic instructions will use the old load-exclusive/store-exclusive instructions. If a different compilation flag defined an architecture that ...
[ { "msg_contents": "Hi hackers,\r\n\r\n\r\n\r\nCurrently, the COPY TO api does not support callback functions, while the COPY FROM api does. The COPY TO code does, however, include placeholders for supporting callbacks in the future.\r\n\r\n\r\n\r\nRounding out the support of callback functions to both could be ...
[ { "msg_contents": "Hi,\n\nFor an extended query that needs to get parameter types before sending\nthem, is there a difference in doing:\n\nParse, Describe statement, Flush, Bind, Execute, Sync\nvs\nParse, Describe statement, Sync, Bind, Execute, Sync\n\nOf course, there will be an additional ReadyForQuery in th...
[ { "msg_contents": "This seems pretty strange:\n\ncreate publication pub1 for all tables;\n\n WARNING: wal_level is insufficient to publish logical changes\nHINT: Set wal_level to logical before creating subscriptions.\n\nDave Cramer\n\nThis seems pretty strange:create publication pub1 for all tables;         ...
[ { "msg_contents": "Hi!\n\n(Sorry if this was already discussed, it looks pretty obvious, but I\ncould not find anything.)\n\nI was thinking and reading about how to design the schema to keep\nrecords of all changes which happen to the table, at row granularity,\nwhen I realized that all this is already done for...
[ { "msg_contents": "Hi,\n\nWhile checking through the code I found that some of the function\nparameters in reorderbuffer & vacuumlazy are not used. I felt this\ncould be removed. I'm not sure if it is kept for future use or not.\nAttached patch contains the changes for the same.\nThoughts?\n\nRegards,\nVignesh...
[ { "msg_contents": "Hi,\n\nParallel worker hangs while handling errors.\n\nAnalysis:\nWhen there is an error in the parallel worker process, we will call\nereport/elog with the error message. Worker will then jump from\nerrfinish to setjmp in StartBackgroundWorker function which was set\nearlier. Then the worker...
[ { "msg_contents": "Ahoj\n\nPL/pgSQL vznikl jako jednoducha implementace jazyka silne inspirovana\nPL/SQL. Proto muze byt zajimave si neco precist o PL/SQL\n\nhttp://oracle-internals.com/blog/2020/04/29/a-not-so-brief-but-very-accurate-history-of-pl-sql/\n\nPavel\n\nAhojPL/pgSQL vznikl jako jednoducha implementa...
[ { "msg_contents": "(resending to the list)\n\nHi All\n\nI started looking into Konstantin's 30 month old thread/patch:\n|Re: [HACKERS] Secondary index access optimizations\nhttps://www.postgresql.org/message-id/27516421-5afa-203c-e22a-8407e9187327%40postgrespro.ru\n\n..to which David directed me 12 months ago:\...
[ { "msg_contents": "In <1116564.1593813043@sss.pgh.pa.us> I wrote:\n> I wonder whether someday we ought to invent a new API that's more\n> suited to postgres_fdw's needs than EXPLAIN is. It's not like the\n> remote planner doesn't know the number we want; it just fails to\n> include it in EXPLAIN.\n\nI've been ...
[ { "msg_contents": "Hello, hackers!\n\nI'd like to propose a feature for changing a constraint's index. The\nprovided patch allows to do it for EXCLUDE, UNIQUE, PRIMARY KEY and\nFOREIGN KEY constraints.\n\nFeature description:\nALTER TABLE ... ALTER CONSTRAINT ... USING INDEX ...\nReplace a constraint's index wi...
[ { "msg_contents": "I'm writing a small extension, and I'm trying to use C++ constructs. I'm\nnot actually doing anything that needs C++, but I *really* like declaring\nvariables when I first initialize them (for example), and I also *really*\nlike warning-free compiles.\n\nThe C++ compiler is mangling the names...
[ { "msg_contents": "I hit this issue intermittently (roughly half the time) while working with a\npatch David submitted, and finally found a recipe to reproduce it on an\nunpatched v12 instance.\n\nI was surprised to see pg_restore -j2 is restoring ACLs in pre-data in\nparallel. Note different session IDs and P...
[ { "msg_contents": "Hello\n\nI would like to ask about the conditions under which partition pruning is performed.\nIn PostgreSQL 12, when I executed following SQL, partition pruning is not performed.\n\npostgres=# explain select * from a where (c1, c2) < (99, 99);\n QUERY PLAN\n--------...
[ { "msg_contents": "The previous discussion of automatic partition creation [1] has \naddressed static and dynamic creation of partitions and ended up with \nseveral syntax proposals.\nIn this thread, I want to continue this work.\n\nAttached is PoC for static partition creation. The patch core is quite \nstraig...
[ { "msg_contents": "Hi\n\nI checking state of https://commitfest.postgresql.org/28/2176/\n\nIt should be committed, but I don't see a commit?\n\nRegards\n\nPavel\n\nHiI checking state of https://commitfest.postgresql.org/28/2176/It should be committed, but I don't see a commit?RegardsPavel", "msg_date": "Mon...
[ { "msg_contents": "Hi,\n\nAt the moment, only single-byte characters in identifiers are\ncase-folded, and multi-byte characters are not.\n\nFor example, abĉDĚF is case-folded to \"abĉdĚf\". This can be referred\nto as \"abĉdĚf\" or \"ABĉDĚF\", but not \"abĉděf\" or \"ABĈDĚF\".\n\ndowncase_identifier() has the ...
[ { "msg_contents": "Hi Postgres team,\n\nI would like to know if PostgreSQL can be installed and used without any\nissues on Amazon Linux EC2 machines.\n\nhttps://www.postgresql.org/docs/11/supported-platforms.html\n\nI was going through the documentation and couldn't find very specific\ndetails related to suppo...
[ { "msg_contents": "Hi,\n\nI found an issue while executing a backup use case(please see [1] for\nqueries) on postgres version 12.\n\nFirstly, pg_start_backup registers nonexclusive_base_backup_cleanup as\non_shmem_exit call back which will\nadd this function to the before_shmem_exit_list array which is\nsuppose...
[ { "msg_contents": "Hi,\n\nHere is a quick issue I found on the BRIN documentation. I'm not a 100%\nsure I'm right but it looks like a failed copy/paste from the GIN\ndocumentation.\n\nCheers.\n\n\n-- \nGuillaume.", "msg_date": "Tue, 7 Jul 2020 09:17:15 +0200", "msg_from": "Guillaume Lelarge <guillaume@l...
[ { "msg_contents": "Hi,\n\nThe manual describes the size of pg_stat_activity.query\nas below:\n\n | By default the query text is truncated at 1024 characters;\n\nWhen considering multibyte characters, it seems more\naccurate to change the unit from \"characters\" to \"bytes\".\n\nI also searched other \"[0-9] c...
[ { "msg_contents": "Hi,\n\nCurrently, slot_keep_segs is defined as \"XLogRecPtr\" in KeepLogSeg(),\nbut it seems that should be \"XLogSegNo\" because this variable is\nsegment number.\n\nHow do you think?\n\nRegards,\n\n--\nAtsushi Torikoshi\nNTT DATA CORPORATION", "msg_date": "Wed, 08 Jul 2020 11:02:17 +090...
[ { "msg_contents": "Over on [1] someone was asking about chained window paths making use\nof already partially sorted input. (The thread is on -general, so I\nguessed they're not using PG13.)\n\nHowever, On checking PG13 to see if incremental sort would help their\ncase, I saw it didn't. Looking at the code I s...
[ { "msg_contents": "Spotted a small typo in pgstat.c this morning, attached patch fixes this.\n\ncheers ./daniel", "msg_date": "Wed, 8 Jul 2020 10:04:55 +0200", "msg_from": "Daniel Gustafsson <daniel@yesql.se>", "msg_from_op": true, "msg_subject": "Typo in pgstat.c" }, { "msg_contents": "...
[ { "msg_contents": "Here is a patch that adds the following to pg_stat_database:\n- number of connections\n- number of sessions that were not disconnected regularly\n- total time spent in database sessions\n- total time spent executing queries\n- total idle in transaction time\n\nThis is useful to check if conne...
[ { "msg_contents": "Hi,\n\nCurrently with the postgres_fdw remote connections cached in the local\nbackend, the queries that use the cached connections from local\nbackend will not check whether the remote backend is killed or gone\naway, and it goes tries to submit the query and fails if the remote\nbackend is ...
[ { "msg_contents": "Hello,\n\nI noticed the following strage output when running Postgres 12.3 (not psql) on Windows\n\n postgres=# select pg_current_logfile();\n pg_current_logfile\n ------------------------------------\n pg_log/postgresql-2020-07-08.log\\r\n (1 row)\n\nNote the \"\\r\"...
[ { "msg_contents": "Last week as I was working on adaptive hash join [1] and trying to get\nparallel adaptive hash join batch 0 to spill correctly, I noticed what\nseemed like a problem with the code to repartition batch 0.\n\nIf we run out of space while inserting tuples into the hashtable during\nthe build pha...
[ { "msg_contents": "I want to explain one bad situation we have encountered with one of our \ncustomers.\nThere are ~5000 tables in their database. And what is worse - most of \nthem are actively used.\nThen several flaws of Postgres make their system almost stuck.\n\nAutovacuum is periodically processing all th...
[ { "msg_contents": "Hello, hackers.\n\n\nI've been thinking to suggest\na peformance-oriented feature for COPY FROM.\nIt's UNLOGGED clause, which means data loading skipping WAL generation.\n\nHow to make it work is the following.\n1. Aquire ACCESS EXCLUSIVE mode to lock the target table and its indexes.\n2. Mar...
[ { "msg_contents": "It seems I cannot access to pgsql-hackers archives.\nhttps://www.postgresql.org/list/pgsql-hackers/2020-07/\n\nError 503 Backend fetch failed\n\nBackend fetch failed\nGuru Meditation:\n\nXID: 68609318\n\nVarnish cache server\n--\nTatsuo Ishii\nSRA OSS, Inc. Japan\nEnglish: http://www.sraoss.c...
[ { "msg_contents": "Hi,\n\nI had an ALTER TABLE dependency problem reported to me. Here's a\nsimplified version of it:\n\nCREATE TABLE t (a INT, PRIMARY KEY(a));\nALTER TABLE t ADD CONSTRAINT t_fkey FOREIGN KEY (a) REFERENCES t(a) NOT VALID;\nALTER TABLE t VALIDATE CONSTRAINT t_fkey, ALTER a TYPE BIGINT;\n\nWhi...