threads
listlengths
1
2.99k
[ { "msg_contents": "Hello!\n\nIn an environment where we control the host system and all installed\nextensions, we need to allow postgresql non-superuser to install all of\nthem, without opening gaps that will let this user gain superuser\nprivileges. We have a sample solution to add a new default role\npg_creat...
[ { "msg_contents": "Hi,\n\nrunning sqlsmith on REL_11_STABLE at 1b9d1b08fe for a couple hours\nyielded the previously-unseen internal error \"partition missing from\nsubplans\". It is readily reproducible on the regression database with\nthe following query:\n\nselect * from public.fk_partitioned_fk as sample_0...
[ { "msg_contents": "\nAll the remaining items have been moved to the next commitfest, in some \ncases with changed status.\n\n\nThanks to all the authors, reviewers and committers.\n\n\ncheers\n\n\nandrew\n\n\n-- \nAndrew Dunstan https://www.2ndQuadrant.com\nPostgreSQL Development, 24x7 Support, R...
[ { "msg_contents": "Hello pgdev,\n\nThis patch rework & clarifies pgbench internal state machine.\n\nIt was indirectly triggered by Heikki review of pgbench tap tests \n(https://commitfest.postgresql.org/19/1306/), and by Marina's patch about \ntx retry on some errors (https://commitfest.postgresql.org/19/1645/)...
[ { "msg_contents": "Hi,\n\nsqlsmith caused another internal error while testing REL_11_STABLE at\n1b9d1b08fe. The query below on the regression DB yields \"plan should\nnot reference subplan's variable\" for me.\n\nregards,\nAndreas\n\ndelete from public.prt1_l\nwhere\nEXISTS (\n select\n from\n public...
[ { "msg_contents": "In a moment of idle curiosity, I tried to build PG --with-libxml\non NetBSD-current (well, mostly current, from May or so).\nThe configure script blew up, complaining that it couldn't execute\na test program. Investigation showed that xml2-config reports this:\n\n$ xml2-config --libs\n-Wl,-R...
[ { "msg_contents": "Hello,\n\nTo scratch an itch, I have been working on teaching TidScan how to do\nrange queries, i.e. those using >=, <, BETWEEN, etc. This means we\ncan write, for instance,\n\n SELECT * FROM t WHERE ctid >= '(1000,0)' AND ctid < '(2000,0)';\n\ninstead of resorting to the old trick:\n\n ...
[ { "msg_contents": "Hi all,\n(In CC are the folks who have reviewed the first patch versions, Nathan\nand Horiguchi-san.) \n\nAfter TRUNCATE and REINDEX, here is the third and last thread I am\nspawning for the previous thread \"Canceling authentication due to\ntimeout aka Denial of Service Attack\":\nhttps://ww...
[ { "msg_contents": "While poking at that xml issue I tried to compare the memory usage of\nthe xml queries with vaguely comparable regexp_split_to_table queries,\nand found that I could not do so; the regexp queries simply did not\ncomplete in any sensible timeframe.\n\nInvestigation showed that in UTF8 (or othe...
[ { "msg_contents": "Hi!\n\nThis subject was already raised multiple times [1], [2], [3]. In\nshort, our LWLock implementation has pathological behavior when shared\nlockers constitute a continuous flood. In this case exclusive lock\nwaiters are not guaranteed to eventually get the lock. When shared\nlock is h...
[ { "msg_contents": "I noticed that the word \"procedure\" appears in at least a few places\nin the v11 docs as a not-quite-apt synonym of \"function\". For example,\nhttps://www.postgresql.org/docs/11/static/plpgsql-trigger.html talks\nabout \"PL/pgSQL Trigger Procedures\" which are actually all functions\nin pr...
[ { "msg_contents": "All the regexp functions blow up with \"invalid memory alloc request\"\nerrors when the input string exceeds 256MB in length. This restriction\ndoes not seem to be documented anywhere that I could see.\n\n(Also for regexp_split* and regexp_matches, there's a limit of 64M total\nmatches, which...
[ { "msg_contents": "On Thu, Nov 30, 2017 at 11:09 AM, Michael Paquier\n<michael.paquier@gmail.com> wrote:\n> On Tue, Oct 24, 2017 at 5:54 AM, Masahiko Sawada <sawada.mshk@gmail.com> wrote:\n>> Yeah, I was thinking the commit is relevant with this issue but as\n>> Amit mentioned this error is emitted by DROP SCHE...
[ { "msg_contents": "Hello,\nI used PostgreSQL 9.3 but I executed upgrade few days ago.\nNow, I am using 10.4 PostgreSQL and:\ndoctrine/annotations v1.2.7\ndoctrine/cache v1.4.2\ndoctrine/collections v1.3.0\ndoctrine/common v2.7.3\ndoctrin...
[ { "msg_contents": "Hi\n\nI would to introduce new flag for routines - PRIVATE. Routines with this\nflag can be called only from other routines assigned with same schema.\nBecause these routines are not available for top queries, we can hide these\nfunctions from some outputs like \\df ..\n\nExample:\n\nCREATE S...
[ { "msg_contents": "It seems to me that it would make sense if InsertPgAttributeTuple() were\nto set attcacheoff to -1 instead of taking it from the caller.\n\nInsertPgAttributeTuple() is the interface between in-memory tuple\ndescriptors and on-disk pg_attribute, so it makes sense to give it the\njob of resetti...
[ { "msg_contents": "The pq_sendfloat4 and 8 prototypes are duplicated.\n\nChristoph", "msg_date": "Tue, 14 Aug 2018 18:55:37 +0200", "msg_from": "Christoph Berg <myon@debian.org>", "msg_from_op": true, "msg_subject": "[patch] Duplicated pq_sendfloat4/8 prototypes" }, { "msg_contents": "Ch...
[ { "msg_contents": "Hello hackers,\n\nAt the Unconference in Ottawa this year, I pitched the idea of moving\ncomponents off of SLRU and on to the buffer cache. The motivation\nbehind the idea was three fold:\n\n * Improve performance by eliminating fixed sized caches, simplistic\n scan and eviction algorithm...
[ { "msg_contents": "I noticed that src/port/snprintf.c still follows the old (pre-C99)\nsemantics for what to return from snprintf() after buffer overrun.\nThis seems bad for a couple of reasons:\n\n* It results in potential performance loss in psnprintf and\nappendPQExpBufferVA, since those have to fly blind ab...
[ { "msg_contents": "Hi,\n\nI found some improvements in Client Applications in /src/bin/scripts when I\nresumed development of progress monitor for cluster command.\n\nAttached patch gives the following query a semicolon for readability.\n\n s/SELECT pg_catalog.set_config ('search_path', '', false)/\n SELE...
[ { "msg_contents": "1. Why do the files holding the spilled transaction data in reorderbuffer.c\nhave a \".snap\" suffix?\n\n2. Those files can get quite large. Would it be reasonable to store them in\nanother directory (e.g. pg_replslot_tmp) so that they can be placed on\nanother mount point? It would also simp...
[ { "msg_contents": "hi all! I discovered today that the REFRESH MATERIALIZED VIEW \ndocumentation doesn't mention that only the owner (or a superuser) may \nactually perform the refresh operation. This patch adds a note to that \neffect.\n\nDian Fay", "msg_date": "Wed, 15 Aug 2018 19:46:49 -0400", "msg_f...
[ { "msg_contents": "Hi, Hackers,\n\nThe attached small patch updates src/backend/utils/errcode.txt.\nIn the comment of this file, a list of file names generated from this file is written.\nHowever, the file name of the 'errcodes.sgml' file is incorrect.\nThe attached patch fixes the incorrect path of errcodes.sg...
[ { "msg_contents": "Hi hackers,\n\nWhile contemplating plans to use new kinds of OIDs in buffer tags, I\nnoticed $SUBJECT. It says:\n\n * Check for wraparound of the OID counter. We *must* not return 0\n * (InvalidOid); and as long as we have to check that, it seems a good\n * idea to skip over everything belo...
[ { "msg_contents": "This is the continuation of the discussion at:\n\nhttps://www.postgresql.org/message-id/7500.1531920772%40sss.pgh.pa.us\n\nActually, for more background on what I've written below, reading this\nemail in the same discussion would help:\n\nhttps://www.postgresql.org/message-id/4114.1531674142@...
[ { "msg_contents": "Hi,\n\nAlmost all client applications and extensions will show \"Options\" and\n\"Connection options\" sections when running with help option (--help).\nHowever, \"oid2name\" was different, there is only the Options section.\nFor example,\n\n$ vacuumlo --help\n vacuumlo removes unreferenc...
[ { "msg_contents": "The lack of LargeObject-support makes it unusable for installations using it.\n \nAny plans to support LOs in logical decoding so we can replicate databases \nusing them?\n \n--\nAndreas Joseph Krogh", "msg_date": "Thu, 16 Aug 2018 13:31:14 +0200 (CEST)", "msg_from": "Andreas Joseph K...
[ { "msg_contents": "Hi,\n\nI am trying to change cstore_fdw to scan in parallel. FDW interface provide\n'EstimateDSMForeignScan' for required shared memory size to scan in parallel.\n\nHow to estimate the shared memory size required for parallel scan?\n\nthanks.\n-- \nMasayuki Takahashi\n\n", "msg_date": "Th...
[ { "msg_contents": "FETCH FIRST with PERCENT option is SQL standard that state limit count to\nbe specified in a percentage in addition to specify it in exact count and\nlisted as one of Major features simply not implemented yet in recent wiki\npage [1].\n\nI implemented it by executing the query plan twice. One...
[ { "msg_contents": "Hi,\n\nI found that has_table_privilege returns an error when a table is specified\nby schema-qualified name and the user doen't have privilege for its schema.\n\n postgres=> select has_table_privilege('myschema.tbl','select');\n ERROR: permission denied for schema myschema\n\nI think that t...
[ { "msg_contents": "Hello,\n\nPlease find below a submission of a patch to the PostgreSQL documentation.\n\nYou can also find the patch in this git commit:\nhttps://gitlab.com/paulrbr/postgresql/commit/024d3870450df6dcdc69bddbe2de46084b73e3a2.diff\n\n============\ncommit 024d3870450df6dcdc69bddbe2de46084b73e3a2\...
[ { "msg_contents": "Hi, hackers!\n\nI propose the patch for fix one small code defect.\nThe XLogReadRecord() function reads the pages of a WAL segment that \ncontain a WAL-record. Then it creates a readRecordBuf buffer in private \nmemory of a backend and copy record from the pages to the readRecordBuf \nbuffer....
[ { "msg_contents": "Hello hackers,\n\n\n\nThe attached patch adds a new option work_mem to postgres_fdw contrib module.\n\nPreviously, it was impossible to change the setting of work_mem for remote session with connection by postgres_fdw.\n\nBy adding this option to the CREATE SERVER statement, you can also chan...
[ { "msg_contents": "Follow up on a patch and discussion with Tom, currently integer parsing on \nkeywords in libpq is quite loose, resulting in trailing garbage being \nignored and allowing to hide bugs, eg:\n\n sh> psql \"connect_timeout=2,port=5433\"\n\nThe timeout is set to 2, and the port directive is sile...
[ { "msg_contents": "Hi,\n\nIn [1] , it was shown that the partition tuples are needlessly formed\nand deformed during tuple conversion (do_convert_tuple), when the same\noperation can be done using tuple slots. This is because the input\nslot might already have a deformed tuple.\n\nAttached is a patch tup_conver...
[ { "msg_contents": "Over in the what-about-%m thread, we speculated about replacing the\nplatform's *printf functions if they didn't support %m, which would\nbasically mean using src/port/snprintf.c on all non-glibc platforms,\nrather than only on Windows as happens right now (ignoring some\nobsolete platforms w...
[ { "msg_contents": "Hi,\n\nI Initially pointed out here[1] that running REFRESH MATERIALIZED VIEW as a\nnon-superuser or table owner yields the following message:\n\n test=> REFRESH MATERIALIZED VIEW blah;\n ERROR: must be owner of relation blah\n\nThe error message should say \"...owner of materialized vi...
[ { "msg_contents": "Hi developers,\n\nI’m currently building a Postgres C extension that fetch data from a Postgres table.\nSince the table can be large, in order to prevent memory overrun, I use SPI_cursor_fetch to fetch chunks of data. The result rows are saved in SPITupleTable* SPI_tuptable and attributes are...
[ { "msg_contents": "Hello hackers,\n\nThis is a late summary of pg performance farm in gsoc. Although it is not\nyet perfect, but it has began to take shape.\n\n1. The implementation of the basic test results upload interface to ensure\nthat the upload operation for the atomic level (including different client\n...
[ { "msg_contents": "Since the introduction of the CATALOG_VARLEN stuff, the fixed size of\npg_attribute is exactly sizeof(FormData_pg_attribute), so the ancient\nmechanism to track the fixed size manually using\nATTRIBUTE_FIXED_PART_SIZE can be removed.\n\n-- \nPeter Eisentraut http://www.2ndQuadran...
[ { "msg_contents": "Hello monters and hackers,\n\nThis is a late summary of pg performance farm in gsoc. Although it is not\nyet perfect, but it has began to take shape.\n\n1. The implementation of the basic test results upload interface to ensure\nthat the upload operation for the atomic level (including differ...
[ { "msg_contents": "Hi,\n\n\"For examples of usage look at simplehash.c ...\"\n\nThere is no such file in the tree. Maybe this should say tidbitmap.c?\n\n-- \nThomas Munro\nhttp://www.enterprisedb.com\n\n", "msg_date": "Mon, 20 Aug 2018 16:38:20 +1200", "msg_from": "Thomas Munro <thomas.munro@enterprise...
[ { "msg_contents": "Currently in PG, the precedence of = and <> is supposed to be equal, and\nthe precedence of unary - is very high.\n\nSo, (true=1 between 1 and 1) parses as ((true)=(1 between 1 and 1)),\nand (true=-1 between 1 and 1) parses as ((true)=((-1) between 1 and 1)).\nAll good so far.\n\n(true<>-1 be...
[ { "msg_contents": "I believe that we should be delaying the PlannerInfo's\ntotal_table_pages calculation until after constraint exclusion and\npartition pruning have taken place. Doing this calculation before we\ndetermine which relations we don't need to scan can lead to\nincorrectly applying random_page_cost ...
[ { "msg_contents": "Hello devs,\n\nWhile reviewing various patches by Tom which are focussing on libpq \nmulti-host behavior,\n\n \thttps://commitfest.postgresql.org/19/1749/\n \thttps://commitfest.postgresql.org/19/1752/\n\nit occured to me that there are a few more problems with the \ndocumentation, the host/h...
[ { "msg_contents": "The attached patch factors out the CREATE INDEX CONCURRENTLY code that\nwaits for transactions with older snapshots to finish into a new\nfunction WaitForOlderSnapshots().\n\nThis refactoring was part of a previously posted REINDEX CONCURRENTLY\npatch. But this code is now also appearing as ...
[ { "msg_contents": "Hi all;\n\nI am looking at trying to make two modifications to the PostgreSQL FDW and\nwould like feedback on this before I do.\n\n1. INSERTMETHOD=[insert|copy] option on foreign table.\n\nOne significant limitation of the PostgreSQL FDW is that it does a prepared\nstatement insert on each r...
[ { "msg_contents": "Hello, I found a typo in guc.c.\n\n> {\"enable_parallel_hash\", PGC_USERSET, QUERY_TUNING_METHOD,\n> - gettext_noop(\"Enables the planner's user of parallel hash plans.\"),\n> + gettext_noop(\"Enables the planner's use of parallel hash plans.\"),\n\nThe \"user\" should be \"use...
[ { "msg_contents": "Hi,\n\nWhile testing something that I needed to ensure a generic plan was\nbeing used, during editing postgresql.conf I couldn't quite remember\nthe exact spelling of the option to do that. I think the valid\noptions for the setting should be listed in the sample config file.\n\nPatch attach...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 15346\nLogged by: Alexander Kukushkin\nEmail address: cyberdemn@gmail.com\nPostgreSQL version: 9.6.10\nOperating system: Ubuntu\nDescription: \n\nWe run quite a lot of clusters and from time to tim...
[ { "msg_contents": "Hello ,\n\nDid you take a look into the patches from the previous mail ?\nWhat do you think about my proposal ?\nCould you please say if there are any objections in regard to it? \n\nThank you in advance, \nAndrei Yahorau\n\n\n\nFrom: Andrei Yahorau/IBA\nTo: pgsql-hackers@postgresql.org...
[ { "msg_contents": "Hi all,\n\nI’m creating a C extension to write data from the Postgres to a text file . Since the table can be very large, I only want to process one chunk of data per time to keep the memory stable. To achieve this, I use SPI cursor(https://www.postgresql.org/docs/current/static/spi-spi-cur...
[ { "msg_contents": "Continuing along on my adventures of making performance improvements\nfor partitioned tables, I discovered that getrelid is quite slow in\nInitPlan() during UPDATEs and DELETEs when there are many\nresultRelations to process. A List is a pretty poor choice for this\ndata structure since we a...
[ { "msg_contents": "Hi!\n\n\nI have noticed the novice users are stuck trying to create tablespace \nover a directory whose owner is not the system postgres user. They \nobserved the message \"could not set permissions on directory ...: \npermission denied\".\n\nI want to add patch that prints hint to set requir...
[ { "msg_contents": "Some minor comments on the JIT explain output. For example:\n\n Seq Scan on tenk1 (cost=0.00..483.00 rows=3333 width=244) (actual\ntime=5.564..8.755 rows=4960 loops=1)\n Filter: (unique1 > unique2)\n Rows Removed by Filter: 5040\n Planning Time: 0.857 ms\n JIT:\n Functions: 2\n Gene...
[ { "msg_contents": "Hi.\n\nIt seems that the following commit missed updating ddl.sgml:\n\ncommit 5220bb7533f9891b1e071da6461d5c387e8f7b09\nAuthor: Heikki Linnakangas <heikki.linnakangas@iki.fi>\nDate: Thu Jul 19 13:49:43 2018 +0300\n\n Expand run-time partition pruning to work with MergeAppend\n\nAttached ...
[ { "msg_contents": "Hi,\n\nI'm going to propose libpq debug log for analysis of queries on the application side.\nI think that it is useful to determine whether the cause is on the application side or the server side when a slow query occurs. \n\nThe provided information is \"date and time\" at which execution o...
[ { "msg_contents": "Hi,\n\nWhen working on other patch[1], I found there are almost same\nfunctions, texttoQualifiedNameList() and stringToQualifiedNameList().\nThe only difference is the argument type, text or char*. I don't know\nwhy these functions are defined seperately, but I think the former \nfunction can...
[ { "msg_contents": "Hi All,\n\nThe redirect link for applicable_roles view is missing in the\ndocumentation page for enabled_roles view. Attached is the patch that\nadds the same. Please refer to the following URL for details.\n\nhttps://www.postgresql.org/docs/devel/static/infoschema-enabled-roles.html\n\n-- \n...
[ { "msg_contents": "Hi All,\n\nCurrently, table_privileges view in information_schema.sql doesn't\nshow privileges on materialized views for currently enabled roles. As\nper the documentation-[1], it should be showing the all privileges\ngranted on tables and views (the documentation doesn't says it has to\nbe n...
[ { "msg_contents": "Hi,\n\nIn a recent commit [1] I added a static inline which castoroides\ndislikes:\ncc -D_STDC_C99= -Xa -g -m64 -xarch=native -xdepend -xO4 -xprefetch=auto,explicit pg_waldump.o compat.o xlogreader.o rmgrdesc.o brindesc.o clogdesc.o committsdesc.o dbasedesc.o genericdesc.o gindesc.o gistdesc....
[ { "msg_contents": "I'm curious about this option:\n\n -r RELFILENODE check only relation with specified relfilenode\n\nbut there is no facility to specify a database.\n\nAlso, referring to the relfilenode of a mapped relation seems a bit\ninaccurate.\n\nMaybe reframing this in terms of the file name of...
[ { "msg_contents": "Hello All,\n\nOne of our customers reported a situation where one of the many segments\nbacking a table went missing. They don't know why that happened and we\ncouldn't determine if this could be a PostgreSQL bug or FS bug or simply an\noperator error.\n\nThe very first errors seen in the log...
[ { "msg_contents": "Commit 8ecdefc26 reminded me of something I'd intended to whine about\nand forgot. port.h has this in its USE_REPL_SNPRINTF stanza:\n\n/*\n * The GCC-specific code below prevents the pg_attribute_printf above from\n * being replaced, and this is required because gcc doesn't know anythi...
[ { "msg_contents": "I started seeing the following compile failures in head today on current\nDebian Jessie using the default gcc version 4.9.2 (Debian\n4.9.2-10+deb8u1):\n\n\tpostgres.c: In function ‘exec_parse_message’:\n\tpostgres.c:1368:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11...
[ { "msg_contents": "WalSndLoop() does this, simplifying considerably:\n\n\tfor (;;)\n\t{\n\t\t/* does: last_reply_timestamp = GetCurrentTimestamp() */\n\t\tProcessRepliesIfAny(); \n\t\tsend_data(); /* e.g. XLogSendPhysical(), which calls XLogRead() */\n\t\tWalSndCheckTimeOut(GetCurrentTimestamp());\n\t}\n\nA c...
[ { "msg_contents": "I noticed one while looking at partprune.c and found the others with grep.\n\n-- \n David Rowley http://www.2ndQuadrant.com/\n PostgreSQL Development, 24x7 Support, Training & Services", "msg_date": "Sun, 26 Aug 2018 23:42:48 +1200", "msg_from": "David Rowley <david....
[ { "msg_contents": "Hello hackers,\n\nit is possible to start bgworker with bgw_start_time =\nBgWorkerStart_PostmasterStart, which will be started immediately after\npostmaster.\n\nBut if you try to do a fast shutdown while postmaster still in the\npmState == PM_STARTUP, bgworker will never get SIGTERM and postm...
[ { "msg_contents": "I noticed while testing the fix for Alexander Kukushkin's complaint that\nif the syslogger process detects a problem (e.g., failure to open a new\nlog file) while log_destination is set to \"csvlog\", the error report\nactually goes to THREE places. It gets spit out to csvlog, *and* to the\n...
[ { "msg_contents": "While answering someone's question I was motivated to try this:\n\nregression=# create type comp_type as (f1 int, f2 int);\nCREATE TYPE\nregression=# create function foo(int) returns int language plpgsql as '\ndeclare z comp_type;\nbegin\n z.f1 = $1; z.f2 = $1+1;\n return z.f1 + z.f2;\nend'...
[ { "msg_contents": "During the development of an unrelated feature, I have experienced\nfailures in a pg_dump test case, specifically\n\nt/002_pg_dump.pl ....... 1825/6052\n# Failed test 'defaults_parallel: should not dump COPY\nfk_reference_test_table second'\n# at t/002_pg_dump.pl line 3454.\n\nThis test s...
[ { "msg_contents": "Here are three patches to add more detailed error location support to\nsome parts of CREATE TABLE (defaults, check constraints, partition\nspecifications) as well as the COPY command. Examples can be seen in\nthe regression test output.\n\nThe first two are low-hanging fruit, since all the i...
[ { "msg_contents": "Whenever some pg_attribute field is added or changed, a lot of\nrepetitive changes all over the code are necessary. Here is a small\nchange to remove one such place.\n\nWe have two code paths for initializing the tuple descriptor for a new\nindex: For a normal index, we copy the tuple descri...
[ { "msg_contents": "So I started poking at the idea of sorting by size during parallel\nrestore instead of sorting pg_dump's TOC that way. While investigating\njust where to do that, I discovered that, using the regression database\nas test case, restore_toc_entries_parallel() finds these objects to\nbe *immedi...
[ { "msg_contents": "Having quit Amazon, where I was doing Postgres development, I've started looking at various things I might work on for fun. One thought is to start with something easy like the scalability of GetSnapshotData(). :-)\n\n\nI recently found it interesting to examine performance while running near...
[ { "msg_contents": "Hello,\n\nI'm curious about something which may qualify as a stupid question.\n\nWhat bad thing would happen if we used OIDs directly as hash values in\ninternal hash tables (that is, instead of uint32_hash() we'd use\nuint32_identity(), or somehow optimise it away entirely, as you can\nsee i...
[ { "msg_contents": "I've attached a patch to fix a typo in typcache.c. I ended up also\nrephrasing the sentence since \"information about data types that is\",\nalmost made me also want to change \"is\" to \"are\", since \"types\" is\nplural. That would have been a mistake since it's talking about the\ninformati...
[ { "msg_contents": "Hi,\nI'm in a situation where we quite often generate more WAL than we can\narchive. The thing is - archiving takes long(ish) time but it's\nmulti-step process and includes talking to remote servers over network.\n\nI tested that simply by running archiving in parallel I can easily get\n2-3 t...
[ { "msg_contents": "This is reproducible with PG11 and PG12:\n\ninitdb -k data\npostgres -D data\n\nmake installcheck\n# shut down postgres with Ctrl-C\n\npg_verify_checksums data\n\npg_verify_checksums: checksum verification failed in file\n\"data/base/16384/28647\", block 65: calculated checksum DC70 but expec...
[ { "msg_contents": "contrib/cube has an arbitrary limit of 100 on the number of dimensions\nin a cube, but it actually enforces that only in cube_in and\ncube_enlarge, with the other cube creation functions happy to create\ncubes of more dimensions.\n\nI haven't actually tested, but this implies that one can cre...
[ { "msg_contents": "Hi,\nI sent already an email about this topic to pgsql-admins but I think that\nit might be more relevant to this mailing list. I'm trying to investigate a\ncorruption that happened on a machine of one of our clients.\n\nA little background :\n-os Centos 6.6\n-PostgreSQL v9.2.5\n-I was asked ...
[ { "msg_contents": "Hello\n\nIn the process of fixing a bug, I inadvertently broke ABI compatibility\nin all released branches that sport logical decoding.\n\n[TL;DR: I propose to set up abidiff.postgresql.org.]\n\nThis is the commit:\n\nAuthor: Alvaro Herrera <alvherre@alvh.no-ip.org>\nBranch: master Release: R...
[ { "msg_contents": "Parallel pg_restore generally assumes that the archive file is telling it\nthe truth about data dependencies; in particular, that a TABLE DATA item\nnaming a particular target table is loading data into exactly that table.\n--load-via-partition-root creates a significant probability that that...
[ { "msg_contents": "There is a lot of version dependent code in pg_dump now, especially\nper-version queries. The way they were originally built was that we\njust have an entirely separate query per version. But as the number of\nversions and the size of the query grows, this becomes unwieldy.\n\nSo I tried, a...
[ { "msg_contents": "Hello.\n\nIn the discussion about cube's dimention limit [1], I found that\nthe error messages looks strange.\n\nhttps://www.postgresql.org/message-id/F0E1A404-A495-4F38-B817-06355B537E88@yandex-team.ru\n\n> postgres=# create table y as select cube(array(SELECT random() as a FROM generate_se...
[ { "msg_contents": "I have found some dying code in PL/Python.\n\nThe simple slicing API (sq_slice, sq_ass_slice) has been deprecated\nsince Python 2.0 and has been removed altogether in Python 3, so we can\nremove those functions from the PLyResult class. Instead, the non-slice\nmapping functions mp_subscript ...
[ { "msg_contents": "Here is a patch to change some struct initializations to use C99-style\ndesignated initializers. These are just a few particularly egregious\ncases that were hard to read and write, and error prone because of many\nsimilar adjacent types.\n\n(The PL/Python changes currently don't compile wit...
[ { "msg_contents": "While trying to debug a recent bug report on hash indexes [1], I\nnoticed that pg_verify_checksums don't work on Windows (or at least in\nmy environment).\n\ninitdb -k ..\\..\\data\npg_verify_checksums.exe ..\\..\\Data\npg_verify_checksums: short read of block 0 in file\n\"..\\..\\Data/globa...
[ { "msg_contents": "It is more or less well known that the planner doesn't perform well with\nmore than a few hundred partitions even when only a handful of partitions\nare ultimately included in the plan. Situation has improved a bit in PG\n11 where we replaced the older method of pruning partitions one-by-one...
[ { "msg_contents": "I've seen this message now a handful of times recently. It seems to happen\novernight, during a maintenance job which reindex things, including system\ncatalog indices.\n\nIt's easy to reproduce error under 10.5, but not under 10.3 nor 10.4.\n\nwhile :; do for a in pg_class_oid_index pg_clas...
[ { "msg_contents": "Hello all.\n\nbackground worker can use SPI to read a database, but it can call\nBackgroundWorkerInitializeConnection(dbname) only once.\n\nI wonder if there is a way to let a child process of postmaster to access\nall the databases one by one?\n\n\n-- \nThanks\n\nHubert Zhang\n\nHello all.ba...
[ { "msg_contents": "Hello,\n\nTo test postgres 11, I still regularly run series of short sessions of \npgbench-over-logical-replication (basically the same thing that I used \nlast year [1] - now in a perl incarnation). Most of the time the \nreplication is stable and finishes correctly but sometimes (rarely) I...
[ { "msg_contents": "Hi,\n\nI'm trying to upgrade an old PG 9.4 cluster to PG 10, and it's failing on\ncreating an index that uses the unaccent(text) function.\n\nThat function is part of the unaccent extension, which is installed in the\nold DB cluster. I expect pg_upgrade to create that extension as part of the...
[ { "msg_contents": "Stumble upon this formatting issue while reading the pg_upgrade docs.\n\nMartín", "msg_date": "Wed, 29 Aug 2018 20:02:54 -0700", "msg_from": "=?UTF-8?q?Mart=C3=ADn_Fern=C3=A1ndez?= <fmartin91@gmail.com>", "msg_from_op": true, "msg_subject": "[PATCH] Fix formatting in pg_upgrad...
[ { "msg_contents": "Hi,\n\nAttached is a patch to fix comments of IndexInfo. ii_KeyAttrNumbers was\nrenamed to ii_IndexAttrNumbers and ii_Am was added but these are\nnot reflected to the comment.\n\nRegards,\n-- \nYugo Nagata <nagata@sraoss.co.jp>", "msg_date": "Thu, 30 Aug 2018 13:48:31 +0900", "msg_fr...
[ { "msg_contents": "Hi hackers,\n\nI am really confused.  If my conclusions are correct, then nobody ever \ntried to use replication slots at Windows!\nThe function RestoreSlotFromDisk in slot.c contains the following code:\n\nstatic void\nRestoreSlotFromDisk(const char *name)\n{\n     ReplicationSlotOnDisk cp;\...
[ { "msg_contents": "Hi,\n\nI noticed that pg_verify_checksums computes bogus checksums if I compile\nit with '-O2 -Wall' but without -fno-strict-aliasing. Also I am getting\na compile warning then:\n\n|src/bin/pg_verify_checksums$ make CFLAGS='-g -O2 -Wall'\n[...]\n|gcc -g -O2 -Wall -I../../../src/include \n| -...
[ { "msg_contents": "Hi,\n\nHere is a small patch to remove $SUBJECT: s/has contains/contains/\n\nBest regards,\nEtsuro Fujita", "msg_date": "Thu, 30 Aug 2018 20:27:52 +0900", "msg_from": "Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>", "msg_from_op": true, "msg_subject": "Extra word in src/backend/...
[ { "msg_contents": "Hi!\n\nOur customer have a bad plan problem, which could be reduced to the\nfollowing example.\n\ncreate table t1 (id int primary key, k int);\ncreate table t2 (id int);\n\ninsert into t1 (select i, i from generate_series(1,1000000) i);\ninsert into t2 (select 0 from generate_series(1,100)i);...
[ { "msg_contents": "Hi all,\nWe want to introduce disk quota feature into Postgres.\n\n*Why disk quota*\n*In a multi-tenant environment, there is a requirement to limit the disk\nquota that database/schema/table can be written or a user can consume for\ndifferent organizations.*\n*Meanwhile, other databases such...