threads
listlengths
1
2.99k
[ { "msg_contents": "FYI, I wasn't yet able to make this work yet.\n(gdb) print *segment_map->header\nCannot access memory at address 0x7f347e554000\n\nHowever I *did* reproduce the error in an isolated, non-production postgres\ninstance. It's a total empty, untuned v11.1 initdb just for this, running ONLY\na fe...
[ { "msg_contents": "Here is a patch that makes more use of unconstify() by replacing casts\nwhose only purpose is to cast away const. Also a preliminary patch to\nremove casts that were useless to begin with.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support...
[ { "msg_contents": "I'm wondering whether we should phase out the use of the ossp-uuid\nlibrary? (not the uuid-ossp extension) We have had preferred\nalternatives for a while now, so it shouldn't be necessary to use this\nanymore, except perhaps in some marginal circumstances? As we know,\nossp-uuid isn't main...
[ { "msg_contents": "As discussed in [0], should we restrict access to pg_stat_ssl to\nsuperusers (and an appropriate pg_ role)?\n\nIf so, is there anything in that view that should be made available to\nnon-superusers? If not, then we could perhaps do this via a simple\npermission change instead of going the ro...
[ { "msg_contents": "This was suggested in\n\nhttps://www.postgresql.org/message-id/11766.1545942853%40sss.pgh.pa.us\n\nI also adjusted usage() to match. There might be other scripts that\ncould use this treatment, but I figure this is a good start.\n\n-- \nJohn Naylor https://www.2ndQuadrant.com/\...
[ { "msg_contents": "Hi Hackers,\n\nDoes increase in Transaction commits per second means good query\nperformance?\nWhy I asked this question is, many monitoring tools display that number of\ntransactions\nper second in the dashboard (including pgadmin).\n\nDuring the testing of bunch of queries with different se...
[ { "msg_contents": "While reviewing [1] it occurred to me that it might not be clean that\npostgresGetForeignUpperPaths() adds ORDER BY to the remote query when it\nreceives stage=UPPERREL_GROUP_AGG. Shouldn't that only happen for\nUPPERREL_ORDERED? Thus the processing of UPPERREL_ORDERED would have to be\nable ...
[ { "msg_contents": "While I've been staring at dependency.c, I've realized that this bit\nin findDependentObjects is unsafe:\n\n /*\n * First, release caller's lock on this object and get\n * deletion lock on the owning object. (We must release\n * ...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 15623\nLogged by: Roger Curley\nEmail address: rocurley@gmail.com\nPostgreSQL version: 11.1\nOperating system: Ubuntu 11.1\nDescription: \n\nSteps to reproduce (run in psql shell):\r\n```\r\nDROP T...
[ { "msg_contents": "Hi All,\n\nWhen \"ON SELECT\" rule is created on a table without columns, it\nsuccessfully converts a table into the view. However, when the same is\ndone using CREATE VIEW command, it fails with an error saying: \"view\nmust have at least one column\". Here is what I'm trying to say:\n\n-- c...
[ { "msg_contents": "By default, the fallback_application_name for a physical walreceiver is\n\"walreceiver\". This means that multiple standbys cannot be\ndistinguished easily on a primary, for example in pg_stat_activity or\nsynchronous_standby_names.\n\nI propose, if cluster_name is set, use that for\nfallbac...
[ { "msg_contents": "A couple months ago, I implemented prepared statements for PyGreSQL. While\nupdating our application in advance of their release with that feature, I\nnoticed that our query logs were several times larger.\n\nWith non-prepared statements, we logged to CSV:\n|message | SELECT 1...
[ { "msg_contents": "Hi list,\n\nI've attached a patch that implements SortSupport for the\ninet/cidr types. It has the effect of typically reducing\nthe time taken to sort these types by ~50-60% (as measured\nby `SELECT COUNT(DISTINCT ...)` which will carry over to\ncommon operations like index creation, `ORDER ...
[ { "msg_contents": "Why don't we provide a small reserved OID range that can be used by\npatch authors temporarily, with the expectation that they'll be\nreplaced by \"real\" OIDs at the point the patch gets committed? This\nwould be similar the situation with catversion bumps -- we don't\nexpect patches that wi...
[ { "msg_contents": "Current sequence of operations for drop database (dropdb())\n1. Start Transaction\n2. Make catalog changes\n3. Drop database buffers\n4. Forget database fsync requests\n5. Checkpoint\n6. Delete database directory\n7. Commit Transaction\n\nProblem\nThis sequence is unsafe from couple of fronts...
[ { "msg_contents": "... are committed at\n\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=5996cfc4665735a7e6e8d473bd66e8b11e320bbb\n\nPlease send comments/corrections by Sunday.\n\n\t\t\tregards, tom lane\n\n", "msg_date": "Fri, 08 Feb 2019 20:19:06 -0500", "msg_from": "Tom Lane <tgl...
[ { "msg_contents": "I've wondered for some time whether we couldn't make a useful\nreduction in the run time of the PG regression tests by looking\nfor scripts that run significantly longer than others in their\nparallel groups, and making an effort to trim the runtimes of\nthose particular scripts.\n\nThe first...
[ { "msg_contents": "Apparently, whoever went through indxpath.c to substitute nkeycolumns\nfor ncolumns was not paying attention. As far as I can tell, the\n*only* place in there where it's correct to reference ncolumns is in\ncheck_index_only, where we determine which columns can be extracted from\nan index-on...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 15629\nLogged by: Shouyu Luo\nEmail address: syluo1990@hotmail.com\nPostgreSQL version: 11.0\nOperating system: Ubuntu\nDescription: \n\nhttps://www.postgresql.org/docs/current/ddl-partitioning.htm...
[ { "msg_contents": "Hello,\n\n step lsto: SET lock_timeout = 5000; SET statement_timeout = 6000;\n step update: DELETE FROM accounts WHERE accountid = 'checking'; <waiting ...>\n step update: <... completed>\n-ERROR: canceling statement due to lock timeout\n+ERROR: canceling statement due to statement timeout\...
[ { "msg_contents": "nightjar just did this:\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=nightjar&dt=2019-02-11%2004%3A33%3A07\n\nThe critical bit seems to be that the publisher side of the\n010_truncate.pl test failed like so:\n\n2019-02-10 23:55:58.765 EST [40771] sub3 LOG: statement: BEGIN READ...
[ { "msg_contents": "What is the scope of logical replication if I cannot make recovery from\npg_basebackup?\n\nin this example:\nhttps://gist.github.com/vadv/e55fca418d6a14da71f01a95da493fae I get\nlogically unsynchronized data at the subscriber and publisher, but I'm not\ntold anything about it in the log.\n\nD...
[ { "msg_contents": "Hello hackers,\n\nGrigory noticed that one of our utilities has very slow performance when \nxlogreader reads zlib archives. We found out that xlogreader sometimes \nreads a WAL file block twice.\n\nzlib has slow performance when you read an archive not in sequential \norder. I think reading ...
[ { "msg_contents": "Hello,\n\nThe attached patch speeds up transaction completion when any prior transaction accessed many relations in the same session.\n\nThe transaction records its own acquired lock information in the LOCALLOCK structure (a pair of lock object and lock mode). It stores LOCALLOCKs in a hash ...
[ { "msg_contents": "Hi Hackers,\n\nDuring the testing allow group access permissions on the standby database\ndirectory,\none of my colleague found the issue, that pg_basebackup doesn't verify\nwhether the existing data directory has the required permissions or not?\nThis issue is not related allow group access ...
[ { "msg_contents": "Peter Eisentraut wrote:\n> I'm concerned with how this would affect the future maintenance of this\n> code. You are introducing a whole separate code path for PMDK beside\n> the normal file path (and it doesn't seem very well separated either).\n> Now everyone who wants to do some surgery in...
[ { "msg_contents": "I stumbled upon this question:\n\n https://dba.stackexchange.com/questions/229413\n\nin a nutshell: the bloom index is not used with the example from the manual. \n\nThe bloom index is only used if either Seq Scan is disabled or if the random_page_cost is set to 1 (anything about 1 trigger...
[ { "msg_contents": "I was just perusing our PDF docs for the first time in ages and\nrealized that of the 3,400+ pages of docs there's about 1,000 pages of\nrelease notes in it.... That seems like a bit overkill.\n\nI love having the old release notes online but perhaps they can be\nsomewhere other than the main...
[ { "msg_contents": "Hi all,\n\nI hit an issue yesterday where I was quickly nearing XID wraparound on a\ndatabase due to a temp table being created in a session which was then left\nIDLE out of transaction for 6 days.\n\nI solved the issue by tracing the owner of the temp table back to a session\nand terminating...
[ { "msg_contents": "Hi,\n\nAttached is a draft of the press release for the upcoming 2019-02-14\nrelease. Feedback & suggestions are welcome.\n\nThanks!\n\nJonathan", "msg_date": "Tue, 12 Feb 2019 22:00:15 -0500", "msg_from": "\"Jonathan S. Katz\" <jkatz@postgresql.org>", "msg_from_op": true, "ms...
[ { "msg_contents": "Hi,\n\nI think the following commit:\n\ncommit c6e4133fae1fde93769197379ffcc2b379845113\nAuthor: Tom Lane <tgl@sss.pgh.pa.us>\nDate: Wed Nov 7 12:12:56 2018 -0500\n\n Postpone calculating total_table_pages until after pruning/exclusion.\n...\n\n\nobsoleted a sentence in the comment above...
[ { "msg_contents": "Hi all,\n\nWhen lacking connection slots, the backend returns a simple \"sorry,\ntoo many clients\", which is something that has been tweaked by recent\ncommit ea92368 for WAL senders. However, the same message would show\nup for autovacuum workers and bgworkers. Based on the way autovacuum...
[ { "msg_contents": "Bulk operations like CREATE INDEX, ALTER TABLE, or bulk loads can create\na lot of WAL. A lot of WAL at once can cause delays in replication.\nFor synchronous replication, this can make seemingly unrelated sessions\nhang. But also for asynchronous replication, it will increase latency.\n\nO...
[ { "msg_contents": "Hi, hackers!\n\nWe have held education project at Sirius edu center (Sochi, Russia) with mentors from Yandex. The group of 5 students was working on improving the shared buffers eviction algorithm: Andrey Chausov, Yuriy Skakovskiy, Ivan Edigaryev, Arslan Gumerov, Daria Filipetskaya. I’ve been...
[ { "msg_contents": "Hi,\n\nreplace_text() in varlena.c builds the result in a StringInfo buffer,\nand finishes by copying it into a freshly allocated varlena structure\nwith cstring_to_text_with_len(), in the same memory context.\n\nIt looks like that copy step could be avoided by preprending the\nvarlena header...
[ { "msg_contents": "Hello,\n\nMy name is Abhishek Agrawal and I am a CSE UG student of IIT Patna.\n\nI am interested in doing GSOC with PostgreSQL if you guys are applying for it this year. If anyone could direct me to proper links or some channel to prepare for the same then it will be really helpful. I have so...
[ { "msg_contents": "Hi,\n\nTurns out in portions of the regression tests a good chunk of the\nruntime is inside AddNewAttributeTuples() and\nrecordMultipleDependencies()'s heap insertions. Looking at a few\nprofiles I had lying around I found that in some production cases\ntoo. ISTM we should use heap_multi_inse...
[ { "msg_contents": "One of the remarkably common user errors with pg_restore is users\nleaving off the -d option. (We get cases of it regularly on the IRC\nchannel, including one just now which prompted me to finally propose\nthis)\n\nI propose we add a new option: --convert-to-text or some such name, and\nthen ...
[ { "msg_contents": "Hi,\n\nIt would help the project to \"speed up partition planning\" [1] a bit if\ngrouping_planner didn't call query_planner directly. grouping_planner's\nmain role seems to be adding Path(s) for the \"top-level\" operations of the\nquery such as grouping, aggregation, etc. on top of Path(s)...
[ { "msg_contents": "Hi, \n\nI found some \"CREATE TABLE ... AS ... \" syntaxes could not be used in ECPG. \n\n[PROBLEM]\nFirst, ECPG command is failed when the source code (*.pgc) has \"IF NOT EXISTS\". \n-------------------------------------------------------------------\nEXEC SQL CREATE TABLE IF NOT EXISTS tes...
[ { "msg_contents": "Hi,\n\nWhile reviewing the foreign keys referencing partitioned tables patch, I\nnoticed that the parentConstr argument of ATAddForeignConstraint is\nrendered useless by the following commit:\n\ncommit 0325d7a5957ba39a0dce90835ab54a08ab8bf762\nAuthor: Alvaro Herrera <alvherre@alvh.no-ip.org>\...
[ { "msg_contents": "Hi,\n\nwhile hacking on pg_verify_checksums and looking at hexdumps, I noticed\nthat the TAP tests of pg_verify_checksums (and pg_basebackup from which\nit was copy-pasted) actually write \"305c305c[...]\" (i.e. literal\nbackslashes and number 0s) instead of \"000[...]\" into the to-be-\ncorr...
[ { "msg_contents": "Hello,\n\nI'm trying to add support for specifying parameters when using a COPY\ncommand to Npgsql (.NET's Postgres provider):\nhttps://github.com/npgsql/npgsql/pull/2332\n\nI've used the extended query protocol to send the COPY command. When I send\na COPY command without parameters, the bac...
[ { "msg_contents": "In <26527.1549572789@sss.pgh.pa.us> I speculated about adding a\nfunction to objectaddress.c that would probe to see if an object\nwith a given ObjectAddress (still) exists. I started to implement\nthis, but soon noticed that objectaddress.c doesn't cover all the\nobject classes that depende...
[ { "msg_contents": "Hello,\n\nIs there any interest in making autovacuum parameters available on a\ntablespace level in order to apply those to all vacuumable objects in the\ntablespace?\n\nWe have a set of tables running on ZFS, where autovacuum does almost no good\nto us (except for preventing anti-wraparound)...
[ { "msg_contents": "Hi,\n\nAs last year [1], I'll try to summarize all commitfest items in 2019-03\nto see which I think could realistically be put into 12.\n\nGoing through all non bugfix CF entries. Here's the summary for the\nentries I could stomach today:\n\n\nRFC: ready for committer\nNR: needs review\nWOA:...
[ { "msg_contents": "As mentioned in the near thread, I think there is another oversight in\nthe cost estimation for aggregate pushdown paths in postgres_fdw, IIUC.\n When costing an aggregate pushdown path using local statistics, we\nre-use the estimated costs of implementing the underlying scan/join\nrelation, ...
[ { "msg_contents": "We removed channel binding from PG 11 in August of 2018 because we were\nconcerned about downgrade attacks. Are there any plans to enable it for\nPG 12?\n\n-- \n Bruce Momjian <bruce@momjian.us> http://momjian.us\n EnterpriseDB http://enterprisedb.com\n\...
[ { "msg_contents": "I saw this error once last week while stress testing to reproduce earlier bugs,\nbut tentatively thought it was a downstream symptom of those bugs (since\nfixed), and now wanted to check that #15585 and others were no longer\nreproducible. Unfortunately I got this error while running same te...
[ { "msg_contents": "Hi,\n\nWhen explaining a query, I think knowing the actual rows and pages in addition\nto the operation type (e.g seqscan) would be enough to calculate the actual\ncost. The actual cost metric could be useful when we want to look into how off\nis the planner's estimation, and the correlation...
[ { "msg_contents": "Hi,\n\nI'm trying to use random_zipfian() for benchmarking of skewed data sets,\nand I ran head-first into an issue with rather excessive CPU costs.\n\nConsider an example like this:\n\n pgbench -i -s 10000 test\n\n pgbench -s 10000 -f zipf.sql -T 30 test\n\nwhere zipf.sql does this:\n\n \...
[ { "msg_contents": "Hello,\nWe've noticed that pgadmin 3.x / 4.x doesn't refresh server info like server version after restarting. It makes people confused.\nFor example,\n1. PgAdmin was rinning\n2. We upgraded postgres from 11.1 to 11.2\n3. PgAdmin was restarted\n4. We continued to see 11.1\n5. We must push \"D...
[ { "msg_contents": "I'm forking this thread from\nhttps://postgr.es/m/flat/20190202083822.GC32531@gust.leadboat.com, which\nreported a race condition involving the \"apparent wraparound\" safety check in\nSimpleLruTruncate():\n\nOn Wed, Feb 13, 2019 at 11:26:23PM -0800, Noah Misch wrote:\n> 1. The result of the ...
[ { "msg_contents": "I propose the attached patch to replace the CACHEX_elog() macros with a\nsingle varargs version.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services", "msg_date": "Mon, 18 Feb 2019 13:56:52 +0100", "m...
[ { "msg_contents": "\nOver on our shiny new PDF builder at\n<https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=alabio&dt=2019-02-18%2012%3A32%3A08&stg=make-pdfs> \nFOP is complaining about a bunch of unresolved ID references.\n\nIt appears that these are due to title elements having id tags. At\n<htt...
[ { "msg_contents": "I propose to add an equivalent to unconstify() for volatile. When\nworking on this, I picked the name unvolatize() mostly as a joke, but it\nappears it's a real word. Other ideas?\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote...
[ { "msg_contents": "HI,\n\nI realized that 'boolean' and 'bool' are mixed as SQL data type in the\ndocumentation. Here is the quick check result;\n\n$ git grep -c \"<type>bool</type>\" doc\ndoc/src/sgml/bki.sgml:1\ndoc/src/sgml/btree-gin.sgml:1\ndoc/src/sgml/catalogs.sgml:88\ndoc/src/sgml/datatype.sgml:1\ndoc/sr...
[ { "msg_contents": "Hello,\n\nWe have an app that copies some metrics between predefined tables on the\nsource and destination clusters, truncating the table at the source\nafterward.\n\nThe app locks both the source and the destination table at the beginning and\nthen, once copy concludes, prepares a transactio...
[ { "msg_contents": "Hello all,\n\nI'm working on a foreign data wrapper that uses INSERT, and I noticed some\nodd behaviour. If I insert just one row, the\nTupleDesc->attr[0]->attname.data has the column names in it. However, in a\nmulti-row string, all those are empty strings:\n\nI added this debugging code to ...
[ { "msg_contents": "Hello\n\nI just came across a crash while debugging some corrupted system\ncatalogs; pg_identify_object_as_address fails to cope with some NULL\ninput, causing a crash. Attached patch fixes it. Naturally, the output\narray will contain NULL members in the output, but that's better than\ncra...
[ { "msg_contents": "Hi,\n\n\nIn the PostgreSQL Documentation, both ECPG PREPARE and SQL statement PREPARE can be used in ECPG [1].\nHowever, SQL statement PREPARE does not work.\n\nI wrote the source code as follows.\n\n<test_app.pgc>\n============================\n EXEC SQL PREPARE test_prep (int) AS SELECT id...
[ { "msg_contents": "Hello hackers,\n\nI am switching to this new email address for PostgreSQL mailing lists. I\njust wanted you to know that I'm still reachable at my EnterpriseDB address\nand I'm still happily employed by EnterpriseDB, working on PostgreSQL!\nThis change is just to avoid sending automated corp...
[ { "msg_contents": "Hi, \n\nI found ECPG's bug which SET xxx = DEFAULT statement could not be used. \n\n[PROBLEM]\nWhen the source code (*.pgc) has \"EXEC SQL set xxx = default;\", created c program by ECPG has no \" = default\". \nFor example, \"EXEC SQL set search_path = default;\" in *.pgc will be converted t...
[ { "msg_contents": "Hello hackers,\n\nAs discussed in various threads, PostgreSQL-on-NFS is viewed with\nsuspicion. Perhaps others knew this already, but I first learned of\nthe specific mechanism (or at least one of them) for corruption from\nCraig Ringer's writing[1] about fsync() on Linux.\n\nThe problem is ...
[ { "msg_contents": "Hello\n\nIn order to increase our security, we have started deploying row-level \nsecurity in order to add another safety net if any issue was to happen in our \napplications.\nAfter a careful monitoring of our databases, we found out that a lot of \nqueries started to go south, going extreme...
[ { "msg_contents": "While contemplating the wreckage of \nhttps://commitfest.postgresql.org/22/1778/\nI had the beginnings of an idea of another way to fix that problem.\n\nThe issue largely arises from the fact that for UPDATE, we expect\nthe plan tree to emit a tuple that's ready to be stored back into\nthe ta...
[ { "msg_contents": "I poked into a recent complaint[1] about PG not being terribly smart\nabout whether an IS NOT NULL index predicate is implied by a WHERE\nclause, and determined that there are a couple of places where we\nare being less bright than we could be about CoerceViaIO semantics.\nCoerceViaIO is stri...
[ { "msg_contents": "From: Tomas Vondra [mailto:tomas.vondra@2ndquadrant.com]\n> 0.7% may easily be just a noise, possibly due to differences in layout\n> of the binary. How many runs? What was the variability of the results\n> between runs? What hardware was this tested on?\n\n3 runs, with the variability of abo...
[ { "msg_contents": "Hello Postgres Gurus,\n\nAfter searching (on www.postgresql.org/Google) I found that the following\nsteps can be used to perform a switchover in Postgres (version 9.3):\n*Step 1.* Do clean shutdown of Primary (-m fast or smart).\n*Step 2. *Check for sync status and recovery status of Standby ...
[ { "msg_contents": "On Tue, Feb 19, 2019 at 7:31 AM PG Bug reporting form\n<noreply@postgresql.org> wrote:\n>\n> The following bug has been logged on the website:\n>\n> Bug reference: 15641\n> Logged by: Hans Buschmann\n> Email address: buschmann@nidsa.net\n> PostgreSQL version: 11.2\n> Operat...
[ { "msg_contents": "Hello\n\nWe increased bgwriter_lru_maxpages limit in 10 release [1]. Docs now are changed correctly but in REL_10_STABLE postgresql.conf.sample we still have comment \"0-1000 max buffers written/round\". \nMaster (and REL_11_STABLE) was updated later in 611fe7d4793ba6516e839dc50b5319b990283f4...
[ { "msg_contents": "When reviewing a related patch [1], I spent some time thinking about the\n\"detectNewRows\" argument of ri_PerformCheck(). My understanding is that it\nshould (via the es_crosscheck_snapshot field of EState) prevent the executor\nfrom accidentally deleting PK value that another transaction (w...
[ { "msg_contents": "I propose the attached patch to remove some unnecessary, legacy-looking\nuse of the PROCEDURAL keyword before LANGUAGE. We mostly don't use this\nanymore, so some of these look a bit old.\n\nThere is still some use in pg_dump, which is harder to remove because\nit's baked into the archive fo...
[ { "msg_contents": "Nowadays there are a number of methods for composing multiple\npostgresql.conf files for modularity. But if you have a bunch of things\nyou want to load via shared_preload_libraries, you have to put them all\nin one setting. How about some kind of syntax for appending something\nto a list, ...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 15646\nLogged by: Eugen Konkov\nEmail address: kes-kes@yandex.ru\nPostgreSQL version: 10.4\nOperating system: (Debian 10.4-2.pgdg90+1)\nDescription: \n\nHi.\r\n\r\n[documentation](https://www.postg...
[ { "msg_contents": "src/backend/postmaster/autovacuum.c declares:\n\n|static void\n|autovac_report_workitem(AutoVacuumWorkItem *workitem,\n| const char *nspname, const char *relname)\n\nBut calls it like:\n\n| cur_relname = get_rel_name(workitem->avw_relation);\n| cur_nspname...
[ { "msg_contents": "Hi all,\n\n\nWhen we want to get total size of all relation in a schema we have to\nexecute one of our favorite DBA query. It  is quite simple but what\nabout displaying schema size when using \\dn+ in psql ?\n\n\ngilles=# \\dn+\n                               List of schemas\n  Name  |  Owne...
[ { "msg_contents": "Hi Team.\n\nNew to contributing so hopefully this is the right place. I've searched the\nforum and it seems this is the place for feature requests/suggestions.\n\nI was reading on VACUUM and VACUUM FULL and saw that the current\nimplementation of VACUUM FULL writes to an entirely new file and...
[ { "msg_contents": "The semantics of NOT IN (SELECT ...) are subtly different from the semantics\nof NOT EXISTS (SELECT ...). These differences center on how NULLs are\ntreated, and in general can result in statements that are harder to optimize\nand slower to execute than the apparently similar NOT EXISTS stat...
[ { "msg_contents": "Hello hackers,\n\nDavid Rowley posted some interesting stuff about an ArrayList[1] that\nwould replace List in many places. (I probably would have replied to\nthat thread if I hadn't changed email account, sorry.) I had similar\nthoughts when I needed to maintain a sorted vector for my refa...
[ { "msg_contents": "Hi,\n\nJeff Janes raised an issue [1] about PD_ALL_VISIBLE not being set correctly\nwhile loading data via COPY FREEZE and had also posted a draft patch.\n\nI now have what I think is a more complete patch. I took a slightly\ndifferent approach and instead of setting PD_ALL_VISIBLE bit initia...
[ { "msg_contents": "Hi Kirk,\r\n\r\n> Currently, the patch fails to build according to CF app.\r\n> As you know, it has something to do with the misspelling of function.\r\n> GetTimezoneInformation --> GetTimeZoneInformation\r\nThank you. I fixed it. Please see my v7 patch.\r\n\r\nRegards,\r\nAya Iwata\r\n", ...
[ { "msg_contents": "Hi,\n\nI would like to use transactions with partitioning table using FDW, but transactions can not be used with the following error.\n 'ERROR: could not serialize access due to concurrent update\n\nSo, I tried to write a very simple patch.\nThis patch works for my purpose, but I do not know...
[ { "msg_contents": "In AfterTriggerSaveEvent(), the \"new_shared\" variable is not used outside the\n\"for\" loop, so I think it should be defined only within the loop. The\nfollowing patch makes reading the code a little bit more convenient for me.\n\ndiff --git a/src/backend/commands/trigger.c b/src/backend/co...
[ { "msg_contents": "I installed latest PostgreSQL-ODBC , OS=Solaris 10, Arch = Sparc. I can not\nuse PostgreSQL ODBC in unixODBC.\n\n-bash-3.2$ LD_DEBUG=libs ./isql -v PG\ndebug:\ndebug: Solaris Linkers: 5.10-1.1518\ndebug:\n19267:\n19267: platform capability (CA_SUNW_PLAT) - sun4v\n19267: machine capability (CA...
[ { "msg_contents": "As mentioned on\n\nhttps://www.cybertec-postgresql.com/en/looking-at-mysql-8-with-postgresql-goggles-on/\n\nhow about this:\n\n=> \\h analyze\nCommand: ANALYZE\nDescription: collect statistics about a database\nSyntax:\nANALYZE [ ( option [, ...] ) ] [ table_and_columns [, ...] ]\nANALYZE...
[ { "msg_contents": "Attached set of patches with some jsonb optimizations that were made during\ncomparison of performance of ordinal jsonb operators and jsonpath operators.\n\n1. Optimize JsonbExtractScalar():\n It is better to use getIthJsonbValueFromContainer(cont, 0) instead of\n JsonIterator to get 0t...
[ { "msg_contents": "Hi Hackers,\n\nDuring the development of another feature, I found that same local\nvariables are declared twice.\nIMO, there is no need of again declaring the local variables. Patch\nattached.\n\nRegards,\nHaribabu Kommi\nFujitsu Australia", "msg_date": "Fri, 22 Feb 2019 11:33:17 +1100", ...
[ { "msg_contents": "I know there has been recent discussion about implementing transparent\ndata encryption (TDE) in Postgres:\n\n\thttps://www.postgresql.org/message-id/CAD21AoAqtytk0iH6diCJW24oyJdS4roN-VhrFD53HcNP0s8pzA%40mail.gmail.com\n\nI would like to now post a new extension I developed to handle\ncryptog...
[ { "msg_contents": "Hi,\n\nI found the bug of default partition pruning when executing a range query.\n\n-----\npostgres=# create table test1(id int, val text) partition by range (id); \npostgres=# create table test1_1 partition of test1 for values from (0) to (100); \npostgres=# create table test1_2 partition o...
[ { "msg_contents": "The following sequence causes autovacuum to crash on master:\n\nCREATE TEMP TABLE foo(a int);\nDROP TABLE foo;\nDROP SCHEMA pg_temp_3;\nCREATE TEMP TABLE bar(a int);\nDROP TABLE bar;\n\nit coredumps with:\n\n#1 0x00007f96b5daa42a in __GI_abort () at abort.c:89\n#2 0x000055d997915ba3 in Exce...
[ { "msg_contents": "So I started looking into the bug noted in [1], but before getting to\nmulti-row inserts, I concluded that the current single-row behaviour\nisn't spec-compliant.\n\nIn particular, Syntax Rule 11b of section 14.11 says that an INSERT\nstatement on a GENERATED ALWAYS identity column must speci...
[ { "msg_contents": "I've set up 2 instances of PostgreSQL 11. On instance A, I created a table\nwith 2 local partitions and 2 partitions on instance B using foreign data\nwrappers, following https://pgdash.io/blog/postgres-11-sharding.html.\nInserting rows into this table works as expected, with rows ending up i...
[ { "msg_contents": "ri_triggers.c is endlessly long and repetitive. I want to clean it up a\nbit (more).\n\nI looked into all these switch cases for the unimplemented MATCH PARTIAL\noption. I toyed around with how a MATCH PARTIAL implementation would\nactually look like, and it likely wouldn't use the existing...
[ { "msg_contents": "Fix plan created for inherited UPDATE/DELETE with all tables excluded.\n\nIn the case where inheritance_planner() finds that every table has\nbeen excluded by constraints, it thought it could get away with\nmaking a plan consisting of just a dummy Result node. While certainly\nthere's no upd...
[ { "msg_contents": "The CTE change in PostgreSQL 12 broke several of PostGIS regression tests\nbecause many of our tests are negative tests that test to confirm we get\nwarnings in certain cases. In the past, these would output 1 notice because\nthe CTE was materialized, now they output 1 for each column.\n\nAn...
[ { "msg_contents": "I noticed that ALTER ROLE/USER succeeds even when called without any\noptions:\n\npostgres=# alter user foo;\nALTER ROLE\npostgres=# alter role foo;\nALTER ROLE\npostgres=# alter group foo;\nERROR: syntax error at or near \";\"\nLINE 1: alter group foo;\n\nThat seems odd, does nothing useful...
[ { "msg_contents": "This seems to be the cleanest way to get a JIT build working on FreeBSD\non the armv7 platform. Without this, it fails because the ABI functions\n__aeabi_ldivmod and so on are not found by the symbol lookup for JITted\ncode.\n\nIt's completely unclear who (llvm, freebsd, or us) is at fault he...
[ { "msg_contents": "For quite some years now there's been dissatisfaction with our List\ndata structure implementation. Because it separately palloc's each\nlist cell, it chews up lots of memory, and it's none too cache-friendly\nbecause the cells aren't necessarily adjacent. Moreover, our typical\nusage is to...
[ { "msg_contents": "Hello hackers,\n\n1. In a nearby thread, I misdiagnosed a problem reported[1] by Justin\nPryzby (though my misdiagnosis is probably still a thing to be fixed;\nsee next). I think I just spotted the real problem he saw: if you\nexecute a parallel query after a smart shutdown has been initiat...