threads
listlengths
1
2.99k
[ { "msg_contents": "Hello,\n\nSince commit cdf91edb (2012), nodeIndexonlyscan.c says:\n\n /*\n * Predicate locks for index-only scans must be\nacquired at the page\n * level when the heap is not accessed, since\ntuple-level predicate\n * locks need t...
[ { "msg_contents": "Hi.\n\nI just noticed $subject, which attached seems to fix, although not sure if\nthat's the correct fix for the issue.\n\ncreate table foo (a int primary key);\ncreate table doo (a int primary key);\ncreate table bar (a int references foo references doo) partition by list (a);\ncreate table...
[ { "msg_contents": "I noticed that a comment in get_partition_dispatch_recurse claims that:\n\n\"it contains the\n* leaf partition's position in the global list *leaf_part_oids minus 1\"\n\nThe \"minus 1\" part is incorrect. It simply just stores the 0-based\nindex of the item in the list. I was going to fix it ...
[ { "msg_contents": "The longer version of $subject is: how would one go about, in the\nbackend using SPI (or SPI and maybe other server APIs as needed),\nobtaining the same inferred parameter information that a front-end\nclient can get with the Describe (statement variant) extended-query\nmessage?\n\nI ask beca...
[ { "msg_contents": "Hi all,\n\nWhile playing with a standby as follows I noticed that xlogtemp.*\ngenerated in pg_wal may stay around when entering crash recovery. The\ntest I was conducting is pretty simple:\n- Use a primary and a standby.\n- Run pgbench on the primary.\n- Then restart the standby with -m imme...
[ { "msg_contents": "Commit ba11258ccb which renamed inet_net_ntop.c in src/backend/utils/adt, and\nintroduced inet_net_ntop.c in src/ports didn’t update the IDENTIFICATION lines\nin the header comments. Is there a reason to keep the old locations rather\nthan updating to the actual locations as per the below tr...
[ { "msg_contents": "Hi,\ni run test using pg10.0 on my machine, and the program crashed on _bt_getbuf.\nAnd i found the following code:\nthe routine _bt_page_recyclable say maybe the page is all-zero page, if so\nthen the code run (BTPageOpaque) PageGetSpecialPointer(page); it will be failed because\nit access i...
[ { "msg_contents": "Hi,\n\nI noticed that if log_min_messages is set to ‘debug2’, it shows ‘debug’ instead of debug2.\nShowing other debug options like debug1 work normally.\nThis is same for client_min_messages.\n\nAccording to a033daf56 and baaad2330, debug is an alias for debug2 and for backward-compatibility...
[ { "msg_contents": "Hi hackers!\n\nExperimenting with the new pluggable storage API, I found that amcanbackward\nflag is not checked in build_index_paths() before\nbuild_index_pathkeys(... BackwardScanDirection) call when we are building\npaths for ORDER BY. And this flag is even not copied into IndexOptInfo st...
[ { "msg_contents": "Hackers,\n\nThere was a bug report sent by Hao Lee about Windows build breakage,\n\"BUG #15167: error C2365: 'errcode' : redefinition; previous definition\"\nhttps://www.postgresql.org/message-id/152446498404.19807.4659286570762153837%40wrigleys.postgresql.org\n\nHeikki was the only person wh...
[ { "msg_contents": "Hi!\n\nI'm not understand why postgres prefers to sort table instead of using \nindex only scan when query is a simple inner join on composite type. \nQuery with equality clause with constant works fine with index scan but \njoin not. Could somebody point me why? Thank you.\n\nAnd I'm not abl...
[ { "msg_contents": "It seems quite strange to me that we calculate total_pages before any\npartition pruning and constraint exclusion is performed during\nset_base_rel_sizes(). Wouldn't it be better to wait until after that's\ndone so we don't mistakenly count relations we're not going to scan?\n\nDelaying the c...
[ { "msg_contents": "Dear hackers,\n\nI’m working on a foreign database wrapper for Kafka [1]\nNow I am trying to make it parallel aware. Following \nthe documentation [2]\nHowever it seems that I can’t make it use more than a\nsingle worker with force_parallel_mode = on.\n\nI wonder if I need to do more than jus...
[ { "msg_contents": "Hi,\n\nI played around with the GUC memory units, specifically to test the new \nGUC_UNIT_BYTES flag (commit 6e7baa32):\n\n$ postmaster -c track_activity_query_size=1024kB\nFATAL: 1048576 is outside the valid range for parameter \n\"track_activity_query_size\" (100 .. 102400)\n\n$ postmaster...
[ { "msg_contents": "Hi hackers,\n\nThere is a join optimization we don't do -- removing inner join of a \ntable with itself on a unique column. Such joins are generated by \nvarious ORMs, so from time to time our customers ask us to look into \nthis. Most recently, it was discussed on the list in relation to an ...
[ { "msg_contents": "Hi.\n\nCommit 499be013de6 used 'partition' where it really meant 'partitioned' in\na few places including in a variable name. For example, what almost all\nplaces call 'partitioned_rels', make_partition_pruneinfo called\n'partition_rels'.\n\nAttached a patch to make that uniform to avoid con...
[ { "msg_contents": "Hi, \nCurrently our customer uses PostgreSQL 9.6 and hits ECPG's bug during using numeric data type by SQLDA. \nI confirmed that this problem is occurred on master and 9.6 latest branch. \n\nPROBLEM\n---------------------------------------\nWhen the integer part of numeric data type is \"0\",...
[ { "msg_contents": "Hi Aleksander,\n\n I have the requirements to return a bytea array for some functions in\npg_thrift plugin.\nWhat I did was similar to the following,\n\nbytea** ret = palloc(len * sizeof(bytea*));\nfor (int i = 0; i < len; i++) {\n // allocate space\n ret[i] = palloc(size);\n // fill ...
[ { "msg_contents": "We got the following assertion failure at our buildfarm of master branch \nof Postgres in contrib/test_decoding regression tests:\n\n2018-05-07 19:50:07.241 MSK [5af083bf.54ae:49] DETAIL: Streaming transactions committing after 0/2A00000, reading WAL from 0/29FFF1C.\n2018-05-07 19:50:07.241 ...
[ { "msg_contents": "Previous code uses BasicOpenFile() + close().\n\naccess() should be faster than BasicOpenFile()+close() and access()\nshould be more correct since BasicOpenFile() could fail for various\ncases (e.g. due to file permission, etc) even the file exists.\n\naccess() is supported on Linux/Unix. I d...
[ { "msg_contents": "Hello, as in pgsql-bug ML.\n\nhttps://www.postgresql.org/message-id/20180517.170021.24356216.horiguchi.kyotaro@lab.ntt.co.jp\n\nMaster can go into infinite loop on shutdown. But it is caused by\na broken database like storage rolled-back one. (The steps to\nreplay this is shown in the above m...
[ { "msg_contents": "Hi\n\njust for curiosity - I tested simple script\n\npostgres=# do\n$$\ndeclare s bigint = 0;\nbegin\n for i in 1..1000000000 loop\n s := s + i;\n end loop;\n raise notice '%', s;\nend;\n$$;\n\nto see a overhead of some components\n\n 5,72% plpgsql.so [.] ...
[ { "msg_contents": "Hi all,\n\n\nI've got some question about XML OPTION and pg_restore.\n\nIn a xml type column are stored documents.\n\nWhen restoring a plain SQL dump, we got the message :\n\n/ERROR:  invalid XML content//\n//DETAIL:  line 1: StartTag: invalid element name//\n//<!DOCTYPE qgis PUBLIC 'http://m...
[ { "msg_contents": "Hello,\n\nEarlier this week we have split our Postgres 9.6.8 shards, each having two\ndatabases, into one database per shard setup. This was done by promoting\nreplicas and subsequently removing unused databases.\n\nImmediately afterwards we have discovered repeated 'tuple concurrently update...
[ { "msg_contents": "I regularly track the number of items documented in each major release.\nI use the attached script. You might be surprised to learn that PG 11\nhas the lowest feature count of any release back through 7.4:\n\n\t7.4 280\n\t8.0 238\n\t8.1 187\n\t8.2 230\n\t8.3 237\n\t8.4 ...
[ { "msg_contents": "Hello\n\nI think it is better to add freeing operation of output SQLDA to the current PostgreSQL documentation.\nAs far as I can see src/interfaces/ecpg/ecpglib/execute.c,\nif a previously existing sqlda is set to output SQLDA, \nthen a previously existing sqlda is freed.\nBut, the new output...
[ { "msg_contents": "Hi\n\nI was building the sources I got from https://www.postgresql.org/\nftp/snapshot/dev/ on Windows x64 and got the whole bunch of errors\nlike \"*Cannot\nopen include file: 'catalog/pg_type_d.h\"* , *\"Cannot open include file:\n'catalog/pg_tablespace_d.h'\" . *I've attached the log.\n\nTh...
[ { "msg_contents": "If pg_control is for some reason empty, we give an error messagfe like:\n\n2018-05-18 13:24:03.342 CEST [19697] PANIC: could not read from control\nfile: Success\n\nWhich is, uh, wrong -- it's definitely not successful.\n\nObviously this is a state where the user is fairly screwed anyway, bu...
[ { "msg_contents": "The new pg_basebackup -k option stands for --no-verify-checksums. That\nis nearly the opposite of initdb -k, which is for enabling checksums. I\nthink it could be confusing to have two related tools use the same\noption letter for nearly opposite purposes.\n\nHow about using capital -K in p...
[ { "msg_contents": "These two small patches allow us to run \"perl -cw\" cleanly on all our \nperl code.\n\n\nOne patch silences a warning from convutils.pl about the unportability \nof the literal 0x100000000. We've run for many years without this giving \nus a problem, so I think we can turn the warning off pr...
[ { "msg_contents": "Long story short: It expects an array of paths, but will die if it\ncan't find the symbol in the first path. Arguably it's a bug, but\nsince the original use case for multiple paths is long gone anyway, it\nmight never occur in practice. The attached patch changes it to expect\na single path....
[ { "msg_contents": "I wrote [1]:\n\n> On 4/26/18, Tom Lane <tgl@sss.pgh.pa.us> wrote:\n>> if I counted correctly. (Array entries should be ignored for this\n>> purpose; maybe we'll autogenerate them someday.)\n>\n> Hmm, that wouldn't be too hard. Add a new metadata field called\n> 'array_type_oid', then if it f...
[ { "msg_contents": "Our configure script goes to considerable lengths to try to identify\nwhat printf width modifier to use for int64 values. In particular\nsee PGAC_FUNC_SNPRINTF_LONG_LONG_INT_MODIFIER, which claims\n\n# MinGW uses '%I64d', though gcc throws a warning with -Wall,\n# while '%lld' doesn't genera...
[ { "msg_contents": "I noticed while poking at the recent ecpg unpleasantness that some\nof my older critters were warning about use of %lf conversions in\nprintf. Looking into it, I find that current POSIX says the \"l\"\nis a no-op, while SUSv2 says it's undefined. I think this usage\ngot into our code as a r...
[ { "msg_contents": "Per bug #15200, our support for sql2008 FETCH FIRST syntax is incomplete\nto the extent that it should be regarded as a bug; the spec quite\nclearly allows parameters/host variables in addition to constants, but\nwe don't.\n\nAttached is a draft patch for fixing that, which additionally fixes...
[ { "msg_contents": "Hi all,\n\nThis is basically a new thread after what has been discussed for\npg_controldata with its error handling for read():\nhttps://www.postgresql.org/message-id/CABUevEx8ZRV5Ut_FvP2etXiQppx3xVzm7oOaV3AcdHxX81Yt8Q%40mail.gmail.com\n\nWhile reviewing the core code, I have noticed similar ...
[ { "msg_contents": "Many times I've wanted to export a subset of a database, using some sort of\nrow filter condition on some of the large tables. E.g. copying a\nproduction database to a staging environment, but with some time series\ndata only from the past month.\n\nWe have the existing options:\n --include...
[ { "msg_contents": "<digression>\n\nFor amusement's sake, I was playing around with NetBSD-current (9-to-be)\ntoday, and tried to compile Postgres on it. It works OK --- and I can\neven confirm that our new code for using ARM v8 CRC instructions works\nthere --- but I got a boatload of compile warnings like thi...
[ { "msg_contents": "Hi all,\n\nThe kerberos test suite mentions the package list to use on a set of\ndistributions, which is very useful. However we don't do the same for\nldap. Something like the attached would be adapted then to help setting\nup a test environment?\n\nI have at hand only a Debian installatio...
[ { "msg_contents": "Hi all\n\nBy default, cascading replicas don't follow an upstream's timeline change.\nI'm not arguing that decision, but as I think it violates POLA somewhat\nit'd be nice to have an informative message.\n\nCurrently the user gets repeating messages like\n\nLOG: restarted WAL streaming at 25...
[ { "msg_contents": "Hi,\n\nThe following files are installed even when I build PostgreSQL 9.5+ on RHEL 7 -\nPython 2.7:\n\nhstore_plpython3u--1.0.sql\nhstore_plpython3u.control\njsonb_plpython3u--1.0.sql\njsonb_plpython3u.control\nltree_plpython3u--1.0.sql\nltree_plpython3u.control\n\nIs this expected?\n\nRegard...
[ { "msg_contents": "I have just release version 8 of the PostgreSQL Buildfarm client\n\nIt can be downloaded from \n<https://buildfarm.postgresql.org/downloads/releases/build-farm-8.tgz> \nor <https://github.com/PGBuildFarm/client-code/archive/REL_8.tar.gz>\n\nThis release contains a number of small changes to m...
[ { "msg_contents": "This is the first in a series of patches to reduce the number of warnings\nfrom perlcritic. The current plan is to submit a separate patch for each\nwarning or small set of related warnings, to make reviewing more\nstraightforward.\n\nThis particular patch addresses the warning caused by fa...
[ { "msg_contents": "\nWe haven't insisted on context diffs in years now, and one of my \ninterlocutors has just turned handsprings trying to follow the advice at \n<https://wiki.postgresql.org/wiki/Working_with_Git> to produce his first \npatch.\n\n\nUnless someone objects really violently I'm going to rip all t...
[ { "msg_contents": "Hi mentors and hackers,\n\n I have set up a github repo for the pg thrift plugin work, and here is\nthe address (https://github.com/charles-cui/pg_thrift). And I have first\nversion of binary protocol implemented, although it is still a very early\nstage. The current interface is to return ...
[ { "msg_contents": "This is my first time submitting a patch here; apologies in advance if I \nflub the process.\n\nOn windows, if you pipe data to psql, the password prompt correctly \nreads from and writes to the console, but the password text is echoed to \nthe console. This is because echoing is disabled on ...
[ { "msg_contents": "Hello PostgreSQL Team,\n\nI'm doing a project at my university (HU Berlin) involving homomorphic\nencrypted searches on data bases. Does PostgreSQL support homomorphic\nencryption-based searches? I couldn’t find the information about it on the\ninternet. Could you provide me a web link or a P...
[ { "msg_contents": "Hi, \n\nWhen I looked into the dshash.c, I noticed that dshash.c, bipartite_match.c and knapsack.c are not mentioned at README.\nThe other files at src/backend/lib are mentioned. I'm not sure this is an intentional one or just leftovers.\n\nDoes anyone have opinions?\n\nPatch attached.\n- add...
[ { "msg_contents": "Hello.\n\nWhile I revised the translation, I ran across the following code.\n\n> form_policy = (Form_pg_policy) GETSTRUCT(tuple);\n>\n> appendStringInfo(&buffer, _(\"policy %s on \"),\n> NameStr(form_policy->polname));\n> getRelationDescription(&buffer, form_policy->polre...
[ { "msg_contents": "plperl fails to install with perl 5.27.11, which is to be released as 5.28.0:\n\n2018-05-17 20:01:44.556 UTC [22629] pg_regress ERROR:\n2018-05-17 20:01:44.556 UTC [22629] pg_regress CONTEXT: while running Perl initialization\n2018-05-17 20:01:44.556 UTC [22629] pg_regress STATEMENT: CREATE...
[ { "msg_contents": "Our database seems to be broken, normally it uses about 1-2% of cpu, but if\nwe run some additional backend services making UPDATE and INSERT queries\nfor 10M rows table (about 1 query per 3 second) everything is going to hell\n(including CPU increase from 2% to 98% usage).\n\nWe have decided...
[ { "msg_contents": "Hi,\n\nwe have an error happening on a catalog table on one of the dbs in the\ninstance.\nThis is the error report form:\n\nA description of what you are trying to achieve and what results you\nexpect.:\n\nAny kind of vacuum fails on pg_authid table, I would expect it to succeed.\nThis is occ...
[ { "msg_contents": "PG 11 beta1 is failing on ppc64el. All Debian/Ubuntu releases except\nJessie are affected. My guess is on problems with llvm/jit, because of\nthe C++ style error message (and LLVM is disabled on Jessie).\n\nDebian sid:\n15:59:29 2018-05-22 13:59:24.914 UTC [29081] pg_regress/strings STATEMENT...
[ { "msg_contents": "I'd been looking over the COPY FROM code tonight when I saw something\npretty scary looking:\n\n/* on input just throw the header line away */\nif (cstate->cur_lineno == 0 && cstate->header_line)\n{\n cstate->cur_lineno++;\n if (CopyReadLine(cstate))\n return false; /* done */\n}\...
[ { "msg_contents": "Hello hackers,\n\nWe are currently using the dpage/pgadmin4 image to run a pgAdmin4 web\ninterface behind an AWS application load balancer.\nThe load balancer is configured to check the health of containers by\nquerying the /login URI and checking if it answers with a 200 HTTP code.\n\nHoweve...
[ { "msg_contents": "contrib/xml2 has been claimed to be deprecated since PostgreSQL 8.3. I\ntook a look through the functions it offers and perhaps with xmltable\nnow being available, they could all be replaced using built-in\nfunctions, perhaps with some small tweaking.\n\nBut we don't have any replacement lin...
[ { "msg_contents": "Hi,\n\nIn the  latest PG v11,  found that  -D option of pg_resetwal is only \nworks with absolute path .. not with relative path\n\ne.g\n\nNot Working -\n\n[centos@localhost bin]$ ./pg_resetwal -D data\npg_resetwal: could not read permissions of directory \"data\": No such \nfile or directory...
[ { "msg_contents": "Hi,\n\nI've been working on a patch to add a little cache to SubPlans, to speed \nup queries with correlated subqueries, where the same subquery is \ncurrently executed multiple times with the same parameters. The idea is \nto cache the result of the subplan, with the correlation vars as the ...
[ { "msg_contents": "Hello,\n\nI'm Yuzuko Hosoya. This is my first PostgreSQL project participation.\n\nI have been developing partitioning advisor prototype with Julien Rouhaud.\nIt will be a new feature of HypoPG[1], which is a PostgreSQL extension, and\nwill help partitioning design tuning. Currently, HypoPG ...
[ { "msg_contents": "Hi Professionals,\n I hope you are all doing good. Actually I got one problem. I\nhave 2 functions like below. Those are having 11 and 14 parameters with\ncommonly last parameter is variadic array type.\n\nfunc_get_item_list_phy_param(smallint, numeric, numeric, character varying,\...
[ { "msg_contents": "While looking at this:\nhttps://stackoverflow.com/q/50413623/6464308\nI realized that \"LOCK TABLE <unlogged table>\" puts a\nStandby/LOCK into the WAL stream, which causes a log flush\nat COMMIT time.\n\nThat hurts performance, and I doubt that it is necessary.\nAt any rate, DROP TABLE on an...
[ { "msg_contents": "I have an application generating the following query on a DATE column in \nPostgreSQL 10.1:\n\n > SELECT TO_CHAR(DATE_TRUNC('month', jobs.active_until), 'YYYY-MM')\n > FROM jobs\n > GROUP BY DATE_TRUNC('month', jobs.active_until)\n > LIMIT 500\n\nI wanted to support it with an expression inde...
[ { "msg_contents": "You construct a z-score for a set of values by subtracting the average from the value and dividing the result by the standard deviation. I know how to do this in a two-step procedure. First, I compute the average and standard deviation. In a second run I use the formula and apply it to each v...
[ { "msg_contents": "In PG11, pq_sendbyte got changed from taking an int parameter to taking\nan int8.\n\nWhile that seems to work in general, it does mean that there are now\nseveral places in the code that do the equivalent of:\n\n unsigned char x = 128;\n pq_sendbyte(&buf, x);\n\nwhich I believe is not w...
[ { "msg_contents": "I tried to run the regression test for sepgsql on F28 (so I could\nfix the now-obsolete expected-file therein). It fails at this\npreparatory step:\n\n$ sudo semodule -u sepgsql-regtest.pp\nThe --upgrade option is deprecated. Use --install instead.\nneverallow check failed at /var/lib/selinu...
[ { "msg_contents": "Hello,\n\nI'm the maintainer of PostgreSQL on OpenBSD.\nToday I tried the beta1 of PostgreSQL 11 on OpenBSD -current @amd64.\n\nWithout JIT, everything works fine.\n\nWhen i enable JIT, regress tests fail with this error :\n\nindexing ... FAILED (test process exited with e...
[ { "msg_contents": "Hello hackers,\n\nAs announced elsewhere[1][2][3], at EnterpriseDB we are working on a\nproposal to add in-place updates with undo logs to PostgreSQL. The\ngoal is to improve performance and resource usage by recycling space\nbetter.\n\nThe lowest level piece of this work is a physical undo ...
[ { "msg_contents": "Hello\n\nWe are evaluating the use of shared buffers for temporary tables. The\nadvantage being queries involving temporary tables can make use of parallel\nworkers.\n\nChallenges:\n1. We lose the performance benefit of local buffers.\n2. Additional complexity in shared buffer manager - Buff...
[ { "msg_contents": "Now that PostgreSQL 11 beta is out, I wonder if it's worth to add\nPostgreSQL 11 to the feature matrix page.\n\nhttps://www.postgresql.org/about/featurematrix/\n\nAdding PostgreSQL 11 to the page will give users at-a-glance-dfference\nbetween 11 and previous releases, which could bring clearn...
[ { "msg_contents": "Hi,\n\n\nThe current executor structure limits us in a number of ways that are\nbecoming problematic. I'll outline in this email how I think we should\nrework it. Including a prototype for the first, most drastic, steps.\n\nThe primary problems with the current design that I want to address ...
[ { "msg_contents": "Hello.\n\nI happened to see the following in XLogWrite.\n\n> ereport(PANIC,\n> (errcode_for_file_access(),\n> errmsg(\"could not seek in log file %s to offset %u: %m\",\n> XLogFileNameP(ThisTimeLineID, openLogSegNo),\n> startoffset)));\n\nwhere XLogFileNameP call...
[ { "msg_contents": "Hi all,\n\nWhen attempting to use multiple times pg_replication_slot_advance on a\nslot, then the caller gets back directly InvalidXLogRecPtr as result,\nfor example:\n=# select * from pg_replication_slot_advance('popo', 'FF/0');\n slot_name | end_lsn\n-----------+-----------\n popo | 0...
[ { "msg_contents": "Hello.\n\nWhile looking into *some* tool that heavily reliant on\ndebug_query_string, I found that the tool can miss it. However I\nbelieved that it is always set when post_parse_analyze_hook is\ncalled, it is not while processing DESCRIBE message of extended\nprotocol. I believe that the as...
[ { "msg_contents": "Currently, if primary and standby are setup on same machine (which is\nalways the case for development), CREATE TABLESPACE xyz LOCATION '/abc',\nprimary and mirror both write to \"/abc/TABLESPACE_VERSION_DIRECTORY\"\ndirectory. Collision is certainly not an issue in any production deployment\...
[ { "msg_contents": "Hello Hackers,\n\nThis propose a way to develop \"Table-level\" Transparent Data Encryption (TDE) and Key Management Service (KMS) support in\nPostgreSQL.\n\n\nIssues on data encryption of PostgreSQL\n==========\nCurrently, in PostgreSQL, data encryption can be using pgcrypto Tool.\nHowever, ...
[ { "msg_contents": "Hi Hackers,\n\nI would like to propose that we expose the \"active\" value of parameters in pg_settings, instead of \"-1\". In this example below, when it's set to \"-1\" I need to know that autovacuum_work_mem is related to the setting of maintenance_work_mem, so that I can determine that t...
[ { "msg_contents": "For reasons that I'm not quite sure about, the following test case\ncrashes in v11, but not earlier versions:\n\ncreate table abc(n int);\ncreate table xyz(n int);\ncreate function fun() returns int as $$begin insert into abc values\n(1); return 1; end$$ language plpgsql;\ncreate or replace ...
[ { "msg_contents": "Hello,\n\nI spent some time to test the new features on partitioning with the\nbeta1. I noticed a potentially huge performance regression with\nplan-time partition pruning.\n\nTo show the issue, I used this DO statement to generate some partitions,\none per day :\nDO $$\nDECLARE\n part_date ...
[ { "msg_contents": "I notice there are still several places in pl_exec.c like this:\n\n case SPI_ERROR_TRANSACTION:\n ereport(ERROR,\n (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),\n errmsg(\"cannot begin/end transactions in PL/pgSQL\"),\n e...
[ { "msg_contents": "My colleague Yogesh Sharma discovered an assert in nested SQL procedure\ncalls after ROLLBACK is used. Minimal test case and backtrace below. I\nhave not yet tried to figure out exactly what is going on beyond seeing\nthat it occurs in pg_plan_query() where the comment says \"Planner must\nha...
[ { "msg_contents": "Hello,\n\nComparison of timetz values looks a bit weird to me, as \n'22:00+02'::timetz > '21:00+01'::timetz.\nI can see this behavior introduced by commit 2792374c in 2001\nwith the comment \"timetz was just plain broken (some possible pairs of \nvalues were neither < nor = nor >)\".\n\nThe i...
[ { "msg_contents": "I got this error message via -fsanitized=undefined:\n\njsonfuncs.c:5169:12: runtime error: load of value 127, which is not a\nvalid value for type '_Bool'\n\nThe query was\n\nselect ts_headline('{}'::jsonb, tsquery('aaa & bbb'));\n\nThis calls the C function ts_headline_jsonb_byid_opt(), whic...
[ { "msg_contents": "Hello All,\n\nI am exploring and poking at the source code to inform a design for adding\nvalid-time support to postgres. The feature will required updating\nexisting system catalog tables as well as adding one or more new tables.\n\nIs there any documentation on how to update the system cat...
[ { "msg_contents": "SQL:2011 introduced the concept of a \"period\". It takes two existing columns and basically does the same thing as our range types except there is no new storage. I believe if Jeff Davis had given us range types a few years later than he did, it would have been using periods.\n\nAttached is...
[ { "msg_contents": "Hello,\n\nI'm going to attend PGCon in Ottawa for the first time. I am happy if\nI can meet you.\n\nBecause I'm visually impaired, I only have vision to sense light. If\nyou see a Japanese man with a height of 171 cm with a white cane, it's\nprobably me. I'd be happy if you talk to me. Bu...
[ { "msg_contents": "Hi,\n\nWhile preparing for an upcoming presentation, I was playing around\nwith SP-GiST indexes on tstz ranges and was having an issue where\nsome would fail to build to completion in a reasonable time, especially\ncompared to corresponding GiST builds.\n\nVersion:\n\n\tPostgreSQL 10.4 on x86...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 15212\nLogged by: Jürgen Strobel\nEmail address: juergen+postgresql@strobel.info\nPostgreSQL version: 10.4\nOperating system: Debian\nDescription: \n\nI found unexpected behavior when playing aroun...
[ { "msg_contents": "Hi\n\nPer topic, the Pg makefiles install pg_regress (for use by extensions) and\nhtey install the isolationtester, but they don't install\npg_isolation_regress.\n\nWe should install it too.\n\n-- \n Craig Ringer http://www.2ndQuadrant.com/\n PostgreSQL Development, 24x7 Sup...
[ { "msg_contents": "pgsql-ogr-fdw fails to build against PG 11beta1 with JIT enabled. I\njust reported this as https://github.com/pramsey/pgsql-ogr-fdw/issues/153,\nbut I think the problem might actually be in the PGXS Makefile - it\nassumes that all objects have a .c file to build the .bc from.\n\n---8<---\n\np...
[ { "msg_contents": "Hi,\n\nReview comments on commit 857f9c36:\n1.\n@@ -2049,6 +2055,10 @@ _bt_newroot(Relation rel, Buffer lbuf, Buffer rbuf)\n metapg = BufferGetPage(metabuf);\n metad = BTPageGetMeta(metapg);\n\n+ /* upgrade metapage if needed */\n+ if (metad->btm_version < BTREE_VERSION)\n+ _b...
[ { "msg_contents": "The tab completion for the TABLE command includes indexes but that's a\nbug. Attached is a trivial patch to fix it.\n-- \nVik Fearing +33 6 46 75 15 36\nhttp://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support", "msg_date": "Mon, 28 ...
[ { "msg_contents": "Hi\n\nI am writing a article about PostgreSQL 11 features. Now I am looking on\nnew option --create-slot option of pg_basebackup command.\n\nI don't understand to use case for this option, because It fails when\nrequested slot already exists. I cannot to imagine use case for this. If I\nwrite...
[ { "msg_contents": "Find attached tab completion for the following:\n\n\"... Also, recursively perform VACUUM and ANALYZE on partitions when the\ncommand is applied to a partitioned table.\"\n3c3bb99330aa9b4c2f6258bfa0265d806bf365c3\n\nAdd parenthesized options syntax for ANALYZE.\n854dd8cff523bc17972d34772b0e39...
[ { "msg_contents": "Hi PgSQL Hackers,\n\nI am overseeing a few hundred/thousand postgres/pgagent installations and\non one installation the pgAgent does not start with a message as a service\non a Windows Server:\n\nERROR: Couldn't register event handle.\n\nonce the service is being started. Investigation showe...
[ { "msg_contents": "Hi,\n\nWhile looking at Justin's patch for VACUUM completions, I found an\nexisting bit of code that tries to match on a word with a space:\n\n /* Complete \"CREATE PUBLICATION <name> FOR TABLE <table>\" */\n else if (Matches4(\"CREATE\", \"PUBLICATION\", MatchAny, \"FOR TABLE\"))\n ...
[ { "msg_contents": "Hi,\n\nattached patch passes PGOPTIONS env variable to pg_regress in pgxs.mk\n\nThis is especially useful when developing extensions for different postgres versions\nwhere some session_variables might or might not exists.\n\nConsider something like this in an extensions makefile:\n\nifeq ($(s...
[ { "msg_contents": "Hi,\n\nI write often documents for my customers in MarkDown to produce pdf\ndocuments. Quite often, I need to present data from queries in a tabular\nform.\n\nPsql output provides formatting in text (aligned and unaligned), HTML,\nlatex, JSON (and so many more) but not in MarkDown. The aligne...
[ { "msg_contents": "Hi,\n\nA lot of people contribute in communities via github these days. We\nshould add a CONTRIBUTING.md that explains how to do so, given that we\ndon't use github. That's shown automatically when doing a pull requests\netc.\n\nI think it's also a good idea to have it in the source tree inde...
[ { "msg_contents": "There are a couple of places in postgres_fdw where we check if the Bitmapset\nhas multiple members using bms_num_members(), without storing the returned\ncount. The attached patch instead use bms_membership() which is optimized for\njust that usecase, and (IMO) makes for clearer code.\n\nche...
[ { "msg_contents": "I've used pg_upgrade like this before, but maybe from a different (recent)\n11dev HEAD; I found: \"pg_upgrade supports upgrades from 8.4.X and later to the\ncurrent major release of PostgreSQL, including snapshot and beta releases.\"\n(But maybe upgrades FROM beta releases aren't supported in...