threads
listlengths
1
2.99k
[ { "msg_contents": "A recent question from Tim Kane prompted me to measure the overhead\ncosts of EXPLAIN ANALYZE, which I'd not checked in awhile. Things\nare far worse than I thought. On my current server (by no means\nlavish hardware: Xeon E5-2609 @2.40GHz) a simple seqscan can run\nat something like 110 ns...
[ { "msg_contents": "Hi.\n\nHere's a patch that fixes it.\n\n-- \nBest regards,\nSergey Muraviov\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postgresql.org/mailpref/pgsql-hackers", "msg_date": "Wed, 14 May 2014 07:40:03 +0400"...
[ { "msg_contents": "In master, 4 tests fail due to plan changes with blocksize 32K. The\nfailures started creeping in around 9.0.\n\nI don't see a clean way to make the plans consistent with 8K and 32K\npages, so I was about to write this off as \"we don't care much\".\n\nThen I ran with block size 1KB, and I go...
[ { "msg_contents": "On 2014-05-14 15:17:39 +0200, Andres Freund wrote:\n> On 2014-05-14 15:08:08 +0200, Tomas Vondra wrote:\n> > Apparently there's something wrong with 'test-decoding-check':\n> \n> Man. I shouldn't have asked... My code. There's some output in there\n> that's probably triggered by the extraordi...
[ { "msg_contents": "Hi,\n\nWhile updating pt-br translation I noticed that some sentences could be\nimproved. I also fix some style glitches. A set of patches are attached.\n\n\n-- \n Euler Taveira Timbira - http://www.timbira.com.br/\n PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7...
[ { "msg_contents": "Hi all,\n\nWhen working on a decoder plugin, I have been pointed that it is\nincorrect to write changes in an output plugin while not being in the\nmemory context where changes are written.\nIn pg_decode_change@test_decoding.c, we do the following:\nold = MemoryContextSwitchTo(data->context);...
[ { "msg_contents": "As mentioned previously about my interest in improving shared\nbuffer eviction especially by reducing contention around\nBufFreelistLock, I would like to share my progress about the\nsame.\n\nThe test used for this work is mainly the case when all the\ndata doesn't fit in shared buffers, but ...
[ { "msg_contents": "New version of the selectivity estimation patch attached. I am adding\nit to CommitFest 2014-06. Previous version of it reviewed by\nAndreas Karlson on the previous CommitFest with the GiST support patch.\nThe new version includes join selectivity estimation.\n\nJoin selectivity is calculated...
[ { "msg_contents": " From the department of punishing good deeds ... in commit 2dc4f011fd\nI added setvbuf() calls to initdb to ensure that output to stdout and\nstderr would appear in a consistent order regardless of whether the\noutput was going to a terminal or a file. The buildfarm shows that\non several (b...
[ { "msg_contents": "Hi all,\n\ntoday I got a few of errors like these (this one is from last week, though):\n\n Status Line: 493 snapshot too old: Wed May 7 04:36:57 2014 GMT\n Content:\n snapshot to old: Wed May 7 04:36:57 2014 GMT\n\non the new buildfarm animals. I believe it was my mistake (incorrectl...
[ { "msg_contents": "Spotted while testing pg_recvlogical:\n\n1. Set up pg_recvlogical to receive:\n\n./pg_recvlogical -S fooslot -d postgres --create\n./pg_recvlogical -S fooslot -d postgres --start -f -\n\n2. In another terminal, with psql:\n\ncreate table foo (id int4);\nbegin;\n insert into foo values (4);\n...
[ { "msg_contents": "Now that popen and pclose don't throw thousands of warnings when compiling\nmingw builds, some other warnings stand out.\n\n\nparallel.c: In function 'pgpipe':\nparallel.c:1332:2: warning: overflow in implicit constant conversion\n[-Woverflow]\nparallel.c:1386:3: warning: overflow in implicit...
[ { "msg_contents": "In testing 9.4 with some long running tests, I noticed that autovacuum\nlauncher/worker sometimes goes a bit nuts. It vacuums the same database\nrepeatedly without respect to the nap time.\n\nAs far as I can tell, the behavior is the same in older versions, but I\nhaven't tested that.\n\nThi...
[ { "msg_contents": "Hi,\n\nI have some preliminary tests for the pg_recvlogical binary using the\ninfrastructure Peter added. I am wondering if somebody has a good idea\nabout how to make the tests more meaningful. Currently all that's tested\nare simple commands. Not the main functionality namely the actual\nst...
[ { "msg_contents": "I was watching a very large recursive CTE get built today and this CTE\ninvolves on the order of a dozen or so \"loops\" joining the initial\ntable against existing tables. It struck me that - every time through\nthe loop the tables were sorted and then joined and that it would be\nmuch more ...
[ { "msg_contents": "Hi All,\n\nI am using centOS6 and after all confugration, I run the below command\n\n\n*dbt2-run-workload -a pgsql -d 120 -w 1 -o /tmp/result -c 10*\n*Error:*\nStage 3. Processing of results...\nKilling client...\nwaiting for server to shut down.... done\nserver stopped\nTraceback (most recen...
[ { "msg_contents": "Hi,\n\nI'm thinking of an extension to trigger functionality like this:\n\nCREATE TRIGGER trigger_name\n AFTER event\n ON table\n CONCURRENTLY EXECUTE PROCEDURE trigger_fc\n\nThis would call the trigger after the end of the transaction.\n\nThe following is a use-case, please tell me ...
[ { "msg_contents": "Mysteriously, commit 6b2a1445ec8a631060c4cbff3f172bf31d3379b9 has broken\nthe PDF build (openjade + pdfjadetex) in the 9.0 branch only. The error\nis\n\n[256.0.28\n! pdfTeX error (ext4): \\pdfendlink ended up in different nesting level than \\pd\nfstartlink.\n\\AtBegShi@Output ...ipout \\box...
[ { "msg_contents": "Hi all,\n\nAre there some reason to don't show the tablespace size in the \\db+ psql\ncommand?\n\nRegards,\n\n-- \nFabrízio de Royes Mello\nConsultoria/Coaching PostgreSQL\n>> Timbira: http://www.timbira.com.br\n>> Blog sobre TI: http://fabriziomello.blogspot.com\n>> Perfil Linkedin: http://b...
[ { "msg_contents": "Hi all\n\nThere's a bug in the dynamic bgworkers code that I think needs fixing\nbefore release. TL;DR: BGW_NO_RESTART workers are restarted after\npostmaster crash, attached patch changes that.\n\nThe case that's triggering the issue is where a static bgworker is\nregistering a new dynamic b...
[ { "msg_contents": "I have performed a new benchmark related to my ongoing experimentation\naround caching and buffer manager scalability. The benchmark tests a\nminor refinement of the prototype patch previously posted [1]. The\npatch itself is still very much a prototype, and does not\nsignificantly differ fro...
[ { "msg_contents": "Hi,\n\nAfter Heikki has fixed the bit btree_gist bugs my valgrind run shows a\nbug in macaddr.\n\nPresumably it's because the type is a fixed width type with a length of\n6. I guess it's allocating stuff sizeof(macaddr) but then passes the\nresult around as a Datum which doesn't work well.\n\...
[ { "msg_contents": "Hello,\n\nCan we get that fixed please? It seems rather bad behavior for \npg_basebackup to fatal out because of the permissions on a backup file \nof all things. Instead, we should do WARNING and say skipped.\n\nJD\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\...
[ { "msg_contents": "Quite some time ago, we made the chr() function accept Unicode code points\nup to U+1FFFFF, which is the largest value that will fit in a 4-byte UTF8\nstring. It was pointed out to me though that RFC3629 restricted the\noriginal definition of UTF8 to only allow code points up to U+10FFFF (fo...
[ { "msg_contents": "Hi,\n\nelog.c's log_line_prefix() processes %d with:\n case 'd':\n if (MyProcPort)\n {\n const char *dbname = MyProcPort->database_name;\n\n if (dbname == NULL || *dbname == '\\0')\n dbname =...
[ { "msg_contents": "I am finding that my logical walsender connections are being terminated \ndue to a timeout on the CREATE REPLICATION SLOT command. with \n\"terminating walsender process due to replication timeout\"\n\nBelow is the stack trace when this happens\n\n#3 0x000000000067df28 in WalSndCheckTimeOut ...
[ { "msg_contents": "More fun with my torn page injection test program on 9.4.\n\n24171 2014-05-16 14:00:44.934 PDT:WARNING: 01000: page verification\nfailed, calculated checksum 21100 but expected 3356\n24171 2014-05-16 14:00:44.934 PDT:CONTEXT: xlog redo split_l: rel\n1663/16384/16405 left 35191, right 3565...
[ { "msg_contents": "I'm currently in the early stages of looking into expanding join removals.\n\nCurrently left outer joins can be removed if none of the columns of the\ntable are required for anything and the table being joined is a base table\nthat contains a unique index on all columns in the join clause.\n\...
[ { "msg_contents": "Hi all,\n\na few days ago I setup an buildfarm animal markhor, running the tests\nwith CLOBBER_CACHE_RECURSIVELY. As the tests are running very long,\nreporting the results back to the server fails because of a safeguard\nlimit in the buildfarm server. Anyway, that's being discussed in a\ndif...
[ { "msg_contents": "- Clarify ECDH decription in release notes.\n- Fix default value - it's 'prime256v1'.\n- List curves with good cross-platform support explicitly\n (NIST P-256 / P-384 / P-521).\n\nThe -list_curves output is full of garbage, it's hard to know which\nones make sense to use. Only those three c...
[ { "msg_contents": "[redirecting to -hackers]\n\nRe: Tom Lane 2014-05-15 <31008.1400180005@sss.pgh.pa.us>\n> Sandeep Thakkar <sandeep.thakkar@enterprisedb.com> writes:\n> > Yes, Jakob is right. On 9.4, we had to patch configure script along with\n> > uuid-ossp.c to resolve the uuid issue.\n> \n> I think we need ...
[ { "msg_contents": "I got around to trying to build PG with the HP-supplied compiler on my\nancient HPUX box, something I do about once a release cycle to see if\nwe've finally broken that trailing-edge toolchain. Things still seem\nto work except for this:\n\ncc: \"pgbench.c\", line 1579: error 1521: Incorrect...
[ { "msg_contents": "Hello\n\nI am looking on --analyze-in-stages option. If I understand well,\nmotivation for this option is a get some minimal statistic for databases in\nminimal time. But when I tested, I found so iterations are per databases,\nnot per stages - some first database get a maximum statistics and...
[ { "msg_contents": "Hi,\n\nPostgreSQL 9.4 document for pg_stat_replication view mentions column name\nas \"backend_xid\", whereas when a view described it shows column name as\n\"backend_xmin\".\nhttp://www.postgresql.org/docs/devel/static/monitoring-stats.html#PG-STAT-REPLICATION-VIEW\n\npostgres=# select versi...
[ { "msg_contents": "Hi,\n\nHere are some more trivial fixes in pg_recvlogical message style.\n\n\n-- \n Euler Taveira Timbira - http://www.timbira.com.br/\n PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@po...
[ { "msg_contents": "pg_isready has --username:\n\n -U, --username=USERNAME user name to connect as\n\n\nso is replying when given a non-existent user not a bug?\n\npg_isready --username=xxxx -p 6544\n/tmp:6544 - accepting connections\n\nThere is no user xxxx. (PG envvars are removed)\n\n\nThanks,\n\nErik Rijk...
[ { "msg_contents": "Attached patch makes minor adjustment to a comment that is no longer\naccurate (as of commit ff7bbb01).\n\n-- \nPeter Geoghegan\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postgresql.org/mailpref/pgsql-hacke...
[ { "msg_contents": "Hi!\n\nI found that sometimes larger maintenance_work_mem leads to larger GIN\nindex. That is quite strange. ISTM that it's related to posting lists\ncompression but I can't figure out how exactly it is.\n\nSee example on delicious bookmarks dataset.\n\nhttp://mira.sai.msu.ru/~megera/tmp/js.c...
[ { "msg_contents": "Hi hackers,\n\nI found a bug that causes a crash when assertion is enabled and LWLOCK_STATS is defined.\nI've tested with Debian 7.5 (3.2.0-4-amd64) on VMware fusion 6, but this bug seems to be platform-independent and should reproduce in other environments.\nA patch to fix the bug is also at...
[ { "msg_contents": "I can't find the thread now, but I'm pretty sure that we decided to\nchange the name of pg_recvlogical, because its inconsistent with other\nclient utils? No?\n\n\n-- \nJosh Berkus\nPostgreSQL Experts Inc.\nhttp://pgexperts.com\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@pos...
[ { "msg_contents": "I am trying to understand the rangetypes spgist code and its interaction\nwith empty ranges. (Slightly embarrassing, because I reviewed the code.)\nI see an old email here:\n\nhttp://www.postgresql.org/message-id/50145A9C.7080400@enterprisedb.com\n\nBut still don't have a clear picture.\n\nWh...
[ { "msg_contents": "Hello\n\nI created relative large (about 200K lines) simple table (one jsonb column):\n\nIt works, but I got a errors:\n\nTRAP: FailedAssertion(\"!(va.type == jbvArray || va.type == jbvObject)\",\nFile: \"jsonb_util.c\", Line: 208)\nLOG: server process (PID 3851) was terminated by signal 6: ...
[ { "msg_contents": "\nHi all,\n\nI'm trying to pg_upgrade an 8.4.21 to 9.3.4.\n\nThe is on Debian 7--both versions were installed from apt.postgresql.org \nand are encoding \"UTF8\" and locale \"C\".\n\nHere's the error:\n\n/usr/lib/postgresql/9.3/bin/pg_upgrade \\\n -b /usr/lib/postgresql/8.4/bin/ \\\n ...
[ { "msg_contents": "Hello\n\nI don't know a doc about jsonb indexes\n\n\"But in jsonb_path_ops, each index item is a hash of both the value and the\nkey(s) leading to it; for example to index {\"foo\": {\"bar\": \"baz\"}}, a\nsingle index item would be created incorporating all three of foo, bar, and\nbaz into t...
[ { "msg_contents": "\nI have just noticed as I am preparing my slides well ahead of time :-) \nthat we haven't documented the inequality operators of jsonb. Is that \ndeliberate or an oversight?\n\ncheers\n\nandrew\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to y...
[ { "msg_contents": "Hi!\n\ncreate table xxx ( t text);\n\ninsert into xxx select 'x' || v::text from generate_series(1, 291) as v;\ninsert into xxx values ('');\n\ncreate index xxxidx on xxx using spgist (t);\n\nAnd postgres will eat memory forever. It seems to me that checkAllTheSame \nwrongly decides that all...
[ { "msg_contents": "Looking at\nhttp://www.postgresql.org/docs/devel/static/protocol-replication.html\nunder START_REPLICATION it goes\n\n\"\"\"\nThe payload of each CopyData message from server to the client contains\na message of one of the following formats:\n\nIf a slot's name is provided via slotname, it wi...
[ { "msg_contents": "Section 18.1.3 is named \"18.1.3. Other Ways to Set Parameters\" yet does not\nreference the ability to use \"set_config(...)\" to make changes to\nconfiguration parameters.\n\nSomething like (as a final sentence):\n\nAn alternative to the SQL \"SET\" command is to use the [link]set_config[li...
[ { "msg_contents": "Testing partial-write crash-recovery in 9.4 (e12d7320ca494fd05134847e30)\nwith foreign keys, I found some btree index corruption.\n\n28807 VACUUM 2014-05-21 15:33:46.878 PDT:ERROR: right sibling 4044 of\nblock 460 is not next child 23513 of block 1264 in index \"foo_p_id_idx\"\n28807 VACUUM ...
[ { "msg_contents": "Hi all,\n\nAs written in subject, replication protocol documentation lacks\ndetails about logical slots in CREATE_REPLICATION_SLOT command:\nhttp://www.postgresql.org/docs/devel/static/protocol-replication.html\nAttached is a patch correcting that.\nRegards,\n-- \nMichael\n\n\n\n-- \nSent via...
[ { "msg_contents": "Suppose a user backend starts a background worker for some purpose;\nthe background worker dies with an error. The infrastructure we have\ntoday is sufficient for the user backend to discover that the worker\nbackend has died, but not why. There might be an error in the server\nlog, but the...
[ { "msg_contents": "Not sure if people know this, but PostGIS windows builds are built with\nmingw64-w32 and mingw64-w64 chains and usually used with EDB VC++ built\nPostgreSQL. \nThis is mostly because there is too much unix stuff ingrained in PostGIS\ntoolchain making it difficult to compile in VC++.\n\nAnyrat...
[ { "msg_contents": "For those who were not at the developer meeting, here is the commit fest\nschedule for 9.5:\n\nJune 15\nAugust 15\nOctober 15\nDecember 15\nFebruary 15\n\nbeta in June 2015\n\nThe obvious change is that there will be five commit fests instead of\nfour. Also, the time between beta and release...
[ { "msg_contents": "Hi,\n\nSince there seem to be multiple static checkers (coverity, clang\nchecker) having problems with assert_enabled can we just optionally\ndisable it?\nI am thinking of replacing it by a AssertionsEnabled() macro which then\nis unconditionally defined when DISABLE_ENABLE_ASSERT is defined....
[ { "msg_contents": "Hi All,\n\nAt the Developer Meeting that occurred 21th May 2014 was announced a new\nPostgreSQL commiter [1], Mr. Andres Freund.\n\nI had the opportunity to work and be mentored by him. He deserves very much\nthis confidence, for the excellent work that has been doing for the\ncommunity.\n\nT...
[ { "msg_contents": "Hi all,\n\nI noticed that contrib/worker_spi can't run as non-dynamic background\nworker (IOW, load via shared_preload_libraries), because of\nuninitialized bgw_notify_pid.\n\nI got log lines below when starting PostgreSQL with\nshared_preload_libraries = 'worker_spi'.\n\n$ pg_ctl start -w\nw...
[ { "msg_contents": "I'm evaluating use of the postgres FDW to keep in sync a central database\nto changes made in thousand other databases, via triggers.\n\nBut as long as postgres_fdw keeps connections open for the whole lifetime\nof a session this conflicts with large use of poolers which make sessions\nvirtua...
[ { "msg_contents": "Hello,\n\nSince my last proposal didn't get any strong rebuttal, please find attached a \nmore complete version of the IMPORT FOREIGN SCHEMA statement.\n\nI tried to follow the SQL-MED specification as closely as possible.\n\nThis adds discoverability to foreign servers. The structure of the ...
[ { "msg_contents": "We try to tell our clients not to update the catalogs directly, but\nthere are at least two instances where it's not possible to do otherwise\n(pg_database.datistemplate and .datallowconn). This patch aims to\nremedy that.\n\nFor example, it is now possible to say\n ALTER DATABASE d ALLOW...
[ { "msg_contents": "Hello\r\n\r\nIn Czech Postgres mailing list was user request for serialization to json\r\nwithout null values.\r\n\r\nHe needs a similar behave like XMLFOREST has - it ignores NULLs\r\n\r\nIn some situations and conversions, when your table is +/- sparse matrix,\r\nthis request is valid\r\n\r...
[ { "msg_contents": "\n sh> lsb_release -d\n Description: Ubuntu 14.04 LTS\n Codename: trusty\n\n sh> uname -a\n Linux sto 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\n\n sh> locale -a\n C\n C.UTF-8\n en_AG\n en_AG.utf8\n en_AU.utf8\n en_BW.u...
[ { "msg_contents": "Hi everyone,\n\nhere's the latest version of my uuid changes patch, according to\nproposal (2) from Tom in the thread about OSSP-UUID[1].\n\n* it works on linux and bsd (tested on ubuntu and netbsd), using their\nown uuid implementations\n* the configure switch is now --with-uuid\n* function ...
[ { "msg_contents": "Hi, hackers!\nThere are first results of my work on GSoC project \"Index-only scans for\nGIST\".\n\n1. Version of my project code is in forked repository\nhttps://github.com/lubennikovaav/postgres/tree/indexonlygist2\nPatch is in attachments\n- This version is only for one-column indexes\n- f...
[ { "msg_contents": "Hi all,\n\nAs written in subject, pg_recvlogical does not work properly with\noption -I but it should:\n$ pg_recvlogical -I 0/0\npg_recvlogical: invalid option -- I\nTry \"pg_recvlogical --help\" for more information.\n$ pg_recvlogical --help | grep \"\\-I\"\n -I, --startpos=PTR where in...
[ { "msg_contents": "While debugging the B-tree bug that Jeff Janes reported \n(http://www.postgresql.org/message-id/CAMkU=1y=VwF07Ay+Cpqk_7FpiHRctmssV9y99SBGhitkXPbf8g@mail.gmail.com), \na new issue came up:\n\nIf you reach the xidStopLimit, and try to run VACUUM, it fails with error:\n\njjanes=# vacuum;\nERROR:...
[ { "msg_contents": "Context:\n\nA patch from a while ago was rejected:\n\nhttp://www.postgresql.org/message-id/1369886097.23418.0.camel@jdavis\n\nMost of the objection seemed to be that extra page pins might happen in\nsome circumstances, such as this one mentioned by Heikki:\n\nhttp://www.postgresql.org/message...
[ { "msg_contents": "Hi,\n\nI've been running a few longer pgbench tests (~week), and I've run into\nthis:\n\ntransaction type: SELECT only\nscaling factor: 1250\nquery mode: simple\nnumber of clients: 32\nnumber of threads: 4\nduration: 605000 s\nnumber of transactions actually processed: -1785047856\nlatency av...
[ { "msg_contents": "Hi,\n\nHere is my first report. You can also find it on my Gitlab [0].\nWeek 1 - 2014/05/25\n\nFor this first week, I have written a test script that generates some\nsimple datasets, and produces an image containing the output of the MADlib\nclustering algorithms.\n\nThis script can be called...
[ { "msg_contents": "Hi,\n\nI've been trying to take the 9.4 beta for a spin, but seem to have run into\na shared memory issue on startup:\n\nFATAL: could not open shared memory segment \"/PostgreSQL.1804289383\":\nPermission denied\n\nWe're running Postgres inside LXC, which I suspect is causing problems\nhere, ...
[ { "msg_contents": "Here's an idea I tried to explain to Andres and Simon at the pub last \nnight, on how to reduce the spikes in the amount of WAL written at \nbeginning of a checkpoint that full-page writes cause. I'm just writing \nthis down for the sake of the archives; I'm not planning to work on this \nmys...
[ { "msg_contents": "Hi all,\n\nI noticed a couple of typos in Solution.pm, fixed by the patch\nattached. Those things have been introduced by commits cec8394 (visual\n2013 support) and 0a78320 (latest pgident run, not actually a problem\nof pgident, because of a misuse of commas).\nThe tab problems should not be...
[ { "msg_contents": "Greetings.\n\nI have an application which uses libpq for interaction with remote\nPostgreSQL server 9.2. Clients and Server nodes are running Linux and\nconnection is established using TCPv4. The client application has some\nsmall fault-tolerance features, which are activated when server rela...
[ { "msg_contents": "Hi,\n\nIn a custom pgbench script, it seems convenient to be able to split a\nreally long query to span multiple lines using an escape character\n(bash-style). Attached adds that capability to read_line_from_file()\nin pgbench.c\n\nFor example,\n\nBEGIN;\n\\setrandom 1 16500000\nUPDATE table...
[ { "msg_contents": "\nHi Hackers,\n\nThis came up recently on general list (and I've just hit the same issue today):\n http://www.postgresql.org/message-id/CAB7nPqTLmMn1LTb5WE0v0dO57iP0U73yKwzbZytAXDF1CAWLZg@mail.gmail.com\n\nWhy couldn't postgres re-create the dependent views automatically? I\nmean it knows w...
[ { "msg_contents": "Hi,\n\nJust noticed pg_llog is not mentioned in the \"Database File Layout\"\nsection. Wonder if it's an oversight?\n\n--\nAmit\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postgresql.org/mailpref/pgsql-hackers...
[ { "msg_contents": "While talking to various people during pgCon, I was reminded that the\nnbtree README does a poor job of explaining the actual practical\nadvantages of L&Y from a high level. The \"move right\" trick is\ninitially mentioned only as an adjunct to a discussion of the\nspecial-case handling of ro...
[ { "msg_contents": "Hi all,\n\nPlease find attached a patch extending support of --with-extra-version\nin the MSVC scripts. This is something I have been using internally,\nand I believe that it is useful for Windows packagers.\nSimilarly to the other options, a new field called extraver is added\nin config_defa...
[ { "msg_contents": "While speccing out a new B-Tree verification tool, I had the\nopportunity to revisit a thought I had during review concerning\n_bt_findinsertloc(): that the new coding is unsafe in the event of\ndeferred split completion of a leaf page of a unique index. To recap,\nwe now do the following in ...
[ { "msg_contents": "Feel free to flame me if I should be posting this elsewhere, but after reading the \"submitting a patch\" guide, it appears I should ask for guidance here.\n\n\nI was reading the Postgres MVCC documentation today (which is generally fantastic BTW), and am slightly confused by a single sentenc...
[ { "msg_contents": "One of these doesn't belong:\n\npostgres=# select typname, typcategory from pg_type where typispreferred;\n typname | typcategory \n-------------+-------------\n bool | B\n text | S\n oid | N\n float8 | N\n inet | I\n timestamptz | D\n interval | T\n v...
[ { "msg_contents": "I've been on the receiving end of a couple of mumbles about the fact \nthat the JSON rendering code ignores casts of builtin types to JSON. \nThis was originally done as an optimization to avoid doing cache lookups \nfor casts for things we knew quite well how to turn into JSON values \n(unli...
[ { "msg_contents": "Hi,\n\nThanks to 187492b6c2e8cafc5b39063ca3b67846e8155d24, pgstat\nfiles are now saved to $PGDATA/pg_stat directory at shutdown.\nBut pg_stat_statements file is saved under $PGDATA/global yet.\nIs this intentional or just oversight? Saving that file to global is\nharmless, though.\n\nRegards,...
[ { "msg_contents": "Hi,\n\nSince a64ca63e59c11d8fe6db24eee3d82b61db7c2c83 pg_sleep() uses\nWaitLatch() to wait. That's fine in itself. But\nprocsignal_sigusr1_handler, which is used e.g. when resolving recovery\nconflicts, doesn't unconditionally do a SetLatch().\nThat means that we'll we'll currently not be abl...
[ { "msg_contents": "Fix bogus %name-prefix option syntax in all our Bison files.\n\n%name-prefix doesn't use an \"=\" sign according to the Bison docs, but it\nsilently accepted one anyway, until Bison 3.0. This was originally a\ntypo of mine in commit 012abebab1bc72043f3f670bf32e91ae4ee04bd2, and we\nseem to h...
[ { "msg_contents": "The patch is attached.\nIt is based on clone of today's 9.4dev source.\nI have noticed that this source is\n(not suprisingly) quite a moving target at present,\nmeaning that this patch becomes stale quite quickly.\nSo although this copy is fine for reviewing,\nit may quite probably soon not b...
[ { "msg_contents": "While mucking around with contrib/uuid-ossp, I realized that its usage\nof the OSSP UUID library is really rather broken: it creates and destroys\na uuid_t object for each call of the UUID creation functions. This is not\nthe way you're supposed to use that library. The uuid_t object is mea...
[ { "msg_contents": "Consider this example:\n\n[local]/postgres=# SELECT to_char(1e9::float8,'999999999999999999999D9');\n to_char\n--------------------------\n 1000000000.0\n(1 row)\n\n[local]/postgres=# SELECT to_char(1e20::float8,'999999999999999999999D9');\n to_char\n---------------...
[ { "msg_contents": "Buildfarm critters smew and shearwater are reporting regression test\nfailures that suggest that the UUID library can't get a system MAC\naddress:\nhttp://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=smew&dt=2014-05-28%2023%3A38%3A28\nhttp://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=...
[ { "msg_contents": "Hi all,\n\nI'm little confused by the *convertJsonbValue* functon at *jsonb_utils.c*\nMaybe I misunderstood something, so I need help =)\n\n>>> if (IsAJsonbScalar(val) || val->type == jbvBinary)\n>>> convertJsonbScalar(buffer, header, val);\n\nAs I can see, the *convertJsonbScalar* functi...
[ { "msg_contents": "# select '\"\\uaBcD\"'::json;\n json\n----------\n \"\\uaBcD\"\n\nbut\n\n# select '\"\\uaBcD\"'::jsonb;\nERROR: invalid input syntax for type json\nLINE 1: select '\"\\uaBcD\"'::jsonb;\n ^\nDETAIL: Unicode escape values cannot be used for code point values above 007F ...
[ { "msg_contents": "postgres=# select '[\"\\u0000\"]'::json->0;\n ?column?\n----------\n \"\\u0000\"\n(1 row)\n\nTime: 1,294 ms\npostgres=# select '[\"\\u0000\"]'::jsonb->0;\n ?column?\n-----------\n \"\\\\u0000\"\n(1 row)\n\nIt seems to me that escape_json() is wrongly used in jsonb_put_escaped_value(), \...
[ { "msg_contents": "So I ran into the case again where a system crashed while a hot backup\nwas being taken. Postgres couldn't start up automatically because the\nbackup_label was present. This has come up before e.g.\nhttp://www.postgresql.org/message-id/CAAZKuFaP1GxcOJtyzCh13rvevJeVwro1VVfbYsQTWGUD9iS1_g@mail....
[ { "msg_contents": "What features in 9.4 need more beta testing for recovery?\n\nI've applied my partial-write testing harness to several scenarios in 9.4.\n So far its found a recovery bug for gin indexes, a recovery bug for btree,\na vacuum bug for btree indexes (with foreign keys, but that is not relevant\nto...
[ { "msg_contents": "One of the annoying things about the SPGiST bug Teodor pointed out is\nthat once you're in the infinite loop, query cancel doesn't work to get\nyou out of it. There are a couple of CHECK_FOR_INTERRUPTS() calls in\nspgdoinsert() that are meant to get you out of exactly this sort of\nbuggy-opc...
[ { "msg_contents": "Here is a draft patch for some of the issues to do with unicode escapes \nthat Teodor raised the other day.\n\nI think it does the right thing, although I want to add a few more \nregression cases before committing it.\n\nComments welcome.\n\ncheers\n\nandrew\n\n\n\n-- \nSent via pgsql-hacker...
[ { "msg_contents": "Hi all,\n\nWhile developing some XML processing queries, i stumbled on an old bug\nmentioned in http://wiki.postgresql.org/wiki/Todo#XML: Fix Nested or\nrepeated xpath() that apparently mess up namespaces.\n\nSource of the bug is that libxml2's xmlNodeDump won't output XML namespace\ndefiniti...
[ { "msg_contents": "Hi!\n\njsonb operators ->text, ->>text,->int, ->>int use inefficient methods to access \nto needed field, proportional O(N/2). Attached patch suggests for text operators \nO(log(N)) and for integer - O(1). The fuctions with fast access already are \nexisted in current code and are used in con...
[ { "msg_contents": "Hello,\n\n(sorry for this long post)\n\nI have patched intarray with 3 additional functions in order to count[distinct] event IDs\ninto arrays, whereas the array position correspond to the integer values. (mimic column oriented storage)\n\nI need to use an array for the event IDs as I don't k...
[ { "msg_contents": "Hi,\n\nhas anyone else had this issue and does any one know the solution?\n\nSince upgrading my mac from os x 10.8 to 10.9, i can no long build postgres with '--with-python’.\n\ni get the following error.\n\nld: framework not found Python\nclang: error: linker command failed with exit code 1 ...
[ { "msg_contents": "Hi,\n\nWhile hacking away at implementing join removal support for ANTI-JOINs I\nrealised that I couldn't just replace the join with a WHERE false\ncondition... Let me explain...\n\nWith a query such as:\n\nSELECT * FROM a WHERE NOT EXISTS(SELECT 1 FROM b WHERE a.b_id = b.id);\n\nWhere a.b_id...