threads
listlengths
1
2.99k
[ { "msg_contents": "Hello.\n\nAs in another mail just before, spin.c seems a bit strange\n(without acutual harm).\n\nspin.h doesn't include pg_sema.h when HAVE_SPINLOCKS is defined,\nbut spin.c always includes it even in the case. The file is\nincluded only to use sizeof(PGSemaphore) to calcualte\nSpinlockSemaSi...
[ { "msg_contents": "Ouch! Sorry for the bogus subject of just-submitted mail.\nI'll make another thread with the fixed subject.\n\n====\nHello.\n\nAs in another mail just before, spin.c seems a bit strange\n(without acutual harm).\n\nspin.h doesn't include pg_sema.h when HAVE_SPINLOCKS is defined,\nbut spin.c al...
[ { "msg_contents": "Hi,\nI noticed that functions is_foreign_expr(), classifyConditions() and\nappendOrderByClause() had variables/arguments named baserel when the\nrelations passed to those could be join or upper relation as well.\nHere's patch renaming those as foreignrel.\n-- \nBest Wishes,\nAshutosh Bapat\nE...
[ { "msg_contents": "Hi,\n\nPostgreSQL performance degrades signficantly in case of high contention.\nYou can look at the attached YCSB results (ycsb-zipf-pool.png) to \nestimate the level of this degradation.\n\nPostgres is acquiring two kind of heavy weight locks during update: it \nlocks TID of the updated tup...
[ { "msg_contents": "While poking around in buildfarm results, I noticed that some members are\ngiving warnings like\n\nanalyze.c:386:181: warning: expression result unused [-Wunused-value]\n\nwhich is apparently caused by the use of StaticAssertExpr in\n\n#define AllocSetContextCreate(parent, name, allocparams) ...
[ { "msg_contents": "Hello,\n\npostgres.exe on Windows doesn't output a crash dump when it crashes before main() is called. The attached patch fixes this. I'd like this to be back-patched. I'll add this to the next CF.\n\nThe original problem happened on our customer's production system. Their application som...
[ { "msg_contents": "Hi,\n\nWhile playing around with newly implemented function \n'pg_replication_slot_advance' , found a server crash .\n\nPlease refer the testcase scenario -\n\ncentos@centos-cpula bin]$ ./psql  postgres\npsql (11devel)\nType \"help\" for help.\n\npostgres=#  SELECT * FROM \npg_create_logical_...
[ { "msg_contents": "Hi,\n\nPlease refer this straight forward scenario  against latest sources of v11.\n\n[centos@centos-cpula bin]$ ./psql  postgres\npsql (11devel)\nType \"help\" for help.\n\npostgres=#  SELECT * FROM \npg_create_logical_replication_slot('regression_slot1', 'test_decoding', \ntrue);\n     slot...
[ { "msg_contents": "Hi,\n\nGetting an another server crash against latest sources of v11 while \nexecuting pg_replication_slot_advance second time . This issue is also  \nreproducible  with the patch given at <Link> \n<https://www.postgresql.org/message-id/CAAJ_b9721pXZST4tGs%2BNPbjRxXF7gmrEomVhTW_Pa2QFD7Lr1A%40...
[ { "msg_contents": "Hello, hackers! I got a permanent failure of master (commit \n2a41507dab0f293ff241fe8ae326065998668af8) check on Windows Server 2008. \nRegression output and diffs as well as config.pl are attached.\n\nI used the following commands:\nbuild.bat > build.txt\nvcregress.bat check > check.txt\n\nB...
[ { "msg_contents": "Hello!\n\nIf I create a big bytea value and try to select it from a table, I get \nan error, something like: \"ERROR: invalid memory alloc request size \n...\".\n\nSo basically we can insert data into a table but then we can't even work \nwith it. Sounds like a bug. Attaching a patch that fi...
[ { "msg_contents": "Dear Postgresql Hackers,\n\nas of now, pg_hba.conf allows us to enable authentification by\ncertificate through the auth-method \"cert\", in which case the user must\nprovide a valid certificate with a certificate common name(CN) matching\nthe database user's name or an entry in a pg_ident ma...
[ { "msg_contents": "Currently if you try to create a too large policy, it fails with:\n\n ERROR: row is too big: size XXXXX, maximum size 8160\n\nAn example for reproducing this is attached.\n\nLooking at the issue, the problem seems to be missing toast table for\npg_policy. Also attached is a one line patch. I...
[ { "msg_contents": "Do execGrouping.c via expression eval machinery, take two.\n\nThis has a performance benefit on own, although not hugely so. The\nprimary benefit is that it will allow for to JIT tuple deforming and\ncomparator invocations.\n\nLarge parts of this were previously committed (773aec7aa), but the...
[ { "msg_contents": "After Karel Moppel piece on pgbench scale/size conversion, it occured to \nme that having this as an option would be nice.\n\nhttps://www.cybertec-postgresql.com/en/a-formula-to-calculate-pgbench-scaling-factor-for-target-db-size/\n\nHere is a attempt at extending --scale so that it can be gi...
[ { "msg_contents": "Hi all,\n\nThe section of the documentation dedicated to TAP tests mentions\nPROVE_FLAGS:\nhttps://www.postgresql.org/docs/devel/static/regress-tap.html\n\nI think that it would be a good idea to mention PROVE_TESTS as well. I\npersonally use and abuse of it, and documenting it instead of ke...
[ { "msg_contents": "Hi!\n\nFirst of all, thanks for the great app :)\n\nI started using PgAdmin with docker image (dpage/pgadmin4) a few weeks\nago, however I thought that it had some issues, so I decided to make\nmy own image. Some of the advantages:\n\n- Use alpine linux instead of centos to greatly reduce ima...
[ { "msg_contents": "Hi\n\nI did update of plpgsql_check and I see, so some functions returns\ndifferent result than on older posgresql. Probably this is wanted behave,\nbut It should be mentioned as partial compatibility break, because some\nregress test can be broken too.\n\ncreate table t(i int);\ncreate funct...
[ { "msg_contents": "Hello,\n\nThe current PostgreSQL documentation overestimates the number of huge pages (vm.nr_hugepages) because the calculation uses the maximum virtual address space. In practice, huge pages are only used for the anonymous shared memory segment. The attached patch fixes the documentation.\...
[ { "msg_contents": "While poking around partition.c I noticed that one of the functions\nthere is *defined* as \"extern\". Normally we'd only do this in the\ndeclaration of the function. I don't really see why it's needed in the\ndefinition.\n\nAnyway, I removed it. I then thought I'd better look around for any\...
[ { "msg_contents": "The SQL standard has the expression \"NEXT VALUE FOR asequence\" to do\nwhat we traditionally do with \"nextval('asequence')\".\n\nThis is an attempt to implement this on top of the recently introduced\nNextValueExpr node.\n\nIf there is no obvious reason why we would not want that, I'll add ...
[ { "msg_contents": "Hi all.\nI'm lead developer for pgCodeKeeper which is a tool for PostgreSQL database\nschema comparison.\n\nIn our tool we have a pg_dump-like schema reader for comparing against live\nDB instances.\nThis reader consumes majority of the time the comparison operation takes\nand we had an idea ...
[ { "msg_contents": "There was a complaint recently about the documentation using the widely\nfrowned-upon md5() function in an unrelated context as an example hash\nfunction. This is quite common in many examples, such as hashing row\nvalues to compare them, or hashing datums if they don't fit into an\nindex. ...
[ { "msg_contents": "Hello hackers,\n\nI would like to propose nepali snowball dictionary patch.\n\nNepali is inflectional and derivational language. And it can be stemmed.\n\ninitdb also patched, so it can determine default text search\nconfiguration.\n\nExamples:\n\n=# select ts_lexize('nepali_stem', 'लेख्');\n...
[ { "msg_contents": "Hello devs,\n\nWhile investigating moving pgbench expressions to fe_utils so that they \ncan be shared with psql (\\if ..., \\let ?), I figure out that psql's \\if \nhas a syntax to test whether a variable exists, which is not yet available \nto pgbench.\n\nThis patch adds the same syntax to ...
[ { "msg_contents": "Allow UNIQUE indexes on partitioned tables\n\nIf we restrict unique constraints on partitioned tables so that they\nmust always include the partition key, then our standard approach to\nunique indexes already works --- each unique key is forced to exist\nwithin a single partition, so enforcin...
[ { "msg_contents": "Hi, I'm new to Postgres hacking, and I'm interested in the possibility of a\nnew feature to make it possible to ensure that Postgres-generated\ntimestamps never decrease even if the system clock may step backwards. My\nuse case is that I'm implementing a form of temporal tables based on\ntran...
[ { "msg_contents": "Hello,\n\nI propose changing the default value of wal_sync_method from fdatasync to open_datasync on Linux. The patch is attached. I'm feeling this may be controversial, so I'd like to hear your opinions.\n\nThe reason for change is better performance. Robert Haas said open_datasync was mu...
[ { "msg_contents": "Hi,\n\nAttached patch for fixing $subject.\n\ns/replicaton/replication/\n\nRegards,\n\n--\nMasahiko Sawada\nNIPPON TELEGRAPH AND TELEPHONE CORPORATION\nNTT Open Source Software Center", "msg_date": "Tue, 20 Feb 2018 10:47:39 +0900", "msg_from": "Masahiko Sawada <sawada.mshk@gmail.com>...
[ { "msg_contents": "Here is a patch that allows COMMIT inside cursor loops in PL/pgSQL. As\nalluded to in earlier threads, this is done by converting such cursors\nto holdable automatically. A special flag \"auto-held\" marks such\ncursors, so we know to clean them up on exceptions.\n\nThis is currently only f...
[ { "msg_contents": "Hi all.\n\nHere is a patch to add support for more types on btree_gin.\n\nI was missing UUID type, so I added it. Since I was there, I checked all\nother built-in types with B-tree but not GIN support, and the remaining\nlist was: uuid, bool, name, bpchar and anyrange (at least ones that seem...
[ { "msg_contents": "Hello hackers,\n\nI decided to run the code from master branch under Valgrind and\ndiscovered that it reports some errors.\n\nThere are multiple reports like this one (seems to be a false alarm):\n\n```\nInvalid read of size 16\n at 0x605F488: __wcsnlen_sse4_1 (in /usr/lib/libc-2.26.so)\n ...
[ { "msg_contents": "Hi all.\n\nI attached a patch to add support for changing ON UPDATE/DELETE actions of\na constraint using ALTER TABLE ... ALTER CONSTRAINT.\n\nBesides that, there is a another change in this patch on current ALTER\nCONSTRAINT about deferrability options. Previously, if the user did ALTER\nCON...
[ { "msg_contents": "Hi,\n\nIn 2015/2016 I've been exploring if we could improve hash joins by\nleveraging bloom filters [1], and I was reminded about this idea in a\nthread about amcheck [2]. I also see that bloom filters were briefly\nmentioned in the thread about parallel hash [3].\n\nSo I've decided to revive...
[ { "msg_contents": "Hi,\n\nI've recently been discussing with Robert how to abstract\nTupleTableSlots in the light of upcoming developments around abstracting\nstorage away. Besides that aspect I think we also need to make them\nmore abstract to later deal with vectorized excution, but I'm more fuzzy\non the de...
[ { "msg_contents": "Hi,\n\nWe are currently investigating an issue with a Gin index containing duplicate item pointers for one of its keys. While we are trying to reproduce this issue, we wanted to reach out to the community to validate our current working theory.\n\nBackground:\nThe discussion in the following ...
[ { "msg_contents": "The current CALL implementation doesn't support parameters, which was a\nbad oversight. This patch fixes that.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services", "msg_date": "Tue, 20 Feb 2018 21:22:29...
[ { "msg_contents": "Here is another attempt at implementing file cloning for pg_upgrade and\nCREATE DATABASE. The idea is to take advantage of file systems that can\nmake copy-on-write clones, which would make the copy run much faster.\nFor pg_upgrade, this will give the performance of --link mode without\nthe ...
[ { "msg_contents": "We will make a set of minor releases next week, ie wrap tarballs\nMonday 2/26 for announcement Thursday 3/1.\n\nThe reason for this unusual scheduling is that an external security\nresearcher found a problem and did not wish to wait for our next\nquarterly releases before publishing his resul...
[ { "msg_contents": "Per the discussion at\nhttps://www.postgresql.org/message-id/flat/54dfd2022c205eda9aa35b88923f027a%40postgrespro.ru\nit's become evident that use of --disable-float8-byval breaks at least one\ncurrent regression test case, because it results in a large change in hash\ntable size for float8 ha...
[ { "msg_contents": "Hi Andrew,\n\nI noticed your animal lorikeet failed in the last two runs:\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=lorikeet&dt=2018-02-21%2009%3A47%3A17\nTRAP: FailedAssertion(\"!(((PageHeader) (page))->pd_special >= (__builtin_offsetof (PageHeaderData, pd_linp)))\", File: \"/...
[ { "msg_contents": "When writing an isolation testcase recently I bumped into the 1024 line buffer\nsize limit in the lexer for my setup block. Adding some stored procedures to\nthe test makes it quite easy to break 1024 characters, and while these could be\nadded as steps it, it’s not a good workaround since t...
[ { "msg_contents": "Hi,\n\nHere's a tiny patch to fix a typo.\n\n-- \nThomas Munro\nhttp://www.enterprisedb.com", "msg_date": "Thu, 22 Feb 2018 09:10:16 +1300", "msg_from": "Thomas Munro <thomas.munro@enterprisedb.com>", "msg_from_op": true, "msg_subject": "Typo in predicate.c comment" }, { ...
[ { "msg_contents": "*Once more, here is an attempt to solve the problem of on-line enabling of\nchecksums that me and Daniel have been hacking on for a bit. See for\nexample\nhttps://www.postgresql.org/message-id/CABUevEx8KWhZE_XkZQpzEkZypZmBp3GbM9W90JLp%3D-7OJWBbcg%40mail.gmail.com\n<https://www.postgresql.org/...
[ { "msg_contents": "Hi hackers,\n\nI found a bug related to the planning of merge joins. The steps to \nreproduce are as follows:\n```\nCREATE TABLE J1_TBL (\n     i integer,\n     j integer,\n     t text\n);\nCREATE TABLE J2_TBL (\n     i integer,\n     k integer\n);\nset enable_hashjoin to off;\nexplain select...
[ { "msg_contents": "Charge cpu_tuple_cost * 0.5 for Append and MergeAppend nodes.\n\nPreviously, Append didn't charge anything at all, and MergeAppend\ncharged only cpu_operator_cost, about half the value used here. This\nchange might make MergeAppend plans slightly more likely to be chosen\nthan before, since ...
[ { "msg_contents": "Here is a tiny patch to fix $SUBJECT in a comment in execPartition.c.\n\nBest regards,\nEtsuro Fujita", "msg_date": "Thu, 22 Feb 2018 20:54:28 +0900", "msg_from": "Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>", "msg_from_op": true, "msg_subject": "Incorrect grammar" }, { ...
[ { "msg_contents": "Hi,\npostgres_fdw isn't expected to push down joins with placeholder vars.\nBut the check for that in foreign_join_ok() only considers\njoinrel->relids. For a child-join relids contains the child relids but\nPlaceHolderInfo refers to the top parent's relids. Hence postgres_fdw\ntries to push ...
[ { "msg_contents": "What is the plan for pg_pltemplate? Is there a roadmap to get rid of\nit? (It's not currently blocking anything for me. I'm just wondering.)\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services\n\n", "m...
[ { "msg_contents": "I noticed that a couple of test cases in the SSL tests fail to connect\nnot for the reason that the tests think they should. Here is a patch to\naugment the test setup so that a test for connection rejection also\nchecks that we get the expected error message.\n\n-- \nPeter Eisentraut ...
[ { "msg_contents": "This is part or my bigger patch https://www.postgresql.org/message-id/flat/2146419.veIEZdk4E4@x200m#2146419.veIEZdk4E4@x200m we've decided to \ncommit by smaller parts.\n\nNow in postgres an StdRdOptions structure is used as binary represenations of \nreloptions for heap, toast, and some inde...
[ { "msg_contents": "Hi,\n\nI have found that Japanese language support for the database server\nhas been dropped for 10. This is because it fell below the 80% of\nstrings translated requirement, so it was shipped without Japanese.\nThis isn't true of all components, but it seems quite alarming that\nwe've pushe...
[ { "msg_contents": "In working on the checksumhelper patch, we came across wanting a background\nworker to be allowed to bypass datallowconn for a database. Right now we\ndidn't take care of that, and just said \"you have to ALTER TABLE\" first.\n\nSpecifically for this usecase that is OK, but not paticularly us...
[ { "msg_contents": "Hi,\r\n\r\nI wanted to submit the below patch.\r\n\r\nPatch Description\r\nCurrently, while saving the TOAST entry the call to index access method insert (aminsert) passed IndexInfo attribute as NULL. IndexInfo parameter was introduced in Postgres 10 for the aminsert method to allow caching d...
[ { "msg_contents": "Here is a patch that adds a way to specify an external command for\nobtaining SSL passphrases. There is a new GUC setting\nssl_passphrase_command.\n\nRight now, we rely on the OpenSSL built-in prompting mechanism, which\ndoesn't work in some situations, including under systemd. This patch\n...
[ { "msg_contents": "Hi Peter, All,\n\n\nFirst question:\n\nWhy do we currently use RTLD_GLOBAL loading extension libraries, but\ntake pains ([1]) to make things work without RTLD_GLOBAL. It seems like\nit'd be both safer to RTLD_LOCAL on platforms supporting it (or\nequivalent), as well as less error-prone becau...
[ { "msg_contents": "Hi hackers,\n\nDue to recent naming inflation, the isolation tester output has become\njagged (when viewed in a monospace font):\n\ntest lock-update-delete ... ok\ntest lock-update-traversal ... ok\ntest insert-conflict-do-nothing ... ok\ntest insert-conflict-do-nothing-2 ... ok\ntes...
[ { "msg_contents": "Hi hackers,\n\nHere is an attempt at updating parallel.sgml to cover Parallel Hash.\nI will be neither surprised nor offended if Robert would like to put\nit differently!\n\n-- \nThomas Munro\nhttp://www.enterprisedb.com", "msg_date": "Sat, 24 Feb 2018 16:30:28 +1300", "msg_from": "Th...
[ { "msg_contents": "Hi all,\n\nI am on Postgres 10.2 and try to get a statement level trigger to work \nthat is executed after UPDATE statements on a particular table. This \ntrigger references both the old and new transition table and for some \nreason I am unable to reference each transition table multiple tim...
[ { "msg_contents": "At my day job I've been doing a fair amount of routine query and\nschema optimization and I've noticed on particular query shape that\nhas repeatedly caused problems, and it's one we've talked about\nbefore.\n\nselect * from table where simple-restriction 0 OR (complex-subquery)\n\nFor exampl...
[ { "msg_contents": "Hi Aleksander,\n\n This is Yan from Columbia University. I saw PostgreSQL is selected in\nGSOC 2018 and pretty interested in the ideas of thrift data types support\nthat proposed by you. So, I want to prepare for a proposal based on this\nidea. Can I have more detailed information of what d...
[ { "msg_contents": "A heap rewrite during a DDL command publishes changes for relations\nnamed like pg_temp_%u, which are not real tables, and this breaks\nreplication systems that are not aware of that. We have a hack in the\npgoutput plugin to ignore those, but we knew that was a hack. So here\nis an attempt...
[ { "msg_contents": "pg_class.relhaspkey doesn't seem to be used or useful for anything, so\ncan we remove it? See attached patch.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services", "msg_date": "Sat, 24 Feb 2018 21:27:41 ...
[ { "msg_contents": "Hello,\n\nI think, I found a way to create a performant versioned triple store.\n\nNeon achieves versioning *almost* without copy of a set of tuples\nthat looks like:\n\n (graph, subject, predicate, object)\n\nI described the implementation in GNU Guile using wiredtiger\nin the attached (po...
[ { "msg_contents": "Hi all,\n\nFor most beginners (and even a lot of advanced users) there is a strong\nconfusion between simple VACUUM and VACUUM FULL. They think \"full\" is\nsimply an option to the maintenance operation vacuum while it's not. It's a\ncomplete different operation.\n\nI have a hard time expla...
[ { "msg_contents": "Hello,\n\nIt would be nice if application connected to a Postrgesql database could\nsend and receive JSONB in binary. It could save some useless text\nconversion. All works could be done on application side which are often\nmore scalable than database itself.\n\nRegards,\n\nAnthony Communier\...
[ { "msg_contents": "Back in\n\nhttps://www.postgresql.org/message-id/4e384467-f28a-69ce-\n75aa-4bc01125a39d%40anastigmatix.net\n\nI got intrigued about casting float values to numeric. Two queries below\n(one for float4, one for float8) show what happens for float values with\nbits of precision from one up to th...
[ { "msg_contents": "Hello,\n\nOur customer reported that pg_rewind took many hours to synchronize 400GB of data, even if the new primary doesn't perform any updates. The attached patch fixes that.\n\nThe cause was that pg_rewind failed to recognize data files in tablespace directories, resulting in the full cop...
[ { "msg_contents": "Hi,\n\nWith commit 4b93f57999a2ca9b9c9e573ea32ab1aeaa8bf496, which plpgsql\nuse its DTYPE_REC code paths for composite-type variables - below\ntest started failing with \"invalid memory alloc request size 2139062167\n<%28213%29%20906-2167>\"\nerror.\n\nTestcase:\n\ncreate table foo ( name var...
[ { "msg_contents": "Hi,\nIn a multi-level partitioned table, a parent whole-row reference gets\ntranslated into nested ConvertRowtypeExpr with child whole-row\nreference as the leaf. During the execution, the child whole-row\nreference gets translated into all all intermediate parents' whole-row\nreferences, ult...
[ { "msg_contents": "I tried loading the jsonlog module from\nhttps://github.com/michaelpq/pg_plugins into Postgres 9.6.\n\nHowever it seems it resulted in logs only for session log messages but\nnot any background worker log messages. We have log_checkpoints set\nbut there were no log messages in the json log ab...
[ { "msg_contents": "Greetings,\n\nAttached is a patch (which applies cleaning against a2a2205, but not so\nmuch anymore, obviously, but I will fix after the releases) which\ngreatly improves the big pg_dump TAP tests. There's probably more which\ncan be done, but I expect people will be much happier with this. ...
[ { "msg_contents": "Hackers,\n\nJust a few days left until the last Commitfest for the PG11 release begins!\n\nI'm planning to fill the CFM role, unless there are objections.\n\nRegards,\n-- \n-David\ndavid@pgmasters.net\n\n", "msg_date": "Mon, 26 Feb 2018 13:51:01 -0500", "msg_from": "David Steele <davi...
[ { "msg_contents": "It appears this was fixed back in 2014 with 750c5ee. I propose for it\nto be removed from the TODO list.\n\nThanks,\nPatrick\n\n", "msg_date": "Mon, 26 Feb 2018 15:08:39 -0800", "msg_from": "Patrick Krecker <pkrecker@gmail.com>", "msg_from_op": true, "msg_subject": "TODO item ...
[ { "msg_contents": "Hi,\n\nI have a question of how to use pg_rewind.\nI see the manual. It says bringing an old master server back online after failover is typical case.\n\nmanual:\n A typical scenario is to bring an old master server back online after failover, as a standby that follows the new master.\n\nI c...
[ { "msg_contents": "$subject\n \nThe query I'm using is 14K and I have not produced a test-case, so this is \njust a heads-up.\n \n-- Andreas Joseph Krogh\n​", "msg_date": "Tue, 27 Feb 2018 11:16:38 +0100 (CET)", "msg_from": "Andreas Joseph Krogh <andreas@visena.com>", "msg_from_op": true, "msg_s...
[ { "msg_contents": "Hi,\n\nAttached a minor patch for a typo: s/log/lag\n\nRegards,\n\n-- \nAtsushi Torikoshi\nNIPPON TELEGRAPH AND TELEPHONE CORPORATION\nNTT Open Source Software Center", "msg_date": "Tue, 27 Feb 2018 19:22:20 +0900", "msg_from": "atorikoshi <torikoshi_atsushi_z2@lab.ntt.co.jp>", "m...
[ { "msg_contents": "Hi,\n\nI am getting a server crash on PG-HEAD with below test case.\n\nSET parallel_setup_cost=0;\nSET parallel_tuple_cost=0;\ncreate or replace function foobar() returns setof text as\n$$ select 'foo'::varchar union all select 'bar'::varchar ; $$\nlanguage sql stable;\n\npostgres=# select fo...
[ { "msg_contents": "Hello, hackers.\n\nI've tried to build last state of REL9_5_STABLE branch (commit\n1f19e46124eee8c6a54834) and under Win32 encountered following errors:\n\n\n C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\bin\\amd64\\link.exe /ERRORREPORT:QUEUE /OUT:\".\\Release\\createdb\\crea...
[ { "msg_contents": "Hello hackers,\n\nMy colleague Anastasia Lubennikova and I were discussing a weird piece\nof code in src/include/port/atomics.h:\n\n```\n#ifdef FRONTEND\n#error \"atomics.h may not be included from frontend code\"\n#endif\n```\n\nWe tried to follow commit messages [1] and discussions [2]. How...
[ { "msg_contents": "Large percentage of postgres installations, for example PGDG packages \nfor Debian/Ubuntu,\nassume by default that log management will be handled by extrernals \ntools such as logrotate.\n\nUnfortunately such tools have no way to tell postgres to reopen log file \nafter rotation\nand forced t...
[ { "msg_contents": "I just committed some regression test cleanup that removed or renamed\na couple of C-language functions in regress.so. I see that crake is\nnow failing XversionUpgrade tests, and although I can't see the details,\nI bet the problem is from trying to load CREATE FUNCTION commands from\nthe ol...
[ { "msg_contents": "Hi hackers.\n\nI would like to present patch set implementing opclass parameters.\n\nThis feature was recently presented at pgconf.ru:\nhttp://www.sai.msu.su/~megera/postgres/talks/opclass_pgconf.ru-2018.pdf\n\nA analogous work was already done by Nikolay Shaplov two years ago:\nhttps://www.p...
[ { "msg_contents": "I updated Amit Langote's patch for INSERT ON CONFLICT DO UPDATE[1].\nFollowing the lead of edd44738bc88 (\"Be lazier about partition tuple\nrouting.\") this incarnation only does the necessary push-ups for the\nspecific partition that needs it, at execution time. As far as I can\ntell, it wo...
[ { "msg_contents": "I've run into what seems to be a bug in ExecInsert() that causes a crash\nwhen inserting multiple rows into a partitioned table that each go into\ndifferent partitions with different tuple descriptors. Crash occurs if\nExecInsert() returns without resetting estate->es_result_relation_info\nb...
[ { "msg_contents": "Hi,\n\nI've created the new thread for the changing AV launcher scheduling.\nThe problem of AV launcher scheduling is described on [1] but I\nsummarize it here.\n\nIf there is even one database that is at risk of wraparound, currently\nAV launcher selects the database having the oldest datfro...
[ { "msg_contents": "Attached patch introduces a new function pg_shmem_init_time(),\nwhich returns the time shared memory was last (re)initialized.\nIt is created for use by monitoring tools to track backend crashes.\n\nCurrently, if the 'restart_after_crash' option is on, postgres will just \nrestart.\nAnd the o...
[ { "msg_contents": "Attached patch allow direct convertion of numeric types to bool like \ninteger::bool.\nSupported types:\n - smallint;\n - bigint;\n - real;\n - double precision;\n - decimal(numeric).\n\nThis functionality is helped with migration from Oracle.\n\n-- \nNikita Zhuchkov\nPostgres Profession...
[ { "msg_contents": "This is a follow-up patch from the exclude unlogged relations discussion\n[1].\n\nThe patch excludes temporary relations during a base backup using the\nexisting looks_like_temp_rel_name() function for identification.\n\nIt shares code to identify database directories from [1], so for now\nth...
[ { "msg_contents": "Hi,\n\nI want to propose a bunch of patches which allow to reduce WAL traffic\ngenerated by CREATE INDEX for GiST, GIN and SP-GiST. Similarly to b-tree\nand RUM, we can now log index pages of other access methods only once\nin the end of indexbuild process. Implementation is based on generic_...
[ { "msg_contents": "Hi,\nI created an index on a 11devel base while sampling pg_stat_activity with a little tool. Tool catches a line if state = active. Collected rows are aggregated and sorted by activity percentage.\n\nTest environment :\n\nselect version();\n ...
[ { "msg_contents": "Hi,\n\nsome installations have data which is only rarerly read, and if they are\nso large that dumps are not routinely taken, data corruption would only\nbe detected with some large delay even with checksums enabled.\n\nThe attached small patch verifies checksums (in case they are enabled)\nd...
[ { "msg_contents": "So far, a nested CALL or DO in PL/pgSQL would not establish a context\nwhere transaction control statements were allowed. This patch fixes\nthat by handling CALL and DO specially in PL/pgSQL, passing the\natomic/nonatomic execution context through and doing the required\nmanagement around tr...
[ { "msg_contents": "These tests were originally included in the exclude unlogged tables\npatch [1] to provide coverage for the refactoring of reinit.c.\n\nAfter review we found a simpler implementation that did not require the\nreinit.c refactor so I dropped the tests from that patch.\n\nI did not include the re...
[ { "msg_contents": "Hackers!\n\nI'll be starting the Commitfest at midnight AoE (07:00 ET, 13:00 CET) so\nplease get your patches in before then.\n\nPlease remember that if you drop a new and large (or invasive patch)\ninto this CF it may be moved to the next CF.\n\nThis last CF for PG11 should generally be rest...
[ { "msg_contents": "Currently, you can't run SET TRANSACTION in PL/pgSQL. A normal SQL\ncommand run inside PL/pgSQL acquires a snapshot, but SET\nTRANSACTION does not work anymore if a snapshot is set. Here is a patch\nto work around that by handling this command separately. I have coded\nthis here bypassing ...
[ { "msg_contents": "Hi,\n\na significant number of times during investigations of bugs I wondered\nwhether running the cluster with various settings, or various tools\ncould've caused the issue at hand. Therefore I'd like to propose adding\na 'tainted' field to pg_control, that contains some of the \"history\" ...
[ { "msg_contents": "This patch set adds support for INOUT parameters to procedures.\nCurrently, INOUT and OUT parameters are not supported.\n\nA top-level CALL returns the output parameters as a result row. In\nPL/pgSQL, I have added special support to pass the output back into the\nvariables, as one would expe...
[ { "msg_contents": "I tried doing a VPATH build referencing a source directory that I'd distclean'd\nbut not maintainer-clean'd, which should simulate the case of a VPATH\nbuild from a tarball. I was quite surprised that it fell over:\n\n...\ngcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-st...
[ { "msg_contents": "Hi,\n\nThe attached patches add support for filtering rows in the publisher.\nThe output plugin will do the work if a filter was defined in CREATE\nPUBLICATION command. An optional WHERE clause can be added after the\ntable name in the CREATE PUBLICATION such as:\n\nCREATE PUBLICATION foo FOR...