threads
listlengths
1
2.99k
[ { "msg_contents": "I've got a customer that discovered something odd...\n\nSELECT f1 FROM v1 WHERE f2 not in (SELECT bad FROM v2 WHERE f3 = 1);\n\ndoes not error, even though bad doesn't exist, but\n\nSELECT bad FROM v2 WHERE f3 = 1;\ngives\n\nERROR: column \"bad\" does not exist\n\nIs that expected?\n\nThis i...
[ { "msg_contents": "I looked into the problem described at\nhttps://www.postgresql.org/message-id/flat/VisenaEmail.26.df42f82acae38a58.156463942b8%40tc7-visena\nand I believe I've reproduced it: the requirement is that the inner join\ncolumn for the antijoin must contain a lot of NULL values, and what isn't\nNUL...
[ { "msg_contents": "Working on page compression and some other issues related to\naccess methods, I found out that the code related to heap\nlooks too complicated. Much more complicated, than it should be.\nSince I anyway got into this area, I want to suggest a set of improvements.\n\nThere is a number of proble...
[ { "msg_contents": "Hello\n\nI recently hit a road blocker when I tried to create a truncate trigger on\na foreign table. trigger.c::CreateTrigger() function has explicit check to\nblock truncate trigger on foreign tables.\n\nHowever, trigger.c::ExecuteTruncate() does not seem to have any problems\nissuing befor...
[ { "msg_contents": "Hello Developers,\n\nI have been following the recent discussions on increasing the\nsize of the hash function used in Postgres and the work to\nprovide WAL and performance improvements for hash indexes. \nI know it was mentioned when we moved to the new hashing\nfunctions, but the existing f...
[ { "msg_contents": "Hi,\n\nas promised here is WIP version of logical replication patch.\n\nThis is by no means anywhere close to be committable, but it should be\nenough for discussion on the approaches chosen. I do plan to give this\nsome more time before September CF as well as during the CF itself.\n\nYou've...
[ { "msg_contents": "The input function of the money type has no overflow checks:\n\n=> select '12345678901234567890'::money;\n money\n-----------------------------\n -$13,639,628,150,831,692.72\n(1 row)\n\nThe tests in the regression test file money.sql are bogus because they\nonly test the overflow c...
[ { "msg_contents": "One time too many, I ran some minor change using psql on a production\nserver and was wondering why it was taking so much longer than it did\non the test server. Only to discover, after messing around with\nopening new windows and running queries against pg_stat_activity and\npg_locks and so...
[ { "msg_contents": "Basically,\n\ndiff --git a/src/backend/parser/parse_param.c\nb/src/backend/parser/parse_param.c\nindex b402843..97064fc 100644\n--- a/src/backend/parser/parse_param.c\n+++ b/src/backend/parser/parse_param.c\n@@ -108,6 +108,9 @@ fixed_paramref_hook(ParseState *pstate, ParamRef *pref)\n erepor...
[ { "msg_contents": "Hi,\n\nsince updating master from c93d873..fc509cd, I see crashes in\nGetOldestSnapshot() on update/delete returning statements.\n\nI reduced the triggering statements down to this:\n\n update clstr_tst set d = d returning d;\n\nBacktrace below.\n\nregards,\nAndreas\n\nProgram received sig...
[ { "msg_contents": "I've put up draft notes for 9.5.4 at\n\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=3676631c687009c2fadcb35e7d312e9eb8a98182\n\nThe website should have them after guaibasaurus's next run, due a couple\nhours from now.\n\nAs usual, the older branches will have subsets of...
[ { "msg_contents": "Hi,\n\nLooking at commits f10eab73d and c50d192c, I wondered why we don't\nhave a reusable in-place unique function. It may be trivial, but we\nseem to have a lot of copies and variations in the tree.\n\nHere's a sketch patch that creates a function array_unique which takes\nthe same argumen...
[ { "msg_contents": "Hi\r\n\r\nI am sending a initial implementation of xmltable function:\r\n\r\nThe code is not clean now, but it does almost of expected work. The usage\r\nis simple. It is fast - 16K entries in 400ms.\r\n\r\nI invite any help with documentation and testing.\r\n\r\nThe full ANSI/SQL, or Oracle ...
[ { "msg_contents": "Hi,\n\nI've summarized Wait events monitoring discussion at Developer unconference\nin Ottawa this year on wiki:\n\nhttps://wiki.postgresql.org/wiki/PgCon_2016_Developer_Unconference/Wait_events_monitoring\n\n\n(Thanks to Alexander Korotkov for patiently pushing me to make this thing\nfinally...
[ { "msg_contents": "Hi\n\nWhen I checked result of xml test I found some strange lines in\nexpected/xml.out file\n\nIt is little bit strange - regress test reports ok, but diff is not empty\n\n[pavel@nemesis regress]$ diff results/xml.out expected/xml.out\n11a12,13\n> <wrong\n> ^\n63a66,67\n> <syntax\n> ...
[ { "msg_contents": "Hi,\n\nsqlsmith just triggered a crash in pg_get_viewdef_name_ext(). Looks\nlike commit 976b24fb4 failed to update this caller of\npg_get_viewdef_worker(). Backtrace below. Patch attached.\n\nregards,\nAndreas\n\nProgram terminated with signal SIGSEGV, Segmentation fault.\n(gdb) bt\n#0 st...
[ { "msg_contents": "Hi, I have found a basic use case which is supported by the xml2 module,\nbut is unsupported by the new XML API.\n\nIt is not possible to correctly extract text (either from text nodes or\nattribute values) which contains the characters '<', '&', or '>'. \nxpath() (correctly) returns XML text...
[ { "msg_contents": "Hi hackers,\n\nI'm asking out of curiosity, do anyone know why we don't have\nper-statement-level INSTEAD OF triggers? I looked into the \nstandard SQL (20xx draft), but I can't find the restriction\nsuch that INSTEAD OF triggers must be row-level. Is there\nany technical difficulties, or oth...
[ { "msg_contents": "Over on the \"Parallel tuplesort (for parallel B-Tree index creation)\"\nthread [1], there has been some discussion of merging vs.\npartitioning. There is a concern about the fact the merge of the\ntuplesort used to build a B-Tree is not itself parallelized. There is\na weak consensus that we...
[ { "msg_contents": "Hi hackers,\n\nDSM segments have a concept of 'pinning'. Normally, segments are\ndestroyed when they are no longer mapped by any backend, using a\nreference counting scheme. If you call dsm_pin_segment(segment), that\nis disabled so that the segment won't be destroyed until the cluster\nis ...
[ { "msg_contents": "Hello,\n\nSince 14e8803f1, it's not necessary to acquire the SyncRepLock to see up\nto date data. But it looks like this commit didn't update all the\ncomment around MyProc->syncRepState, which still mention retrieving the\nvalue without and without lock. Also, there's I think a now unneeded...
[ { "msg_contents": "Here is a small patch that sets log_line_prefix and application name in\npg_regress and the TAP tests, to make analyzing the server log output\neasier.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services\n\n\...
[ { "msg_contents": "Does anyone know why the phrase distance \"<3>\" was changed from \"at most\nthree tokens away\" to \"exactly three tokens away\"? I looked at the\nthread at:\n\n\thttps://www.postgresql.org/message-id/flat/33828354.WrrSMviC7Y%40abook\n\nand didn't see the answer. I assume if you are lookin...
[ { "msg_contents": "Hackers,\n\nThe attached attempts to make comprehension of the code in\n\"TS_phrase_execute\" a bit easier. I posted similar on the \"typo patch\"\nthread of July 2nd/5th but my comments there reflected my mis-understanding\nof the distance operator being exact as opposed to the expected\nle...
[ { "msg_contents": "Hi,\n\nAttached is the latest set of patches to implement declarative\npartitioning. There is already a commitfest entry for the same:\nhttps://commitfest.postgresql.org/10/611/\n\nThe old discussion is here:\nhttp://www.postgresql.org/message-id/55D3093C.5010800@lab.ntt.co.jp/\n\nAttached p...
[ { "msg_contents": "Hi,\n\nRunning one specific test from our application against REL9_5_STABLE \n(current as of today) gives me this:\n\n#2 0x00007effb59595be in ExceptionalCondition (\n conditionName=conditionName@entry=0x7effb5b27a88 \n\"!(CritSectionCount > 0 || TransactionIdIsCurrentTransactionId(( \n(...
[ { "msg_contents": "Hi,\n\nWould anyone mind too much if I refreshed typedefs.list and\nre-indented the whole tree before we branch? There's not too much\nchurn at the moment, and I feel like it would be nice to start the\ncycle in as clean a state as possible.\n\nCurrent results of this attached.\n\n-- \nRober...
[ { "msg_contents": "I wanted to create a new relopt named something like\nautovacuum_vacuum_pagevisible_factor which would cause autovacuum to\nvacuum a table once less than a certain fraction of the relation's\npages are marked allvisible.\n\nI wanted some feedback on some things.\n\n1) One issue is that pg_cla...
[ { "msg_contents": "Hi,\n\nI've run YCSB(Yahoo! Cloud Service Benchmark) on PostgreSQL and MongoDB\nwith WiredTiger.\nAnd I found some interesting results and some issues(maybe) on Btree index\nof PostgreSQL.\n\nHere is my experiments and results.\nYCSB is for document store benchmark and I build following schem...
[ { "msg_contents": "Hello.\n\nSuggested patch introduces an %r substitution in psql's prompt. This\nsubstitution allows to display whether user is connected to master or\nreplica right in a prompt.\n\nUsage example:\n\n```\n$ cat ~/.psqlrc \n\\set PROMPT1 '%p (%r) =# '\n\n$ psql -p 5432\npsql (9.6beta4)\nType \"...
[ { "msg_contents": "> I have found a basic use case which is supported by the xml2 module,\n> but is unsupported by the new XML API. \n> It is not possible to correctly extract text\n\nIndeed. I came accross this shortcomming some months ago myself but still manage an item on my ToDo list to report it here as th...
[ { "msg_contents": "In\nhttps://www.postgresql.org/message-id/15293.1466536829@sss.pgh.pa.us\nI speculated that it might not take too much to replace all the variants\nof GIN array_ops with a single polymorphic opclass over anyarray.\nAttached is a proposed patch that does that.\n\nThere are two bits of added fu...
[ { "msg_contents": "CREATE FUNCTION pg_temp.is() RETURNS text LANGUAGE sql AS $$SELECT \n'x'::text$$;\nSELECT 'x'||is();\nERROR: syntax error at or near \"(\"\nLINE 1: SELECT 'x'||is();\n\nI was finally able to figure out this was because \"is\" needs to be \nquoted; is there a way this could be hinted?\n\nFWIW...
[ { "msg_contents": "Hi,\n\nSome of my EnterpriseDB colleagues and I have been working on various\nparallel query projects, all of which have been previously disclosed\nhere:\n\nhttps://wiki.postgresql.org/wiki/EnterpriseDB_database_server_roadmap\n\nOne issue we've encountered is that it's not very easy for one ...
[ { "msg_contents": "Hi all,\n\nAs CVE-2016-5424 has put recently in light, using LF and CR in\ndatabase and role names can lead to unexpected problems in the way\nthey are handled in logical backups or generated command lines. There\nis as well a comment in the code mentioning a potential restriction\nfor that, ...
[ { "msg_contents": "Hi all\n\nI see this sort of question quite a bit:\n\nhttp://stackoverflow.com/q/38903811/398670\n\nwhere the user wonders why\n\nCOPY gemeenten\n FROM 'D:\\CBS_woningcijfers_2014.csv'\n DELIMITER ';' CSV\n\nfails with\n\nERROR: could not open file \"D:\\CBS_woningcijfers_2014.csv\" for re...
[ { "msg_contents": "Hello, hackers!\n\n\nAt this moment EXPLAIN ANALYZE with turned off timing option after \nexecution query that expires trigger prints time of total execution of \ntrigger function:\n\npostgres=# EXPLAIN (ANALYZE, timing false) insert INTO foo \nvalues(1000001, '');\n ...
[ { "msg_contents": "Hackers,\n\nI'm now exploring code working with heap tuples. The following code\nin heap_update() catch my eyes.\n\nif (DoesMultiXactIdConflict((MultiXactId) xwait, infomask,\n> *lockmode))\n> {\n> LockBuffer(buffer, BUFFER_LOCK_UNLOCK);\n> /* acquire tuple lock, if necessary */\n> heap_acqu...
[ { "msg_contents": "Hi All,\nWhen I am calling dsm_create on Linux using the POSIX DSM implementation can succeed, but result in SIGBUS when later try to access the memory.  This happens because of my system does not have enough shm space &  current allocation in dsm_impl_posix does not allocate disk blocks[1]. ...
[ { "msg_contents": "point <-> point, circle <-> point and polygon <-> point all exist as\norderable-by-operator operators (in fact they are the only ones by\ndefault). But there's no box <-> point operator at all, and no index\nsupport for box <-> box.\n\nWas this intentional, or just a strange oversight?\n\n-- ...
[ { "msg_contents": "Hi,\n\nAbout a month or two ago I reported a pg_dump bug regarding tables (and\nother objects) created inside a schema from an extension.\n\nObjects created by the extensions are not dumped, as they will be\ncreated once again with the CREATE EXTENSION call, but and other objects\nwhich might...
[ { "msg_contents": "Many have expressed their interest in this topic, but I haven't seen any\ndesign of how it should work. Here's my attempt; I've been playing with\nthis for some time now and I think what I propose here is a good initial\nplan. This will allow us to write permanent table storage that works\n...
[ { "msg_contents": "Doesn't tuplesort_heap_siftup() actually shift-down?\n\nThe Wikipedia article on heaps [1] lists \"shift-down\" (never \"sift\ndown\", FWIW) as a common operation on a heap:\n\n\"shift-down: move a node down in the tree, similar to shift-up; used\nto restore heap condition after deletion or r...
[ { "msg_contents": "Hi All,\n\nRecently while running tpc-h queries on postgresql master branch, I am\nnoticed\nrandom server crash. Most of the time server crash coming while turn tpch\nquery\nnumber 3 - (but its very random).\n\nCall Stack of server crash:\n\n(gdb) bt\n#0 0x00000000102aa9ac in ExplainNode (pl...
[ { "msg_contents": "I am getting corrupted Bloom indexes in which a tuple in the table\nheap is not in the index.\n\nI see it as early as commit a9284849b48b, with commit e13ac5586c49c\ncherry picked onto it. I don't see it before a9284849b48b because the\ntest-case seg faults before anything interesting can ha...
[ { "msg_contents": "Just to make sure that everyone's on the same page: the schedule the\nrelease team has agreed to is that we'll branch off REL9_6_STABLE on\nAug 15 (Monday!) and issue 9.6rc1 the week of Aug 29. Barring scary\nbugs emerging, this should keep us on track for 9.6.0 release in\nlate September.\n...
[ { "msg_contents": "Hi hackers,\n\nI would like to propose \"barriers\" for Postgres processes. A barrier\nis a very simple mechanism for coordinating parallel computation, as\nfound in many threading libraries.\n\nFirst, you initialise a Barrier object somewhere in shared memory,\nmost likely in the DSM segmen...
[ { "msg_contents": "Hi,\n\nwhen I do\n\n select 1.0e+1001::numeric;\n\nI get\n\ninvalid input syntax for type numeric: \"1.0e+1001\"\n\nBut\n\nselect 1.0e+1000::numeric;\n\nseems to be valid.\n\nPostgresql documentation tells me that numeric data type has an upper\nlimit of 131072 digits before decimal point.\n\...
[ { "msg_contents": "Hello Postgres Team!\n\nThis is to fix an issue that came up for me when running initdb.\n\nAt the end of a successful initdb it says:\n\n Success. You can now start the database server using:\n pg_ctl -D /some/path/to/data -l logfile start\n\nbut this command did not work for me be...
[ { "msg_contents": "Hello Postgres Hackers!\n\nI sent this already a few hours ago but it got blocked because I had not\nyet joined the mailing list. Trying again, sorry for any redundancy or\nconfusion!\n\nThis is to fix an issue that came up for me when running initdb.\n\nAt the end of a successful initdb it ...
[ { "msg_contents": "I did a trial run following the current pgindent README procedure, and\nnoticed that the perltidy step left me with a pile of '.bak' files\nlittering the entire tree. This seems like a pretty bad idea because\na naive \"git add .\" would have committed them. It's evidently because\nsrc/tool...
[ { "msg_contents": "Hi folks --\n\nWe have ported Postgres over to the C++ language (C++11 standard).\n\nhttps://github.com/jarulraj/postgresql-cpp\n\nOur goal is to use certain features of the C++ language and its standard\nlibrary to simplify coding, improve code reuse, and avoid bugs. Peter's\narticle titled ...
[ { "msg_contents": "I recently had a client contact me thinking that a CREATE MATERIALIZED \nVIEW had somehow managed to keep running in the background after being \n^C'd in psql. Turns out this confusion was because their monitoring \neventually complained about the still open (but now aborted) \ntransaction. T...
[ { "msg_contents": "Hi,\n\nDuring the recovery process, It would be nice if PostgreSQL generates an\nerror by aborting the recovery process (instead of starting-up the cluster)\nif the intended recovery target point is not reached and give an option to\nDBA to resume the recovery process from where it exactly st...
[ { "msg_contents": "Hi All,\n\nWhile working on pg_hba_lookup function that can be used to lookup for an client\nauthentication that can be matched for given input parameters, Tom raised some\nconcrete use case issues in the following mail [1]. In this same\nthread, he raised\nsome advantages of having a view si...
[ { "msg_contents": "After doing the tedious and easily forgotten (I almost did forget)\nminor version bumps for our shared libraries,\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=0b9358d4406b9b45a06855d53f491cc7ce9550a9\n\nit suddenly struck me that in the brave new two-part-version-number...
[ { "msg_contents": "src/timezone/README saith\n\n When there has been a new release of Windows (probably including Service\n Packs), the list of matching timezones need to be updated. Run the\n script in src/tools/win32tzlist.pl on a Windows machine running this new\n release and apply any new timezones that...
[ { "msg_contents": "Recently a hacker proposed a patch to add pg_dynshmem to the list of\ndirectories whose contents are excluded in pg_basebackup. I wasn't able\nto find the original email despite several attempts.\n\nThat patch got me thinking about what else could be excluded and after\nsome investigation I ...
[ { "msg_contents": "Hi, hackers!\n\nThere is a known issue that index only scan (IOS) can only work with \nsimple index keys based on single attributes and doesn't work with index \nexpressions. In this patch I propose a solution that adds support of IOS \nfor index expressions. Here's an example:\n\ncreate tabl...
[ { "msg_contents": "Any reason why we can create a function that accepts anyelement and \nreturns anyarray, but can't do the same with anyrange? Could we attempt \nto match each range subtype looking for a match?\n\ncreate function range__create(anyelement,anyelement,text = '[]') RETURNS \nanyrange LANGUAGE plpg...
[ { "msg_contents": "Hi all\n\nWhile implementing support for traceable transactions (finding out after\nthe fact whether an xact committed or aborted), I've found that Pg is very\ninconsistent with what it considers a transaction ID from a user facing\npoint of view, to the point where I think it's hard for user...
[ { "msg_contents": "There is something rotten in the state of Denmark. Here are four recent\nruns that failed with unexpected \"cache lookup failed for type nnnn\"\nerrors:\n\nhttp://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=grouse&dt=2016-08-16%2008%3A39%3A03\nhttp://buildfarm.postgresql.org/cgi-bin/show...
[ { "msg_contents": "I propose the attached patch to clean up the comment formatting in\nplpgsql.h.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org...
[ { "msg_contents": "\nHi all, been awhile! Some may be saying \"not long enough\" but eh.\n\nI recently moved a mybb forum away from mysql to postgres. Along the way \nI encountered a couple of things that either didn't seem to be supported \nor I'm just not doing it right.\n\nFirst, the server this is on is r...
[ { "msg_contents": "Here is a patch for implementing the NEXT VALUE FOR expression. This is\nthe SQL-standard conforming version of our nextval() function, and it's\nalso used by Oracle, MS SQL, DB2. Example:\n\nSELECT NEXT VALUE FOR foo_seq;\n\nThe second patch changes the serial column to use this new expres...
[ { "msg_contents": "From: https://www.postgresql.org/docs/9.4/static/sql-createtable.html\n\n\"The access method must support amgettuple (see Chapter 55); at\npresent this means GIN cannot be used. Although it's allowed, there is\nlittle point in using B-tree or hash indexes with an exclusion\nconstraint, becaus...
[ { "msg_contents": "Hi,\n\nThe Uber blog post, among other things, pointed out that PG uses lseek + \nread instead of pread. I didn't see any discussion around that and my \nGoogle searches didn't find any posts about pread / pwrite for the past \n10 years.\n\nWith that plus the \"C++ port\" thread in mind, I w...
[ { "msg_contents": "Hi,\n\nI am currently exploring pglogical replication for my db servers. I would\nlike to know how can I automatically failover from Provider Node to\nSubscriber Node, if the Provider node goes down for some reasons. How can I\nredirect all the traffic to SubscriberNode automatically ? In the...
[ { "msg_contents": "/* only needed in OS X 10.1 and possibly early 10.2 releases */\n\nMaybe it's time to let it go?\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hacker...
[ { "msg_contents": "https://wiki.postgresql.org/wiki/Binary_Replication_Tutorial does not \nspecify -c for any of the rsync commands. That's maybe safe for WAL, but \nI don't think it's safe for any of the other uses, right? I'd like \nsomeone to confirm before I just change the page... my intention is to \njust...
[ { "msg_contents": "During preliminary analysis of what it would take to produce a\nparallel CLUSTER patch that is analogous of what I came up with for\nCREATE INDEX, which in general seems quite possible, I identified\nreform_and_rewrite_tuple() as a major bottleneck for the current\nCLUSTER implementation.\n\n...
[ { "msg_contents": "Fix deletion of speculatively inserted TOAST on conflict\n\nINSERT .. ON CONFLICT runs a pre-check of the possible conflicting\nconstraints before performing the actual speculative insertion. In case\nthe inserted tuple included TOASTed columns the ON CONFLICT condition\nwould be handled co...
[ { "msg_contents": "Fix deletion of speculatively inserted TOAST on conflict\n\nINSERT .. ON CONFLICT runs a pre-check of the possible conflicting\nconstraints before performing the actual speculative insertion. In case\nthe inserted tuple included TOASTed columns the ON CONFLICT condition\nwould be handled co...
[ { "msg_contents": "Hi,\n\nI was trying to implement a middleware that lies between client and\npostgres.\n\nSo, this middleware is supposed to run query with libpq, do its job on\nthem, and then serialize the result of query, and send it to the client !\n(client deserializes to PGresult)\n\nI could simply itera...
[ { "msg_contents": "The attached patch tries to maintain the initial status of B-Tree\nindexes, which are created with equal-key runs in physical order,\nduring the whole life of the B-Tree, and make key-tid pairs\nefficiently searchable in the process.\n\nThe patch doesn't add an interface to perform the key-ti...
[ { "msg_contents": "Hi hackers,\n\nTo do something about the confusion I keep seeing about what exactly\n\"on\" means, I've often wished we had \"remote_flush\". But it's not\nobvious how the backwards compatibility could work, ie how to keep the\npeople happy who use \"local\" vs \"on\" to control syncrep, and...
[ { "msg_contents": "Attached is a patch I'd fooled around with back in July but not submitted.\nThe idea is that, if our initial scan of the query tree found only\nparallel-safe functions, there is no need to rescan subsets of the tree\nlooking for parallel-restricted functions. We can mechanize that by\nsaving...
[ { "msg_contents": "The regex library used to have a notion of a \"collating element\"\nthat was distinct from a \"character\", but Henry Spencer never\nactually implemented support for multi-character collating elements,\nand the Tcl crew ripped out most of the stubs for it years ago.\nThe only thing left that ...
[ { "msg_contents": "I was looking at this TODO item from 2009:\n\n\thttps://www.postgresql.org/message-id/4AA7B197.70002%40usit.uio.no\n\nI have implemented this in the attached patch. It does two things:\n\no compares words in columns that can only support keywords as\ncase-insensitive, double-quoted or not\n...
[ { "msg_contents": "I have a query which contains a where clause like:\n\n aid =ANY(VALUES (1),(45),(87), <6948 more>, (4999947))\n\nfor example:\n\nperl -le 'print \"explain (analyze) select sum(abalance) from\npgbench_accounts where aid=ANY(VALUES \"; print join \",\", map \"($_)\", sort\n{$a<=>$b} map int(ran...
[ { "msg_contents": "While researching a customer issue with BDR I noticed that one ereport()\ncall happens after clobbering errno, leading to the wrong strerror being\nreported. This patch fixes it by saving before calling\nCloseTransientFile and restoring afterwards.\n\nI also threw in a missing errcode I noti...
[ { "msg_contents": "Hackers,\n\noriginally this idea was proposed by Andres Freund while experimenting with\nlockfree Pin/UnpinBuffer [1].\nThe patch is attached as well as results of pgbench -S on 72-cores\nmachine. As before it shows huge benefit in this case.\nFor sure, we should validate that it doesn't cau...
[ { "msg_contents": "I would like to proppse to export these functions in libpq.\n\npqPutMsgStart\npqPutMsgEnd\npqPutc\npqPuts\npqPutInt\npqPutnchar\npqFlush\npqHandleSendFailure\n\nI think this would be useful to create a tool/library which needs to\nhandle frontend/backend protocol messages in detail.\n\nBest r...
[ { "msg_contents": "Hi hackers,\n\nI would like to propose a new subsystem called Dynamic Shared [Memory]\nAreas, or \"DSA\". It provides an object called a \"dsa_area\" which can\nbe used by multiple backends to share data. Under the covers, a\ndsa_area is made up of some number of DSM segments, but it appear...
[ { "msg_contents": "Hi,\n\nWe are using logical decoding in multimaster and we are faced with the problem that inconsistent transactions are sent to replica.\nBriefly, multimaster is using logical decoding in this way:\n1. Each multimaster node is connected with each other using logical decoding channel and so e...
[ { "msg_contents": "Hi\n\nI am sending implementation of xmltable function. The code should to have\nnear to final quality and it is available for testing.\n\nI invite any help with documentation and testing.\n\nRegards\n\nPavel\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo mak...
[ { "msg_contents": "Hi,\n\nThe postgres_fdw join pushdown in 9.6 is great, but it can't handle full \njoins on relations with restrictions. The reason for that is, \npostgres_fdw can't support deparsing subqueries when creating a remote \njoin query. So, by adding the deparsing logic to it, I removed that ...
[ { "msg_contents": "plpgsql.h defines a number of enums, but most of the code passes them\naround as ints. The attached patch updates structs and function\nprototypes to take enum types instead. This clarifies the struct\ndefinitions in plpgsql.h in particular.\n\nI didn't deal with the PLPGSQL_RC_* symbols, s...
[ { "msg_contents": "Use LEFT JOINs in some system views in case referenced row doesn't exist.\n\nIn particular, left join to pg_authid so that rows in pg_stat_activity\ndon't disappear if the session's owning user has been dropped.\nAlso convert a few joins to pg_database to left joins, in the same spirit,\nthou...
[ { "msg_contents": "I found another bug as a result of using amcheck on Heroku customer\ndatabases. This time, the bug is in core Postgres. It's one of mine.\n\nThere was a thinko in tuplesort's abbreviation abort logic, causing\ncertain SortTuples to be spuriously marked NULL (and so, subsequently\nsorted as a ...
[ { "msg_contents": "Hello,\ni'm testing the new row security level functionality in postgresql 9.5.\nTo do that i run this script:\n\n-----------cut here ----------------------\n\nCREATE TABLE public.policy_tab\n(\n id bigint NOT NULL,\n description character varying(160) NOT NULL,\n usr name NOT NULL,\n CO...
[ { "msg_contents": "I have done my yearly TODO list cleanup, and I did more extensive item\nremoval this time. There were a number of entries I could not figure out\nso if people want to review what is left and remove items that are\nundesired or done, please do that. Thanks.\n\n\thttps://wiki.postgresql.org/w...
[ { "msg_contents": "Someone reported that a replication slot that existed at the time a base\nbackup was done on the master was copied to the standby. Because they\ndidn't realize it, their WAL was not being recycled on the standby.\n\nIs that possible? Is it a known behavior? I don't see it documented.\n\n--...
[ { "msg_contents": "Hi Yury,\n\n\nOn Fri, Aug 19, 2016 at 9:46 AM, Yury Zhuravlev\n<u.zhuravlev@postgrespro.ru> wrote:\n> Christian Convey wrote:\n>>\n>> I'm interested in helping with your CMake effort. I don't have any\n>> experience contributing to PG, but I do have some free time at the\n>> moment. Please ...
[ { "msg_contents": "This is a new statistics view that is used to provide the number of\nSQL operations that are\nhappened on a particular interval of time. This view is useful for the\nsystem to find out the\npattern of the operations that are happening in the instance during\nparticular interval of\ntime.\n\nF...
[ { "msg_contents": "Hi all\n\nFollowing on from\n\nbigint txids vs 'xid' type, new txid_recent(bigint) => xid\n\nhttps://www.postgresql.org/message-id/CAMsr+YFDZMN_iZ7KrRoe+j0KVLQvFVgvZxbcVxR-MLjgtoZugA@mail.gmail.com\n\n\nhere's a patch that implements a txid_status(bigint) function to report the\ncommit status...
[ { "msg_contents": "Make initdb's suggested \"pg_ctl start\" command line more reliable.\n\nThe original coding here was not nearly careful enough about quoting\nspecial characters, and it didn't get corner cases right for constructing\nthe pg_ctl path either. Use join_path_components() and appendShellString()\...
[ { "msg_contents": "Hi all\n\nMy earlier efforts at logical decoding of sequence advances were too\nsimplistic[1], falling afoul of issues with sequences being both\ntransactional and not transactional depending on whether the sequence is\ncreated in the current xact or not.\n\nTL;DR of solution:\n\n* extend Seq...
[ { "msg_contents": "Just out of curiopusity, I wonder why we can't make the encoding of\nSGML docs to be UTF-8, rather than current ISO-8859-1.\n\nAs long as everything is written in ASCII, the size of docs will be\nalmost same even if UTF-8 is used. Plus, if the encoding is changed to\nUTF-8, it is very easy to...
[ { "msg_contents": "While hacking on the CSN patch, I spotted a race condition between \nGetOldestActiveTransactionId() and GetNewTransactionId(). \nGetOldestActiveTransactionId() calculates the oldest XID that's still \nrunning, by doing:\n\n1. Read nextXid, without a lock. This is the upper bound, if there are...