threads
listlengths
1
2.99k
[ { "msg_contents": "INTENTION\n\nInspired by the effort to integrate JIT for executor acceleration I thought selected simple algorithms working with array-oriented data should be drastically accelerated by using SIMD instructions on modern hardware.\n\nI want to introduce this style of programming with the examp...
[ { "msg_contents": "Hi,\n\ncfbot now runs most tests on windows, the windows task is by far the slowest,\nand the task limitted most in concurrency [2]. Running tap tests is the\nbiggest part of that. This is a bigger issue on windows because we don't have\ninfrastructure (yet) to run tests in parallel.\n\nThere...
[ { "msg_contents": "Hi,\n\nOne of the complaints I sometimes hear from users and customers using \nPostgres to store JSON documents (as JSONB type, of course) is that the \nselectivity estimates are often pretty poor.\n\nCurrently we only really have MCV and histograms with whole documents, \nand we can deduce s...
[ { "msg_contents": "Hi,\n\nI note it's not yet possible to INSERT INTO an Updatable View using the ON CONFLICT feature.\n\nOne imaginable pattern is when a user wants to refactor by renaming a table,\nbut for some reason cannot refactor some specific application and want to\nallow it to continue to use the table...
[ { "msg_contents": "Yesterday I pushed what I thought was a quick fix for bug #17350 [1].\nIn short, if we have an index that stores both \"x\" and \"f(x)\",\nwhere the \"x\" column can be retrieved in index-only scans but \"f(x)\"\ncannot, it's possible for the planner to generate an IOS plan that\nnonetheless ...
[ { "msg_contents": "The attached patch corrects a very minor typographical inconsistency\nwhen date_part is invoked with invalid units on time/timetz data vs\ntimestamp/timestamptz/interval data.\n\n(If stuff like this is too minor to bother with, let me know and I'll\nhold off in the future... but since this wa...
[ { "msg_contents": "Hi Hackers,\n\nI noticed that pg_receivewal fails to stream when the partial file to write\nis not fully initialized and fails with the error message something like\nbelow. This requires an extra step of deleting the partial file that is not\nfully initialized before starting the pg_receivewa...
[ { "msg_contents": "Hi,\n\nWhile reading some code around I noticed that b04aeb0a053e7 added a MaxLockMode\nbut didn't update the lock methods initialization. It shouldn't make much\ndifference in the long run but some consistency seems better to me.", "msg_date": "Mon, 3 Jan 2022 14:47:22 +0800", "msg_...
[ { "msg_contents": "Hi,\n\nplanner hook is frequently used in monitoring and advising extensions. \nThe call to this hook is implemented in the way, that the \nstandard_planner routine must be called at least once in the hook's call \nchain.\n\nBut, as I see in [1], it should allow us \"... replace the planner \...
[ { "msg_contents": "Hi,\n\nWhile browsing the code, noticed the extra spaces after the function name.\nRemoved the same in the attached patch.\n\n-- \n--\n\nThanks & Regards,\nSuraj kharage,\n\n\n\nedbpostgres.com", "msg_date": "Mon, 3 Jan 2022 18:35:55 +0530", "msg_from": "Suraj Kharage <suraj.kharage@e...
[ { "msg_contents": "I tried debugging PostgreSQL to better understand how it works. It worked\nfine a day ago, but for some reason I have issues with debugging now:\n\n- If I put a breakpoint before I start the process then everything works\nfine\n- But if I put/remove a breakpoint after it's fully initialized -...
[ { "msg_contents": "The attached proposed patch removes some ancient infrastructure for\nmanually testing hot standby. I doubt anyone has used this in years,\nbecause AFAICS there is nothing here that's not done better by the\nsrc/test/recovery TAP tests. (Or if there is, we ought to migrate\nit into the TAP t...
[ { "msg_contents": "I'm trying to write a C-language function to be compiled into a\nshared module to be loaded by Postgres. In it, I have the OID of a function\nand I need to get information from the pg_proc table.\n\nSo far, I have:\n\nHeapTuple procTuple;\n> Form_pg_proc procStruct;\n\n\n> procTuple = SearchS...
[ { "msg_contents": "Hello hackers,\n\nWhile testing the index-only scan fix, I've discovered that replacing\nthe index-only scan with the index scan changes contrib/btree_gist\noutput because index-only scan for btree_gist returns a string without\npadding.\nA simple demonstration (based on btree_gist/sql/char.s...
[ { "msg_contents": "On master, doc/src/sgml/biblio.sgml has a biblioentry for a pdf from ISO:\n\n\"Information technology — Database languages — SQL Technical Reports —\nPart SQL Notation support 6: (JSON) for JavaScript Object\"\n\nThat pdf was a 2017 edition but the url now points to .zip that no \nlonger exi...
[ { "msg_contents": "Hi,\n\nFor genam.c:\n\n+ UseDirtyCatalogSnapshot = dirtysnap;\n+\nDoes the old value of UseDirtyCatalogSnapshot need to be restored at the\nend of the func ?\n\n+systable_recheck_tuple(SysScanDesc sysscan, HeapTuple tup, bool dirtysnap)\n\nConsidering that parameter dirtysnap is a bool, I t...
[ { "msg_contents": "Hi,\n\nPostgres server emits a message at DEBUG1 level when it skips a\ncheckpoint. At times, developers might be surprised after figuring out\nfrom server logs that there were no checkpoints happening at all\nduring a certain period of time when DEBUG1 messages aren't captured.\nHow about em...
[ { "msg_contents": "Hi,\n\nthis is more a cosmetic concern, but anyway: running initdb gives this output:\n\n...\ncreating configuration files ... ok\nrunning bootstrap script ... ok\nperforming post-bootstrap initialization ... ok\nsyncing data to disk ... ok\n\ninitdb: warning: enabling \"trust\" authenticatio...
[ { "msg_contents": "Commit 6ce16088b caused me to look at pgoutput.c's handling of\ncache invalidations, and I was pretty appalled by what I found.\n\n* rel_sync_cache_relation_cb does the wrong thing when called for\na cache flush (i.e., relid == 0). Instead of invalidating all\nRelationSyncCache entries as it...
[ { "msg_contents": "I saw one (and then went looking and found some more) enum with a\ntrailing comma.\n\nThese are quite rare in the PG src, so I doubt they are intentional.\n\nPSA a patch to remove the trailing commas for all that I found.\n\n------\nKind Regards,\nPeter Smith.\nFujitsu Australia", "msg_da...
[ { "msg_contents": "Hi all,\n\n$subject is taken care of by Bruce every year, but this has not been\ndone yet. That's one run of src/tools/copyright.pl on HEAD (as of the\nattached) combined with updates of ./doc/src/sgml/legal.sgml and\n./COPYRIGHT in the back-branches, so that's straight-forward.\n\nBruce, ar...
[ { "msg_contents": "Dear all\n\nWhen ingesting mobility (IoT) data into MobilityDB\nhttps://mobilitydb.com/\nwe transform very wide (2K attributes) car mobility data of high frequence\n(every tenth of a second) from flat format (e.g. CSV) into MobilityDB\nformat in which there is a single record per trip and eac...
[ { "msg_contents": "Hi,\n\nIt seems like the two functions ReplicationSlotsComputeRequiredLSN and\nReplicationSlotsComputeLogicalRestartLSN more or less does the same\nthing which makes me optimize (saving 40 LOC) it as attached. I'm\npretty much okay if it gets rejected on the grounds that it creates a\nlot of ...
[ { "msg_contents": "Hi,\n\nWhile checking the PQping code I noticed that pg_ctl does not rely on PQping\nsince commit f13ea95f9e4 (v10) so the attached patch removes a comment from\ninternal_ping().\n\n\n--\nEuler Taveira\nEDB https://www.enterprisedb.com/", "msg_date": "Thu, 06 Jan 2022 21:33:07 -0300", ...
[ { "msg_contents": "Refactor tar method of walmethods.c to rely on the compression method\n\nSince d62bcc8, the directory method of walmethods.c uses the compression\nmethod to determine which code path to take. The tar method, used by\npg_basebackup --format=t, was inconsistent regarding that, as it relied\non...
[ { "msg_contents": "Hi,\n\nWhen running the plcheck in Windows we get the following warning, it is\nvisible in the cfbots [1]:\n\nUse of uninitialized value $1 in concatenation (.) or string at\nsrc/tools/msvc/vcregress.pl line 350.\n\nThis points to mangle_plpython3 subroutine. The attached patch addresses\nthe...
[ { "msg_contents": "to Dear Hackers,\n\nI decided to we need basic e-mail sender in command line when coding \nsomethings and asking one-line questions.\n\nThanks, Ali Koca", "msg_date": "Fri, 7 Jan 2022 15:48:24 +0300", "msg_from": "Ali Koca <kinetixcicocuk@gmail.com>", "msg_from_op": true, "msg...
[ { "msg_contents": "to Dear Hackers,\n\nI decided to we need basic e-mail sender in command line when coding \nsomethings and asking one-line questions.\n\nAli Koca", "msg_date": "Fri, 7 Jan 2022 19:55:03 +0300", "msg_from": "Ali Koca <kinetixcicocuk@gmail.com>", "msg_from_op": true, "msg_subject...
[ { "msg_contents": "Hi,\nIn contrib/pgcrypto/pgcrypto.c :\n\n err = px_combo_init(c, (uint8 *) VARDATA_ANY(key), klen, NULL, 0);\n\nNote: NULL is passed as iv.\n\nWhen combo_init() is called,\n\n if (ivlen > ivs)\n memcpy(ivbuf, iv, ivs);\n else\n memcpy(ivbuf, iv, ivlen);\...
[ { "msg_contents": "Hi,\n\nI am using Postgres' full text search since some time now and overall it's working really well for me. However one issue I have is that ts_headline highlights partial matches of FOLLOWED BY (<->) expressions, e.g.\n\nSELECT ts_headline('some words and some more words', to_tsquery('some...
[ { "msg_contents": "On 5/1/2022 10:13, Tom Lane wrote:\n > I feel like we need to get away from the idea that there is just\n > one query hash, and somehow let different extensions attach\n > differently-calculated hashes to a query. I don't have any immediate\n > ideas about how to do that in a reasonably inex...
[ { "msg_contents": "Hi,\r\n\r\n\r\n\r\nSome time ago,the following patch clean up error handling in pg_basebackup's walmethods.c.\r\nhttps://github.com/postgres/postgres/commit/248c3a9\r\n\r\n\r\nThis patch keep the error state in the DirectoryMethodData struct,\r\nin most functions, the lasterrno&nbsp;is set co...
[ { "msg_contents": "Hi,\n\nIt looks like there's a typo, attaching a tiny patch to fix it.\n\n *\n * When doing logical decoding - which relies on using cmin/cmax of catalog\n * tuples, via xl_heap_new_cid records - heap rewrites have to log enough\n- * information to allow the decoding backend to updates its...
[ { "msg_contents": "Hi,\n\nI've been annoyed for quite a while that pg_upgrade tests lists all copied\nfiles - it's ~1500 lines or so in the make -C src/bin/pg_ugprade check case\n(obviously for a cluster with more objects it's basically unlimited). But\nwhenever I was looking into something about the issue, I d...
[ { "msg_contents": "Hi hackers,\n\nDue to DST and also changes in local laws, there could be gaps in\nlocal time [1]. For instance, 1 second after \"2011-03-27 01:59:59 MSK\"\ngoes \"2011-03-27 03:00:00 MSK\":\n\n```\nselect (timestamptz '2011-03-27 01:59:59 MSK') at time zone 'MSK';\n timezone\n-----------...
[ { "msg_contents": "I think this patch is necessary:\n\ndiff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l\nindex 07fee80a9c..3529b2ea86 100644\n--- a/src/interfaces/ecpg/preproc/pgc.l\n+++ b/src/interfaces/ecpg/preproc/pgc.l\n@@ -753,7 +753,7 @@ cppline\t\t\t{space}*#([^i][A-Za-z...
[ { "msg_contents": "Hello,\n\nA colleague of mine was surprised to discover the following statements raised \nan error:\n\npostgres=# CREATE TYPE abc_enum AS ENUM ('a', 'b', 'c');\nCREATE TYPE\npostgres=# CREATE DOMAIN abc_domain AS abc_enum; \nCREATE DOMAIN\npostgres=# SELECT 'a'::abc_domain = 'a'::abc_...
[ { "msg_contents": "Hi Hackers,\n\nI am trying to migrate my postgres to linux, as we are moving away from\nwindows.\nI am trying both dump/restore and logical decoding, but people are not\nhappy with performance.\nIs there a way/tooling I can use around WAL shipping/physical replication\nhere ?\n\n\nthanks\nRa...
[ { "msg_contents": "While trying to make sense of some recent buildfarm failures,\nI happened to notice that the default query issued by\nthe TAP sub wait_for_catchup looks like\n\nSELECT pg_current_wal_lsn() <= replay_lsn AND state = 'streaming' FROM pg_catalog.pg_stat_replication WHERE application_name = '<wha...
[ { "msg_contents": "Hi all,\n\nThis is a follow-up of the work done in b69aba7 for cryptohashes, but\nthis time for HMAC. The main issue here is related to SCRAM, where we\nhave a lot of code paths that have no idea about what kind of failure\nis happening when an error happens, and this exists since v10 where\...
[ { "msg_contents": "Please see attached a small patch to document why some text-processing\nfunctions are marked as leakproof, while some others are not.\n\nThis is more or less a verbatim copy of Tom's comment in email thread at\n[1].\n\nI could not find an appropriate spot to place these comments, so I placed\...
[ { "msg_contents": "Hi All,\n\nI have a very basic question related to replication slots. Why should\nthe master/primary server maintain the replication slot info like lsn\ncorresponding to each standby server etc. Instead, why can't each\nstandby server send the lsn that it needs, and master/primary server\nmai...
[ { "msg_contents": "Hi\n\nAttached a patch to improve the tab completion for foreigh table.\n\nAlso modified some DOC description of ALTER TABLE at [1] in according with CREATE INDEX at [2].\n\nIn [1], we use \"ALTER INDEX ATTACH PARTITION\"\nIn [2], we use \"ALTER INDEX ... ATTACH PARTITION\"\n\nI think the for...
[ { "msg_contents": "I have created a patch to enable the Boyer-More-Horspool search\nalgorithm (B-M-H) for LIKE queries.\n\nB-M-H needs to initialize the skip table and keep it during SQL execution.\nIn this patch, flinfo->fn_extra is used to keep the skip table.\n\nThe conditions under which B-M-H can be used a...
[ { "msg_contents": "I'm working on a table access method that stores indexes in a structure\nthat looks like an LSM tree. Changes get written to small segment files,\nwhich then get merged into larger segment files.\n\nIt's really tough to manage these files using existing fork/buffer/page\nfiles, because when y...
[ { "msg_contents": "Hi,\n\nThe January commitfest should have started almost two weeks ago, but given that\nnothing happened until now I think that it's safe to assume that either\neveryone forgot or no one wanted to volunteer.\n\nI'm therfore volunteering to manage this commitfest, although since it's\nalready ...
[ { "msg_contents": "Hi, hackers!\n\nI've noticed that on my branch with amcheck improvements cfbot on windows\nserver 2019 fails stream replication test.\nhttps://cirrus-ci.com/task/5353503093686272\n\nI don't see any relation of it to the changes in my patch. Furthermore it\nalso fails on the other СF branch\nh...
[ { "msg_contents": "The existing PQcancel API is using blocking IO. This makes PQcancel\nimpossible to use in an event loop based codebase, without blocking the\nevent loop until the call returns.\n\nThis patch adds a new cancellation API to libpq which is called\nPQcancelConnectionStart. This API can be used to...
[ { "msg_contents": "\nWhile testing a buildfarm module to automate running headerscheck and\ncpluspluscheck, I encountered a bunch of errors like this:\n\nJan 12 09:35:57 In file included from\n/home/andrew/bf/root/HEAD/pgsql.build/../pgsql/src/include/port/atomics.h:70,\nJan 12 09:35:57                  from\n/...
[ { "msg_contents": "Hi everyone,\n\nI've adapted the work that Konstantina did for pl/julia as part of her\nGSOC project to add an example of handling triggers to plsample. Which\nwas based from pl/tcl and pl/perl.\n\nOne aspect that I'm not sure about is whether the example should be\nduplicating code (as it i...
[ { "msg_contents": "Hello Postgres friends,\n\nI've got a question about the wire protocol; the relevant text in the docs\nseems a bit ambiguous to me. If the processing of a Sync message fails\n(e.g. because the commit of the current transaction fails), is the backend\nallowed to respond with an ErrorResponse, ...
[ { "msg_contents": "\nFor some considerable time the recovery tests have been at best flaky on\nWindows, and at worst disastrous (i.e. they can hang rather than just\nfail). It's a problem I worked around on my buildfarm animals by\ndisabling the tests, hoping to find time to get back to analysing the\nproblem. ...
[ { "msg_contents": "After attempting to use gin and gist indexes for our queries that run against citext columns, our team has come up with the following to make our queries run from 2 mins to 25ms;CREATE EXTENSION pg_trgmCREATE EXTENSION btree_gin --may not be needed, checking\nCREATE OPERATOR CLASS gin_trgm_op...
[ { "msg_contents": "Hello All,\n\nIt looks like we could have different isolation levels on primary and\nstandby servers in the context of replication. If the primary crashes\nand a standby server is made as primary, there could be change in\nquery results because of isolation levels. Is that expected?\n\nThanks...
[ { "msg_contents": "This doesn't work anymore:\n\ncreate type e2 as enum ('foo', 'bar');\nalter type e2 rename value 'b<TAB>\n\nThis now results in\n\nalter type e2 rename value 'b'\n\nBisecting blames\n\ncommit cd69ec66c88633c09bc9a984a7f0930e09c7c96e\nAuthor: Tom Lane <tgl@sss.pgh.pa.us>\nDate: Thu Jan 23 11...
[ { "msg_contents": "Hi,\n\nI was re-reviewing the proposed batch of GUCs for controlling the SLRU\ncache sizes[1], and I couldn't resist sketching out $SUBJECT as an\nobvious alternative. This patch is highly experimental and full of\nunresolved bits and pieces (see below for some), but it passes basic\ntests a...
[ { "msg_contents": "Hello,\n\nI am using the libpq to consume a replication slot.\nVery rarely, i would get a very strange error that i can't find any\ninformation on.\nIt is not mentioned in any documentation and i don't know under what\nconditions it triggers.\nAny help is appreciated.\n\nThe function i am cal...
[ { "msg_contents": "Hi,\n\nWhile looking at sort_inner_and_outer() I was rather confused what is\nstored in all_pathkeys, because the code does this:\n\n List *all_pathkeys;\n\n ...\n\n all_pathkeys = select_outer_pathkeys_for_merge(root,\n extra->mergeclause_list,\...
[ { "msg_contents": "Hi,\n\nThe function CreateCheckPoint is specified as CreateCheckpoint in some\nof the code comments whereas in other places it is correctly\nmentioned. Attaching a tiny patch to use CreateCheckPoint consistently\nacross code comments.\n\nRegards,\nBharath Rupireddy.", "msg_date": "Fri, 14...
[ { "msg_contents": "Hello,\n\nThere are some places in the pg_state_statement's regress test where the \nbool result of comparison between the number of rows obtained and \nwal_records generated by query should be displayed.\nNow counting the number of wal_records for some query in \npg_state_statement is done b...
[ { "msg_contents": "Hi Hackers,\r\nI've been working with commitTS code recently and during my testing I \r\nfound a bug when writing commit timestamps for subxids. Normally for \r\nsub-transaction commit timestamps in TransactionTreeSetCommitTsData(),\r\nwe iterate through the subxids until we find one that is ...
[ { "msg_contents": "I'd recently been thinking about monitoring how many bytes behind a\nlogical slot was and realized that's not really possible to compute\ncurrently. That's easy enough with a physical slot because we can get\nthe current WAL LSN easily enough and the slot exposes the current LSN\npositions of...
[ { "msg_contents": "Hi Hacker\n\nSolaris and FreeBSD supports large/super pages, and can be used \nautomatically by applications.\n\nSeems Postgres can't use the large/super pages on Solaris and FreeBSD \nos(I think can't use the large/super page HPUX and AIX), is there anyone \ncould take a look?\n\nfollowing i...
[ { "msg_contents": "Hi,\n\nI was wondering in [1] what we could do about the slowest tests on\nwindows.\n\nOn 2021-12-31 11:25:28 -0800, Andres Freund wrote:\n> Picking a random successful cfbot run [1] I see the following tap tests taking\n> more than 20 seconds:\n>\n> 67188 ms pg_basebackup t/010_pg_basebackup...
[ { "msg_contents": "The current hash_mem_multiplier default is 1.0, which is a fairly\nconservative default: it preserves the historic behavior, which is\nthat hash-based executor nodes receive the same work_mem budget as\nsort-based nodes. I propose that the default be increased to 2.0 for\nPostgres 15.\n\nArgu...
[ { "msg_contents": "Hello,\n\nI encountered a minor road bump when checking out the pg source today. The Makefile's all target includes the following help message if GNUmakefile isn't available: \n\n echo \"You need to run the 'configure' program first. See the file\"; \\\n echo \"'INSTALL' for installation in...
[ { "msg_contents": "Hi,\n\nShould archive_command being blank when archiving is enabled result in\na fatal error? This doesn't even produce a warning when restarting,\njust an entry in the log when it goes to archive a WAL segment, and\nfinds the archive_command is empty.\n\nIs there a valid scenario where some...
[ { "msg_contents": "pg_upgrade: Preserve relfilenodes and tablespace OIDs.\n\nCurrently, database OIDs, relfilenodes, and tablespace OIDs can all\nchange when a cluster is upgraded using pg_upgrade. It seems better\nto preserve them, because (1) it makes troubleshooting pg_upgrade\neasier, since you don't have t...
[ { "msg_contents": "Hi,\n\nThis patch is important for postgresql 13.5 and 14.1 if you want to use\nthem with Python-3.11.\n\nMiklos", "msg_date": "Mon, 17 Jan 2022 20:58:10 +0100", "msg_from": "\"Horvath, Miklos\" <mikloshorvath@blackpanther.hu>", "msg_from_op": true, "msg_subject": "Python-3.11...
[ { "msg_contents": "Hi,\n\nWhile reviewing another patch, I noticed that it slightly adjusted the\ntreatment of datlastsysoid. That made me wonder what datlastsysoid is\nused for, so I started poking around and discovered that the answer,\nat least insofar as I can determine, is \"nothing\". The documentation\nc...
[ { "msg_contents": "Hi\n\n From the documentation for pg_replication_origin_oid() [1]:\n\n> Looks up a replication origin by name and returns the internal ID.\n> If no such replication origin is found an error is thrown.\n\nHowever, it actually returns NULL if the origin does not exist:\n\n postgres=# SELECT ...
[ { "msg_contents": "Hello\n\nWe know that PostgreSQL doesn't support a single relation size over 32TB, limited by the MaxBlockNumber. But if we just 'insert into' one relation over 32TB, it will get an error message 'unexpected data beyond EOF in block 0 of relation' in ReadBuffer_common. The '0 block' is from m...
[ { "msg_contents": "In [1] capacity for $SUBJECT was added to most of the batch scripts, but\nclean.bat was not included. I propose to do so with the attached patch.\n\nBy the way, are pgbison.bat and pgflex.bat directly called anywhere?\n\n[1]\nhttps://www.postgresql.org/message-id/2b7a674b-5fb0-d264-75ef-ecc7a...
[ { "msg_contents": "Modify pg_basebackup to use a new COPY subprotocol for base backups.\n\nIn the new approach, all files across all tablespaces are sent in a\nsingle COPY OUT operation. The CopyData messages are no longer raw\narchive content; rather, each message is prefixed with a type byte\nthat describes i...
[ { "msg_contents": "Hello,\r\n\r\nThe doc mentions that standby_slot_names is to only be used for waiting on physical slots. However, it seems like we calculate the flush_pos for logical slots as well in wait_for_standby_confirmation?\r\n\r\nRe-posting some of my previous comment since it seems like it got lost....
[ { "msg_contents": "Hi.\n\nI stumbled onto a small quirk/bug in the tab-complete code.\n\nThere are some places that suggest tab completions using the current\ntable columns. These are coded like:\nCOMPLETE_WITH_ATTR(prev2_wd, \"\");\n\nThe assumption is that the prev2_wd represents the table to select from.\n\n...
[ { "msg_contents": "\nTo use exclusion constraints in practice, you often need to install the \nbtree_gist extension, so that you can combine for example a range type \ncheck and normal scalar key columns into one constraint.\n\nThe currently proposed \"application time\" feature [0] (also known more \ngenerally...
[ { "msg_contents": "Hey.\n\nI am facing an issue when I try to run the following command\n\nCOPY <table_name> FROM <file> WITH DELIMITER E',’;\n\nThis file, is rather large, it's around 178GBs. \n\nWhen I try to run this COPY command I get the following error:\n\nERROR: out of memory\nDETAIL: Failed on request...
[ { "msg_contents": "Hi, hackers\n\nWhen I read the code of COPY ... FROM ..., I find there is a redundant\nMemoryContextSwith() in BeginCopyFrom(). In BeginCopyFrom, it creates\na COPY memory context and then switches to it, in the middle of this\nfunction, it switches to the oldcontext and immediately switches...
[ { "msg_contents": "Hello,\n\nFor test purposes I need to compile PostgreSQL 14.1 using a 16kb blocksize.\n\nCFLAGS=\"-D WINVER=0x0600 -D _WIN32_WINNT=0x0600\" LIBS=\"-ladvapi32\"\n ./configure --host=x86_64-w64-mingw32 --with-blocksize=16\n--with-wal-blocksize=16 --with-openssl --with-libxml\n--prefix=/c/postgr...
[ { "msg_contents": "autovacuum, as it exists today, has some reasonable - though imperfect\n- heuristics for deciding which tables need to be vacuumed or\nanalyzed. However, it has nothing to help it decide which tables need\nto be vacuumed or analyzed first. As a result, when it's configured\naggressively enoug...
[ { "msg_contents": "Greetings -hackers,\n\nOur beloved Google Summer of Code is back for 2022! They have once again \nchanged some of how GSoC is going to work for this year, for a variety \nof reasons, so please be sure to read this email and posts linked for \nthe updates if you're interested! In short, this y...
[ { "msg_contents": "Hi folks,\n\nWe are struggling to figure out what is going on. We are migrating from PostgreSQL 9.6 to PostgreSQL 13 w/ PostGIS. Our 9.6 version was compiled from source and the new version (13) was installed using Yum. BTW, the new version is on a VM that has 16GB of memory, two cores, an...
[ { "msg_contents": "Respected sir\\mamI am Vrund V Shah, a computer science undergrad. I have just completed my 3rd semester at G H Patel College of Engineering & Technology. I am new to open source contribution but I am well aware of C/C++, SQL and I will learn Python before the end of the first week of Februar...
[ { "msg_contents": "Thomas Munro pointed out this failure to me on fairywren:\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=fairywren&dt=2022-01-21%2020%3A10%3A22\n\nHe theorizes that I need some perl2host magic in there, which may well\nbe true. But I also noticed this:\n\n# Running: pg_basebackup ...
[ { "msg_contents": "In fa66b6dee, Micheal fixed test.sh to work back to v11, so I suppose nobody is\ntrying to run it with older versions, as I was endeavored to do.\n\nWith the attached patch, I'm able to test upgrades back to v9.6.\n\nIn 9.5, there are regression diffs from CONTEXT lines from non-error message...
[ { "msg_contents": "Hi,\n\nThere's a bug in ProcArrayApplyRecoveryInfo, introduced by 8431e296ea, \nwhich may cause failures when starting a replica, making it unusable. \nThe commit message for 8431e296ea is not very clear about what exactly \nis being done and why, but the root cause is that at while processin...
[ { "msg_contents": "On a multi tenant server, with hundreds of schemas with same structure, I\nhave an audit table shared with all of them. When any record is deleted I\nadd on this table tenant, table and PK values, just that. Something like\nthis:\n\ndrop table if exists audit;\ncreate table audit(id serial pr...
[ { "msg_contents": "While chasing something else, I was surprised to learn that the\nAutoconf project has started to make releases again. There are\n2.70 (2020-12-08) and 2.71 (2021-01-28) versions available at\nhttps://ftp.gnu.org/gnu/autoconf/\n\nRight now, I'm not sure we care; there seems to be more\nenthus...
[ { "msg_contents": "While investigating for 353708e1f, I happened to notice that pg_dump's\nbinary_upgrade_set_type_oids_by_type_oid() contains\n\n PQExpBuffer upgrade_query = createPQExpBuffer();\n ...\n appendPQExpBuffer(upgrade_query,\n \"SELECT typarray \"\n ...\n res = Ex...
[ { "msg_contents": "Most of this is new in v15 or doesn't affect user-facing docs so doesn't need\nto be backpatched.\n\nFeel free to ignore this for now and revisit in April...\n\n@Michael: I'm not sure what this is trying to say.\n1e9475694b0ae2cf1204d01d2ef6ad86f3c7cac8\n+ First, scan the directory where...
[ { "msg_contents": "There are many Makefile rules like\n\nfoo: bar\n\t./tool $< > $@\n\nIf the rule is interrupted (due to ^C or ENOSPC), foo can be 0 bytes or\npartially written, but won't be rebuilt until someone runs distclean or debugs\nit and removes the individual file, as I did for errcodes.h.\n\nIt'd be ...
[ { "msg_contents": "Hi,\n\nI was trying to build Postgres from source on my Mac (MacOS Monterey 12.1)\nand ran into an error when running configure.\n\n./configure\n\n\n...\n\nchecking for gcc option to accept ISO C99... unsupported\n\nconfigure: error: C compiler \"gcc\" does not support C99\n\n\nWhen I do gcc ...
[ { "msg_contents": "Hi,\n\nI am using Dynamic shared memory areas(DSA) to manage some variable\nlength shared memory, I've found that in some cases allocation fails even\nthough there are enough contiguous pages.\n\nThe steps to reproduce are as follows:\n1. create a dsa area with a 1MB DSM segment\n2. set its s...
[ { "msg_contents": "Server-side gzip compression.\n\npg_basebackup's --compression option now lets you write either\n\"client-gzip\" or \"server-gzip\" instead of just \"gzip\" to specify\nwhere the compression should be performed. If you write simply\n\"gzip\" it's taken to mean \"client-gzip\" unless you also ...
[ { "msg_contents": "Hi,\n\nRight now we run tap tests separately in each directory. Which is one of the\nreasons the make output is so unreadable - instead of having one 'prove'\noutput listing all tests, we get a lot of different prove outputs, all\ninterspersed. And it severely limits parallelism on windows ri...
[ { "msg_contents": "Hi Juan José,\n\nI a bit tested this feature and have small doubts about block:\n\n+/*\n+ * Windows will use hyphens between language and territory, where POSIX\n+ * uses an underscore. Simply make it POSIX looking.\n+ */\n+ hyphen = strchr(localebuf, '-');\n+ if (hyphen)\n+ *hyphen = '_';...
[ { "msg_contents": "Hi,\n\n\n\n      I Recently noted that expressions involved in either side of HashCondition in HashJoin is not being pushed down to foreign scan. This leads to evaluation of the same expression multiple times - (for hashvalue computation from hashkeys, for HashCondition expr evaluation, for P...
[ { "msg_contents": "Hi,\n\nI was looking the shared memory stats patch again. The rebase of which\ncollided fairly heavily with the addition of pg_stat_subscription_workers.\n\nI'm concerned about the design of pg_stat_subscription_workers. The view was\nintroduced in\n\n\ncommit 8d74fc96db5fd547e077bf9bf4c3b67f...
[ { "msg_contents": "Hi,\n\nCommit 6e0cb3dec1 allowed postgres_fdw.application_name to include escape sequences %a (application name), %d (database name), %u (user name) and %p (pid). In addition to them, I'd like to support the escape sequence (e.g., %C) for cluster name there. This escape sequence is helpful to...