threads
listlengths
1
2.99k
[ { "msg_contents": "Hello Hackers,\n\nThere are a few \"Needs Review\" items remaining in the July commitfest. \nReviewers, please take action - you are holding up the commitfest.\n\nIn addition to these items, there are a bunch of items in \"Ready for \nCommitter\" state. Committers: please help with those.\n\n...
[ { "msg_contents": "Hello,\nI try to write my first patch. It is too early to tell more about it, \nbut I am just fiddling around with some prototypes.\n\nCan someone tell me, how I can compare two datum fields, when I do not \nknow the data type in advance inside an executor function?\n\nFor example, \"x less t...
[ { "msg_contents": "I earliest reference I found to this issue is here\n<http://postgresql.nabble.com/set-search-path-in-dump-output-considered-harm\nful-td1947594.html> and refers to the search_path being arbitrarily set in\nthe file created by pg_dump. This is apparently still the case in 9.4.\n\n \n\nI found...
[ { "msg_contents": "Hi,\n\nwhile doing regular builds via buildroot autobuilders\na compile problem for sparc 32bit v8 was found.\nIt seems the defines for Linux are other than for Solaris.\n\nFollowing patch fixes it for buildroot:\n\nThe gcc predefines for Linux are __sparc_v8__/__sparc_v7__\n\nSigned-off-by: ...
[ { "msg_contents": "Attached patch fixes oversights converting buf_id to Buffer in\nPrintBufferDescs() and InvalidateBuffer(). Especially for the latter,\nthe reason we haven't seen any reports of the issue might be that it\nneeds certain concurrent conditions to be true.\n\nAlong the line, it also changes all d...
[ { "msg_contents": "Today I encountered an interesting situation.\n\n1) A streaming replication primary server and a standby server is\n running. At this point max_connections = 100 on both servers.\n\n2) Shutdown both servers.\n\n3) Change max_connections to 1100 on both servers and restart both\n servers.\...
[ { "msg_contents": "I built an index on a jsonb column of a table with RLS enabled but it\nwas not being used. Turns out the the function jsonb_contains needed\nto be LEAKPROOF (thanks Joe Conway). However I do not actually know if\njsonb_contains is LEAKPROOF. Who's responsibility is it to insure\nfunctions are...
[ { "msg_contents": "When reviewing some recent patches, I decided the statistics gathered for\narrays had some pre-existing shortcomings.\n\nThe main one is that when the arrays contain rare elements there is no\nhistogram to fall back upon when the MCE array is empty, the way there is\nfor scalar stats. So it ...
[ { "msg_contents": "Hi,\n\n#define GinPageIsLeaf(page) ( GinPageGetOpaque(page)->flags & GIN_LEAF )\n#define GinPageIsData(page) ( GinPageGetOpaque(page)->flags & GIN_DATA )\n#define GinPageIsList(page) ( GinPageGetOpaque(page)->flags & GIN_LIST )\n...\n\nThese macros don't actually return a boolean tha...
[ { "msg_contents": "Probably since 1bc90f7a (shame on me) pgbench does not report skipped \ntransactions (-L) counts properly: data are not aggregated over all \nthreads as they should be, either under --progress or in the end of run \nreport.\n\nThe attached patch fixes these regressions.\n\n-- \nFabien.\n\n\n-...
[ { "msg_contents": "Hi,\n\nWe have a bunch of callbacks that use old-style C function\ndeclarations. I.e. functions with empty parens allowing all types of\ndata being passed:\n\nE.g.\nextern bool expression_tree_walker(Node *node, bool (*walker) (),\n void *context);\nextern No...
[ { "msg_contents": "Greetings,\n\nI had a discussion on IRC today with RhodiumToad regarding optimizing a\nspecific query. We didn't manage to figure out how to get postgres to hit a\nGIST index.\n\nThe bigger picture is that I am trying to do some bioinformatics and\nthought that postgres would be a great way o...
[ { "msg_contents": "When a user backend (as opposed to vacuum or autoanalyze) gets burdened\nwith cleaning up the GIN pending list, it does not\ncall CHECK_FOR_INTERRUPTS().\n\nSince cleaning does a lot of random IO, it can take a long time and it is\nnot nice to be uninterruptable.\n\nThe attached patch adds an...
[ { "msg_contents": "Hi all,\n\nTransactionIdGetCommitTsData@commit_ts.c does the following:\n if (ts)\n *ts = entry.time;\n [...]\n return *ts != 0;\nThis is a bad idea, because if TransactionIdGetCommitTsData is called\nwith ts == NULL this would simply crash. It seems to me that it makes\nlittl...
[ { "msg_contents": "Hi,\n\nForcing our bool to be stdbool.h shows up a bunch of errors and\nwarnings:\n\n1) gin stores/queries some bools as GinTernaryValue.\n\n Part of this is easy to fix, just adjust GinScanKeyData->entryRes to\n be a GinTernaryValue (it's actually is compared against MAYBE).\n\n What I...
[ { "msg_contents": "Hi,\n\nI'd like to suggest $SUBJECT for inclusion in Postgres 9.6. I'm sure \neveryone would've found it useful at some point in their lives, and the \nfact that it can't be properly implemented in any language other than C \nI think speaks for the fact that we as a project should provide it...
[ { "msg_contents": "Close some holes in BRIN page assignment\n\nIn some corner cases, it is possible for the BRIN index relation to be\nextended by brin_getinsertbuffer but the new page not be used\nimmediately for anything by its callers; when this happens, the page is\ninitialized and the FSM is updated (by br...
[ { "msg_contents": "I've written a function which allows users to clean up the pending list.\nIt takes the index name and returns the number of pending list pages\ndeleted.\n\n# select * from gin_clean_pending_list('foo_text_array_idx');\n gin_clean_pending_list\n------------------------\n 278...
[ { "msg_contents": "Hello,\n\nI am working on a project which requires going through each field inside a\ntuple without using postgresql. I have managed to iterate through each\ntuple inside a table by recycling postgres's code. However, for the part of\nparsing through each field in the tuple, I am not able to ...
[ { "msg_contents": "(Please read this message on wide display)\n\nOur team recently tries to run TPC-DS benchmark to know capability of\nPostgreSQL towards typical analytic queries.\nTPC-DS defines about 100 complicated queries. We noticed optimizer made\nunreasonable execution plan towards some of queries.\n\nH...
[ { "msg_contents": "Views created by UNION ALL could be updated with both UPDATE and\nDELETE operations. They are just transformed to UPDATE/DELETE\noperation on base tables (or views). I think INSERT cannot be accepted\nhowever. For example, suppose we have v1:\n\nCREATE VIEW v1 AS SELECT * FROM t1 UNION ALL S...
[ { "msg_contents": "Hi all,\n\nI saw the email about the idea from KaiGai-san[1],\nand I worked to implement this idea.\n\nNow, I have implemented a part of this idea,\nso I want to propose this feature.\n\nPatch attached just shows my concept of this feature.\nIt works fine for EXPLAIN, but it returns wrong res...
[ { "msg_contents": "> On Fri, Aug 7, 2015 at 2:15 PM, Kouhei Kaigai <kaigai@ak.jp.nec.com> wrote:\r\n> >\r\n> > > On Sat, Aug 1, 2015 at 6:39 PM, Kouhei Kaigai <kaigai@ak.jp.nec.com> wrote:\r\n> > > >\r\n> >\r\n> > > > > > If we pull Funnel here, I think the plan shall be as follows:\r\n> > > > > > Funnel\r\n>...
[ { "msg_contents": "Re-add BRIN isolation test\n\nThis time, instead of using a core isolation test, put it on its own\ntest module; this way it can require the pageinspect module to be\npresent before running.\n\nThe module's Makefile is loosely modeled after test_decoding's, so that\nit's easy to add further t...
[ { "msg_contents": "So I added the brin isolation test back. Because it needs the\npageinspect module, it can only work under \"make check\", not\ninstallcheck. The problem is that this means buildfarm will not run it,\nbecause it only runs installcheck :-(\n\nI realized that the important modules that run und...
[ { "msg_contents": "This is regarding supporting of multi-tenancy in a single PostgreSQL instance\nusing the row level security feature. The main idea is to have the\n\"row level security\"\nenabled on system catalog tables, thus the user can get only the rows that are\neither system objects or the user objects,...
[ { "msg_contents": "Hi,\n\nwhen building with optimizations clang-3.7, probably some older\ncompilers as well, fail with a funny error:\n\nfatal error: error in backend: Cannot select: intrinsic %llvm.x86.sse42.crc32.64.64\n\nturns out that is because configure chose to use the crc32 instruction,\nwithout the ac...
[ { "msg_contents": "Hello Everyone,\n\nI have a problem related to query in PostgreSQL.Some queries are not running.Please help me to find out a solution.\n\nThanks \nRahul\n=====-----=====-----=====\nNotice: The information contained in this e-mail\nmessage and/or attachments to it may contain \nconfidential or...
[ { "msg_contents": "On 08/14/2015 12:20 PM, Andres Freund wrote:\n> Hi,\n>\n> when building with optimizations clang-3.7, probably some older\n> compilers as well, fail with a funny error:\n>\n> fatal error: error in backend: Cannot select: intrinsic %llvm.x86.sse42.crc32.64.64\n>\n> turns out that is because co...
[ { "msg_contents": "I had the idea that it would be useful to have some regression tests\nthat verify that the deadlock checker works as advertised, because we\ncurrently have just about zero test coverage for it. And it's easy\nenough to write a regression test that causes a simple 2-way deadlock.\nBut you can...
[ { "msg_contents": "Hello, I want to write a \"BackgroundWorker\" in C++ (have lots of C++ \ncode and libs to reuse).\n\nI found \" 35.9.13 Using C++ for Extensibility \" in the 9.3/4 \ndocumentation who says it's possible and gives some guidelines for \nsource-code writing.\nCompiling is not too difficult if ...
[ { "msg_contents": "In commit 0fc94a5ba I wrote:\n\n+ * ... It's okay to update the [ session-wide ]\n+ * hash table with the new tree because all plpgsql functions within a\n+ * given transaction share the same simple_eval_estate.\n\nUm. Well, that's true for actual functions, but plpgsql DO blocks us...
[ { "msg_contents": "Hi, I'm working on a FDW for the unix/linux user database - think\n/etc/passwd and /etc/group although I'm actually using system calls that\ncould be quietly redirected to LDAP or other backends. It's easy to create\nthe FDW and a table associated with it, something like\n\nCREATE TABLE passw...
[ { "msg_contents": "Commit f14a6bbedb79adce2298d0d4f5e2abe8563e0eca added an isolation\ntest, alter-table-1.spec, which reads in part:\n\nsession \"s2\"\nsetup { BEGIN; }\nstep \"rx1\" { SELECT * FROM b WHERE a_id = 1 LIMIT 1; }\nstep \"wx\" { INSERT INTO b VALUES (0); }\nstep \"rx1\" {...
[ { "msg_contents": "Hello hackers,\n\n* Description\n\nThis patch is a proposal to allow the use of word 'semester' to\nextract it from date in functions like EXTRACT, DATE_PART, etc and\nadds the letter 'S' to format the date output in to_char.\n\n** Example\n\nSELECT EXTRACT(semester FROM DATE '2015-07-07');\n...
[ { "msg_contents": "Attached is a small patch which improves the way get_base_rel_indexes()\nworks.\n\nThe current version creates a new bitmapset on each recursion level then\nbms_joins() to the one on the next level up each time. I understand that\nthis will patch will have about a 0 net performance improvemen...
[ { "msg_contents": "Hi,\n\nThe attached patch adds support for RADIUS passwords longer than 16 octets.\n\n\n.m\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-hackers", "msg_date": "Sat, 15 Aug 201...
[ { "msg_contents": "When ginbulkdelete gets called for the first time in a VACUUM(i.e. stats\n== NULL), one of the first things it does is call ginInsertCleanup to get\nrid of the pending list. It does this in lieu of vacuuming the pending\nlist.\n\nThis is important because if there are any dead tids still in...
[ { "msg_contents": "Hi,\n\nThere seems to be a bug in the make rules when DTrace is enabled. It\ncauses dtrace -G to be invoked twice when building PostgreSQL as a\nFreeBSD port: once during the build itself, and once during\ninstallation. For a long time this has been worked around on FreeBSD\nwith a change to ...
[ { "msg_contents": "Calling CONTINUE with a label that's not a loop produces an error \nmessage with no context info [1]. This is because of\n\n\trc = exec_stmt_block(&estate, func->action);\n\tif (rc != PLPGSQL_RC_RETURN)\n\t{\n\t\testate.err_stmt = NULL;\n\t\testate.err_text = NULL;\n\nI trawled through git bl...
[ { "msg_contents": "spi_printtup() has the following code (spi.c:1798):\n\n if (tuptable->free == 0)\n {\n tuptable->free = 256;\n tuptable->alloced += tuptable->free;\n tuptable->vals = (HeapTuple *) repalloc(tuptable->vals,\n\n tuptable->alloced * si...
[ { "msg_contents": "Hi all,I throught I would try sqlsmith with more sanitizers. So, I tried the ThreadSanitizer. Building off HEAD (522400a5198f63823406202e18fdaf3621619d98), it fails to complete the thread check since the thread test because there are some volatile ints being accessed between threads[1]. Volat...
[ { "msg_contents": "I'm starting to work on a tar FDW as a proxy for a much more specific FDW.\n(It's the 'faster to build two and toss the first away' approach - tar lets\nme get the FDW stuff nailed down before attacking the more complex\ncontainer.) It could also be useful in its own right, or as the basis fo...
[ { "msg_contents": "Folks,\n\nIn the interest of consistency, which is to say, of not hitting\nbarriers that are essentially implementation details, I'd like to\npropose that we allow the rest of the row-returning commands inside\nWITH clauses. We currently have:\n\nSELECT\nVALUES\nINSERT/UPDATE/DELETE ... RETU...
[ { "msg_contents": "Hi,\n\nSome time ago the array-style subscripting for the jsonb data type was\ndiscussed in this mailing list. I think it will be quite convenient to have\na such nice syntax to update jsonb objects, so I'm trying to implement\nthis. I created a patch, that allows doing something like this:\n...
[ { "msg_contents": "The commit message for de76884 contains some important information about\nthe purpose and use of the new .partial WAL files. But I don't see\nanything about this in the documentation or another user-visible place.\n We should probably add something.\n\n\n-- \nSent via pgsql-hackers mailing l...
[ { "msg_contents": "Hi,\n\nWhen tab-completing after GRANT EXECUTE, currently psql injects\n\"PROCEDURE\", rather than the expected \"ON\".\n\nThe code for completing with \"ON\" is there, but it's not reached due to\nfalling earlier into another branch, one that handles CREATE TRIGGER.\n\nA trivial patch is att...
[ { "msg_contents": "Rationale\n=========\n\nSince introduction of the WAL-based replication into the PostgreSQL, it is\npossible to create high-availability and load-balancing clusters.\n\nHowever, there is no support for failover in the client libraries. So, only\nway to provide transparent for client applicati...
[ { "msg_contents": "Hi,\n\nI would like propose $SUBJECT for this development cycle. Attached is a\nWIP patch that implements most if not all of what's described below. Some\nyet unaddressed parts are mentioned below, too. I'll add this to the CF-SEP.\n\nSyntax\n======\n\n1. Creating a partitioned table\n\nCREAT...
[ { "msg_contents": "In [1], it was discussed to make wal_level changeable at run time\n(PGC_SIGHUP), as part of an effort to make replication easier to set up\nand/or provide better defaults. I was wondering what it would take to\ndo that.\n\nI looks like increasing the setting is doable, as long as we WAL-log ...
[ { "msg_contents": "Hello,\n\nI noticed ExecChooseHashTableSize() in nodeHash.c got failed by\nAssert(nbuckets > 0), when crazy number of rows are expected.\n\nBACKTRACE:\n\n#0 0x0000003f79432625 in raise () from /lib64/libc.so.6\n#1 0x0000003f79433e05 in abort () from /lib64/libc.so.6\n#2 0x000000000092600a ...
[ { "msg_contents": "Hi,\n\nI was looking at PL/pgSQL documentation and realized that contrary to\nspec, I've been omitting the colon ':' from assignments, e.g. writing\n\n 'x = 5' rather than the correct\n 'x := 5'\n\nI don't see any error messages about this.\n\nI am not aware of any problems due to this. ...
[ { "msg_contents": "Hi hackers, I've been wrestling with this one for a while and gone\ndown a couple blind alleys, so time to ask the experts.\n\nPostGIS has a couple things different from the extensions that live in contrib,\n\n- it has some GUCs\n- it has a versioned loadable library (postgis-2.1.so, postgis-...
[ { "msg_contents": "pg_upgrade's check.c contains a function called\ncheck_for_isn_and_int8_passing_mismatch. If the float8 pass-by-value\nvalues differ between the old and new clusters, which is likely to\nhappen on Windows 64 because of cf376a4ad, and if the old cluster\ncontains any databases which contain f...
[ { "msg_contents": "When we check a tuple for MVCC, it has to pass checks that the inserting\ntransaction has committed, and that it committed before our snapshot\nbegan. And similarly that the deleting transaction hasn't committed, or\ndid so after our snapshot.\n\nXidInMVCCSnapshot is (or can be) very much ch...
[ { "msg_contents": "> On Mon, Aug 17, 2015 at 6:40 AM, Kouhei Kaigai <kaigai@ak.jp.nec.com> wrote:\r\n> > Here is one other thing I could learn from TPC-DS benchmark.\r\n> >\r\n> > The attached query is Q4 of TPC-DS, and its result was towards SF=100.\r\n> > It took long time to compete (about 30min), please see...
[ { "msg_contents": "Hi\n\nI miss a functionality that helps with parsing any identifier to basic\nthree parts - database, schema, objectname. We have this function\ninternally, but it is not available for SQL layer.\n\nFUNCTION parse_ident(IN ident text, OUT dbname text, OUT schemaname text,\nOUT objectname text...
[ { "msg_contents": "Hello,\n\nI miss the newer features xpath_table equivalent in xml2. Are you planning\nto replace it with something?\n\n \n\nThank's\n\n \n\n \n\nMichal \n\n \n\n\n\n\nIng. Michal Šalko\nSQL specialista, vývojář\n\n+420 549 494 572 \n <mailto:salko@iba.muni.cz> salko@iba.muni.cz\nMasarykova un...
[ { "msg_contents": "I would like to execute a trigger function (written in C) in one of my\nbackground workers.\n\nDidn't figure out how to do that not even if it's possible.\n\nCurrently my trigger function is called, but in the \"server-process\"\nconnected to the client who does the \"insert into ...\" .\n\nA...
[ { "msg_contents": "I looked into the crash reported in bug #13579. The proximate cause\nof the crash is that PLyString_ToComposite does this:\n\n PLy_output_datum_func2(&info->out.d, typeTup,\n exec_ctx->curr_proc->langid,\n exec_ctx->curr_proc->trftypes);\n\...
[ { "msg_contents": "Hi,\n\nWe use RADIUS authentication at $WORK, and it has one major flaw (well, \ntwo, but I already fixed the other one this week): it only supports \nspecifying a single server, which as we might know, is bad for high \navailability. So I'm developing a patch to fix this issue, but I'm not ...
[ { "msg_contents": "> On Mon, Aug 17, 2015 at 9:40 AM, Kouhei Kaigai <kaigai@ak.jp.nec.com> wrote:\r\n> > I think SortSupport logic provides a reasonable way to solve this\r\n> > kind of problem. For example, btint4sortsupport() informs a function\r\n> > pointer of the fast version of comparator (btint4fastcmp) ...
[ { "msg_contents": "I'll start a new thread for this, since my external sorting patch has\nnow evolved well past the original \"quicksort with spillover\"\nidea...although not quite how I anticipated it would. It seems like\nI've reached a good point to get some feedback.\n\nI attach a patch series featuring a n...
[ { "msg_contents": "Is there any significant interest in either of these?\n\nJosh Berkus tells me that he would like pg_controldata information, and \nI was a bit interested in pg_config information, for this reason: I had \na report of someone who had configured using --with-libxml but the xml \ntests actually ...
[ { "msg_contents": "Hi all!\n\n\nWe just had a case of a very long running process of ours that creates \ndoes a lot of prepared statements through Perls DBD:Pg running into:\n\nhttps://rt.cpan.org/Public/Bug/Display.html?id=88827\n\nThis resulted in millions of prepared statements created, but not \nremoved in ...
[ { "msg_contents": "Hi,\nNormally I try to annotate incoming queries, to make it easier to diagnose\nslow ones. For example:\n\n-- Users.findByPhoneNumber\nSELECT * FROM ....\n\nThe pg_dump and pg_restore commands issue a COPY with no possibility of\nadding a comment. It would be useful to know who or what exact...
[ { "msg_contents": "I don't see any reason not to remove this. It's been unused since\na191a169d6d0b9558da4519e66510c4540204a51, dated Jan 10 2007.\n\n-- \n�lvaro Herrera Pe�alol�n, Chile\n\"La realidad se compone de muchos sue�os, todos ellos diferentes,\npero en cierto aspecto, parecidos...\" (Y...
[ { "msg_contents": "I split this into a new thread to talk about archiving best practices.\n\nOn 8/18/15 2:25 PM, Stephen Frost wrote:\n> * Stephen Frost (sfrost@snowman.net) wrote:\n>> * Robert Haas (robertmhaas@gmail.com) wrote:\n>>> On Mon, Aug 17, 2015 at 2:50 PM, Peter Eisentraut <peter_e@gmx.net>\nwrote:\n...
[ { "msg_contents": "Hello,\n\nduring my testing I've found cases of left-shifting negative integers \nduring run-time and I was recently encouraged to post a report of them, \nso here it is (done against 960ea971e66bcd621ba88841b4cb85c7f0e7c383).\n\nBack-traces are included in the attached file. If any kind of \...
[ { "msg_contents": "diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c\nindex d169027..43421d6 100644\n--- a/src/backend/commands/trigger.c\n+++ b/src/backend/commands/trigger.c\n@@ -4126,7 +4126,7 @@ AfterTriggerEndXact(bool isCommit)\n\n\n /*\n- * Forget the query stack and cons...
[ { "msg_contents": "It is not easy to compare events on a pgbench runs (oops, the tps is down) \nwith for instance events in postgres log, so as to figure out what may \nhave cause a given glitch.\n\nThis patches adds an option to replace the \"time since pgbench run \nstarted\" with a timestamp in the progress ...
[ { "msg_contents": "Hello,\nTried this a few times. I am trying to compile and run PostgreSQL 9.4.0 on\nAIX 7.1. I was able to compile with following settings:\nCC=\"xlc_r -q64 -qnoansialias\"\nCFLAGS=\"-g -O0\"\nAR=\"ar -X64\"\nOBJECT_MODE=64\n./configure --enable-cassert --enable-debug\n-with-includes=/opt/f...
[ { "msg_contents": "Hi\n\nI found so a set \"psql\" and \"xargs\" is pretty strong. But I miss a psql\noption for simple returning current database and continuing in pipeline.\n\nWhat I am doing:\n\npsql postgres -At -c \"select datname from pg_database\" |\nxargs -P 3 -I % psql % -At -c \"select current_databe(...
[ { "msg_contents": "Just checking to see if you guys have settled on a date for 9.5.0 release.\n\nThe PostGIS Dev team would like to release PostGIS 2.2 about or a week or\nmore before, but not too far ahead of 9.5.0 release.\n\n\nThanks,\nRegina Obe\n\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hack...
[ { "msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nDo we care that as of 9.5 pg_controldata output is not 100% aligned\nanymore? The culprit is:\n\n Current track_commit_timestamp setting: off\n\nIts value is shifted 2 characters to the right with respect to all the\nothers. I think it ought ...
[ { "msg_contents": "Hi,\n\n From the Debian ports buildd:\n\nhttps://buildd.debian.org/status/fetch.php?pkg=postgresql-9.4&arch=alpha&ver=9.4.4-1&stamp=1434132509\n\nmake[5]: Entering directory '/�PKGBUILDDIR�/build/src/backend/postmaster'\n[...]\ngcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-...
[ { "msg_contents": "(sending again, forgot to cc hackers, sorry for the duplicate)\n\nHi,\n\nI'm trying to use the custom scan API to replace code that currently\ndoes everything via hooks and isn't safe against copyObject() (Yes,\nthat's not a grand plan).\n\nTo me dealing with CustomScan->custom_private seems ...
[ { "msg_contents": "Hello,\n\nCan the t_len field in HeapTuple structure be used to verify the length of\nthe tuple?\n\nThat is, if I calculate the length from the contents of the tuple using\ndata from pg_attribute for fixed length fields and the data from the header\nfor varlena fields, should it always match ...
[ { "msg_contents": "This works:\n\nCREATE TYPE c AS (r float, i float);\nCREATE FUNCTION mag(c c) RETURNS float LANGUAGE sql AS $$\nSELECT sqrt(c.r^2 + c.i^2)\n$$;\nSELECT mag( (2.2, 2.2) );\n mag\n------------------\n 3.11126983722081\n\nBut this doesn't:\nCREATE FUNCTION magsum( c c[] ) RETURNS float L...
[ { "msg_contents": "Hi all,\n\nThe following commit has broken the SSL test suite (embarrassing and\nlonely moment):\ncommit 13d856e177e69083f543d6383eeda9e12ce3c55c\nAuthor: Heikki Linnakangas <heikki.linnakangas@iki.fi>\nDate: Wed Jul 29 19:17:02 2015 +0300\n\nMake TAP tests work on Windows.\n[...]\n*Michael...
[ { "msg_contents": "Hi\n\n if (options.single_txn && options.action != ACT_FILE &&\noptions.action == ACT_NOTHING)\n {\n fprintf(stderr, _(\"%s: -1 can only be used in\nnon-interactive mode\\n\"), pset.progname);\n exit(EXIT_FAILURE);\n }\n\nthe expression shoul...
[ { "msg_contents": "Hi all,\n\nAs of now, file access functions in genfile.c can only be used by\nsuperusers. This proposal is to relax those functions so as\nreplication users can use them as well. Here are the functions aimed\nby this patch:\n- pg_stat_file\n- pg_read_binary_file\n- pg_read_file\n- pg_ls_dir\n...
[ { "msg_contents": "Hi,\n\nThe locking around rowsecurity policy expressions seems to be\ninsufficient:\nSELECT * FROM document WHERE f_leak(dtitle) ORDER BY did;\nWARNING: RelationIdGetRelation(247984) without holding lock on the relation\nWARNING: relation_open(247984, NoLock) of relation \"uaccount\" withou...
[ { "msg_contents": "Hi,\n\nI searched the current code, all diffs to the current code, and the\nmailing list, but still haven't got an actual clue what RIR is supposed\nto stand for. There's a few things that come to mind (Rewrite Instead\nRule?), but none of them seem to make too much sense.\n\nGreetings,\n\nAn...
[ { "msg_contents": "In ResolveRecoveryConflictWithLock, there is the comment:\n\n /*\n * If blowing away everybody with conflicting locks doesn't work, after\n * the first two attempts then we just start blowing everybody away\nuntil\n * it does work.\n\n\nBut what it does is something different t...
[ { "msg_contents": "I don't have an independent reproduction yet (though make test in [1] \nshould reproduce this). I haven't actually been able to reproduce by \nhand yet, but pgtap has something to do with this. This is affecting at \nleast 9.4 and a fairly recent HEAD.\n\n\n-- Bits from top of test/sql/base.s...
[ { "msg_contents": "Is it intentional that pg_extension_config_dump() doesn't also add \nsequences owned by a table? If not, I'll work on a patch.\n-- \nJim Nasby, Data Architect, Blue Treble Consulting, Austin TX\nExperts in Analytics, Data Architecture and PostgreSQL\nData in Trouble? Get it in Treble! http://...
[ { "msg_contents": "Hi,\nthis is a patch for src/tools/version_stamp.pl that adds the current Git \ncommit information from \"git describe --tags --long\" to the current \nversion string if \"git\" is specified on the command line. I've been \ntesting for regressions and such lately (none found, yay), and the \n...
[ { "msg_contents": "Hello, this patch enables planner to be couscious of inter-column\ncorrelation.\n\nSometimes two or more columns in a table has some correlation\nwhich brings underestimate, which leads to wrong join method and\nends with slow execution.\n\nTomas Vondra is now working on heavily-equipped mult...
[ { "msg_contents": "Hi, this is a spin-off patch from Fabien COELHO's\nbackslash-continuations.\n\nThe major concept of this patch is making usage of psql's scanner\nto get rid of home-grown scanner of pgbench to make\nmulti-statement feature available for pgbench custom scripts.\n\nThis patch does the following...
[ { "msg_contents": "Hello,\n\nI added a \"NOFITY chan\" to the SQL arg of an SPI_execute(), (I did it\nalso with just the NOTIFY statement),\nbut the listeners (other workers) don't get the notification until a\n\"NOTIFY chan\" is done for example with pgadmin,\n\nThey don't get lost, just not emited after the \...
[ { "msg_contents": "Hello Hackers\n\nHow would you react if I provided a patch which introduces a CMake build \nsystem?\n\nOld thread:\nhttp://www.postgresql.org/message-id/200812291325.13354.peter_e@gmx.net\n\nThe main argument against the \"it's too hard\". I'm right?\n\nThanks!\n-- \nYUriy Zhuravlev\nPostgres...
[ { "msg_contents": "Hello,\nI'm going to create two factor authentication for pgadmin server...\nI'm using postgresql 9.4 with pgadmin III on Linux Mint 17.2 32bit...\nI already have 1 password authentication but For better security, I just\nwant to force 2 of them. The authentication factors could be any\nthing...
[ { "msg_contents": "Hi,\n\nThis is a reboot of my previous proposal for pivoting results in psql,\nwith a new patch that generalizes the idea further through a command\nnow named \\rotate, and some examples.\n\nSo the concept is: having an existing query in the query buffer,\nthe user can specify two column numb...
[ { "msg_contents": "Hi,\n\nIn pg_upgrade, how about adding a feature to copy data directory over\nnetwork.\nThat is, we can run pg_upgrade from our new host, where old host will be a\nremote machine.\nWe can add two parameters - oldhost and if it is used, pg_upgrade will\nidentify the old host as remote and inst...
[ { "msg_contents": "Hi\r\n\r\ncurrently JSON support NULL value - but we doesn't convert NULL to JSON\r\ncorrectly\r\n\r\npostgres=# select to_json(NULL::text) IS NULL;\r\n┌──────────┐\r\n│ ?column? │\r\n╞══════════╡\r\n│ t │\r\n└──────────┘\r\n(1 row)\r\n\r\nprobably should be json \"null\";\r\n\r\nlike\...
[ { "msg_contents": "Hello,\n\nThe other day I've rediscovered the exciting idea of using signals to dump\na backend's currently executed query plan, which, it turns out, was already\nproposed by Pavel and Simon in these threads:\n\nhttp://www.postgresql.org/message-id/flat/CAFj8pRA-DuzkmDtu52CiUgb0P7TVri_B8LtjMJ...
[ { "msg_contents": "The buffer/README section on buffer clean up locks never got updated for\nthe creation of Heap Only Tuples and their associated compaction logic.\n\nI've attached a patch to change the explanation. I'm sure someone can word\nit better than I have.\n\nCheers,\n\nJeff\n\nThe buffer/README sect...
[ { "msg_contents": "I have recently increased my public statements about the idea of adding\nhorizontal scaling/sharding to Postgres. I wanted to share with hackers\na timeline of how we got here, and where I think we are going in the\nshort term:\n\n2012-2013: As part of writing my scaling talk\n(http://momjia...
[ { "msg_contents": "Discovered when debugging libpqtypes test failures:\n\nhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795729\n\npostgres =# set timezone = 'Etc/UTC+1';\nSET\npostgres =# set datestyle = 'postgres';\nSET\npostgres =# select '2015-01-01 01:00:00 +0100'::timestamptz;\n Wed 31 Dec 23:00:00 201...