threads
listlengths
1
2.99k
[ { "msg_contents": "Hi all,\n\nWe already have IF NOT EXISTS for CREATE TABLE. There are some reason to\ndon't have to CREATE TABLE AS and CREATE MATERIALIZED VIEW??\n\nRegards,\n\n-- \nFabrízio de Royes Mello\nConsultoria/Coaching PostgreSQL\n>> Timbira: http://www.timbira.com.br\n>> Blog: http://fabriziomello....
[ { "msg_contents": "Hi,\n\nI have a patch which is actually not commitfest-ready now, but it\nalways better to start discussing proof of concept having some patch\ninstead of just an idea.\n\nSince I'am a DBA rather than C programmer, I will appreciate any\nsuggestions/critics about the patch and code quality to...
[ { "msg_contents": "Hi\n\nSQL:2003 introduced the function NEXT VALUE FOR <sequence>. Google\ntells me that at least DB2, SQL Server and a few niche databases\nunderstand it so far. As far as I can tell there is no standardised\nequivalent of currval and setval (but I only have access to second\nhand informatio...
[ { "msg_contents": "Having been surprisingly successful at advancing our understanding of\narguments for and against various approaches to \"value locking\", I\ndecided to try the same thing out elsewhere. I have created a\ngeneral-purpose UPSERT wiki page.\n\nThe page is: https://wiki.postgresql.org/wiki/UPSERT...
[ { "msg_contents": "Here is the comments in process_matched_tle() in rewriteHandler.c.\n\n883 * such nodes; consider\n884 * UPDATE tab SET col.fld1.subfld1 = x, col.fld2.subfld2 = y\n885 * The two expressions produced by the parser will look like\n886 * FieldStore(col, fld1, FieldSt...
[ { "msg_contents": "On Thu, Oct 2, 2014 at 5:25 AM, Craig Ringer <craig@2ndquadrant.com> wrote:\n> It's not at all clear to me that a DTrace-like (or perf-based, rather)\n> approach is unsafe, slow, or unsuitable for production use.\n\n> With appropriate wrapper tools I think we could have quite a useful\n> libr...
[ { "msg_contents": "Hi\n\nThere are few less readable examples of dynamic SQL in plpgsql doc\n\nlike:\n\nEXECUTE 'SELECT count(*) FROM '\n || tabname::regclass\n || ' WHERE inserted_by = $1 AND inserted <= $2'\n INTO c\n USING checked_user, checked_date;\n\nor\n\nEXECUTE 'UPDATE tbl SET '\n || q...
[ { "msg_contents": "Hi,\n\nwe have seen repeatedly that users can be confused about why PostgreSQL\nis not shutting down even though they requested it. Usually, this is\nbecause `log_checkpoints' is not enabled and the final checkpoint is\nbeing written, delaying shutdown. As no message besides \"shutting down\...
[ { "msg_contents": "I got the following error when I try to build my extension\ntowards the latest master branch.\n\nIs the \"port/atomics/*.h\" files forgotten on make install?\n\n[kaigai@magro pg_strom]$ make\ngcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith\n-Wdeclaration-after-statement -Wendif-labels\n-Wm...
[ { "msg_contents": "Hi fellow hackers,\n\nI would like to work on a new feature allowing our users to assess the\namount of trouble they will run into when running a DDL script on their\nproduction setups, *before* actually getting their services down.\n\nThe main practical example I can offer here is the ALTER ...
[ { "msg_contents": "make check-world dies ingloriously for me, like this:\n\n/bin/sh ../../../config/install-sh -c -d tmp_check/log\nmake -C ../../..\nDESTDIR='/Users/rhaas/pgsql/src/bin/initdb'/tmp_check/install install\n>'/Users/rhaas/pgsql/src/bin/initdb'/tmp_check/log/install.log 2>&1\ncd . && TESTDIR='/User...
[ { "msg_contents": "Hi list,\n\nAttached patch allows semijoin/antijoin/hashed SubPlan optimization\nwhen an EXISTS subquery contains a LIMIT clause with a positive\nconstant. It seems to be a fairly common meme to put LIMIT 1 into\nEXISTS() subqueries, and it even makes sense when you're not aware\nthat the dat...
[ { "msg_contents": "I did a fair dive into double-checking the decision to just leave \nxloginsert_locks fixed at 8 for 9.4. My conclusion: good call, move \nalong. Further improvements beyond what the 8-way split gives sure are \npossible. But my guess from chasing them a little is that additional \nplaces ...
[ { "msg_contents": "This is from Bug #11555, which is still in moderation as I type this\n(analysis was done via IRC).\n\nThe GiST insertion code appears to have no length checks at all on the\ninserted entry. index_form_tuple checks for length <= 8191, with the\ndefault blocksize, but obviously a tuple less tha...
[ { "msg_contents": "Hello,\n\nI recently got a trouble on development of my extension that utilizes\nthe shared buffer when it released each buffer page.\n\nThis extension transfers contents of the shared buffers to GPU device\nusing DMA feature, then kicks a device kernel code.\nUsually 8KB (= BLCKSZ) is too sm...
[ { "msg_contents": "Hi Hackers,\n\nI've updated the wiki page\nhttps://wiki.postgresql.org/wiki/Incremental_backup following the result\nof discussion on hackers.\n\nCompared to first version, we switched from a timestamp+checksum based\napproach to one based on LSN.\n\nThis patch adds an option to pg_basebackup...
[ { "msg_contents": "As discussed recently, here is an undocumented patch for \njson_strip_nulls and jsonb_strip_nulls.\n\ncheers\n\nandrew\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_contents": "Hello\n\nI am playing with RLS. I created simple table\n\ntable_data (inserted_by text, v integer);\n\nI created two policies\n\ncreate policy p1 on data with check (inserted_by = session_user);\ncreate policy p2 on data with check (v between 10 and 1000);\n\nI was surprised so p2 effectively...
[ { "msg_contents": "I got interested in the problem discussed in\nhttp://www.postgresql.org/message-id/20714.1412456604@sss.pgh.pa.us\nto wit:\n\n> It's becoming clear to me that our existing design whereby zone\n> abbreviations represent fixed GMT offsets isn't really good enough.\n> I've been wondering whether...
[ { "msg_contents": "Hi all\n\nWhile looking at an unrelated issue in PgJDBC I noticed that it's\ndifficult for users and the driver to tell in advance if a given\nstatement will support bind parameters.\n\nPostgreSQL just treats placeholders as syntax errors for non-plannable\nstatements at parse time.\n\nThis f...
[ { "msg_contents": "Hi,\n\nThis morning while running make check-world on my OSX Mavericks laptop, I\nfound the following failure:\ntest pgtypeslib/dt_test2 ... stderr FAILED (test process was\nterminated by signal 6: Abort trap)\n(lldb) bt\n* thread #1: tid = 0x0000, 0x00007fff8052c866\nlibsystem_kernel.dy...
[ { "msg_contents": "In addition to the few patches left in Needs Review state, we have six \npatches marked as Ready for Committer.\n\nCommitters: Could you please pick a patch, and commit if appropriate? Or \nif there's a patch there that you think should *not* be committed, \nplease speak up.\n\n- Heikki\n\n\n...
[ { "msg_contents": "I noticed that analyze messages shown by autovacuum don't discriminate\nbetween non-inherited cases and inherited cases, as shown in the below\nexample:\n\nLOG: automatic analyze of table \"postgres.public.pt\" system usage: CPU\n0.00s/0.01u sec elapsed 0.06 sec\nLOG: automatic analyze of t...
[ { "msg_contents": "Hi all,\n\nLately I have come across two inconveniences/bugs related to running\nthe autocommit-off mode in psql.\n\nThese are:\n- BUG #11524: Unable to add value to ENUM when having AUTOCOMMIT\ndisabled in psql\n- BUG #10822: \"ALTER SYSTEM cannot run inside a transaction block\"\nwhen havin...
[ { "msg_contents": "Hi all,\n\npg_receivexlog always handles argument of -d option as connstr formatted value.\nWe can doubly specify host name, port number.\nThe other client tools handles -d option as connstr value only if\nargument has \"=\" character.\nThe document says that pg_receivexlog ignores database ...
[ { "msg_contents": "In DoCopy, some RLS-specific code constructs a SelectStmt to handle\nthe case where COPY TO is invoked on an RLS-protected relation. But I\nthink this step is bogus in two ways:\n\n /* Build FROM clause */\n from = makeRangeVar(NULL, RelationGetRelationName(rel), 1);\n\...
[ { "msg_contents": "Hi folks,\n\nMy corp (CSC) OSS division requires CLAs to be signed for OSS project \nparticipation to begin. I need to fix a few problems in PGJDBC driver \nand am unable to start without them. Neither Google nor PG Wiki contain \nCLA licenses and I have no idea where else to look.\nPostgreSQ...
[ { "msg_contents": "While reviewing the patch myself, i spotted some formatting problems in the\ncode. Fixed in this v5 patch.\n\nAlso, this patch uses context patch format (in first versions, because of\nthe small modification, context patch format obfucates the changes. After\nreimplementation this isn't the c...
[ { "msg_contents": "Hi,\n\nIt appears that I'm not the only person who finds it somewhat\nunintuitive for overlapping RLS policies to be permissive rather than\nrestrictive (OR vs AND) (at least 3 others seem to expect AND\nbehaviour), although I understand the reasoning behind\nit. And I've since discovered th...
[ { "msg_contents": "Hi,\n\nThe code in there doesn't look very interesting - and very unlikely to\nrun these days. Notably it relies on a binary called 'postmaster' et\nal...\n\nThe last realy changes are from a long time ago:\n\ncommit 142d42f9386ed81a4f0779ec8a0cad1254173b5e\nAuthor: Vadim B. Mikheev <vadim4o@...
[ { "msg_contents": "While looking at bug #11431, I noticed that pg_upgrade still seems to \nthink that encoding and locale are cluster-wide properties. We got \nper-database locale support in 8.4, and encoding has been per-database \nmuch longer than that.\n\npg_upgrade checks the encoding and locale of template...
[ { "msg_contents": "The RLS patch added OCLASS_ROWSECURITY but it seems that not enough\neffort was made to grep for places that might require adjustment as a\nresult.\n\nIn objectaddress.c, getObjectDescription() was updated, but\ngetObjectTypeDescription() and getObjectIdentity() were not.\n\nIn dependency.c, ...
[ { "msg_contents": "Some time ago, when debugging a GIN bug, I wrote these pageinspect \nfunctions to inspect GIN indexes. They were very useful; we should add them.\n\n- Heikki\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postg...
[ { "msg_contents": "Hello.\n\nI am interested in the json type on postgresql. I would like to implement\nadditional operations on the json structure that may extract/insert table\nlike information from the json tree structure.\nI have a implementation on javascript that shows this type of operations.\nYou can se...
[ { "msg_contents": "Our CRC algorithm is a bit weird. It's supposedly CRC-32, with the same \npolynomial as used in Ethernet et al, but it actually is not. The \ncomments refer to \"Painless Guide to CRC Error Detection Algorithms\" by \nRoss N. Williams [1] (http://www.ross.net/crc/download/crc_v3.txt), but \nI...
[ { "msg_contents": "Hi there!\n\nI'm trying to implement a custom indexing system using the GiST index \nframework, and I have a few questions.\nBasically, I'm trying to implement a system that allows me to search \nacross a set of 64 bit integers by hamming distance. This is intended to \nbe used in searching f...
[ { "msg_contents": "Hello!\n\nAutovacuum daemon performs vacuum when the number of rows \nupdated/deleted (n_dead_tuples) reaches some threshold.\nSimilarly it performs analyze when the number of rows changed in any way \n(incl. inserted).\nWhen a table is mostly insert-only, its visibility map is not updated as...
[ { "msg_contents": "Hello,\n\nOne user reported a hang problem with 9.4 beta2 on Windows. The PostgreSQL \nis 64-bit version. I couldn't find the cause, but want to solve the \nproblem. Could you help with this?\n\nI heard that the user had run 16 concurrent psql sessions which executes \nINSERT and UPDATE st...
[ { "msg_contents": "\nSalut!\n\nFellow volunteers, I request assistance in understanding the following:\n\nWhen I explain a query I can get the following information:\n\n\n | \"I/O Read Time\": 0.000,\n | \"I/O Write Time\": 0.000\n\nI know why it is 0. My question is this, can ...
[ { "msg_contents": "Summary: pg_restore -n attempts to restore objects to pg_catalog schema\nVersions Tested: 9.3.5, 9.3.0, 9.2.4\nSeverity: Failure\nDescription:\n\nThe -n option (or --schema) for pg_restore is supposed to allow you to\nrestore a single schema from a custom-format pg_dump file. Instead, it\nat...
[ { "msg_contents": "Having just git pulled from orgin/master:\n\n$ ./configure\n$ make\n\nMileage:\n\n...\nmake -C bootstrap all\nmake[3]: Entering directory `/path/to/postgresql/src/backend/bootstrap'\ngcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-form...
[ { "msg_contents": "I found a reference made obsolete by commit 9e85183b, which is from\nway back in 2000.\n\ncomparetup_index_btree() says:\n\n/*\n* This is similar to _bt_tuplecompare(), but we have already done the\n* index_getattr calls for the first column, and we need to keep track of\n* whether any null f...
[ { "msg_contents": "Hello, on the way considering alter role set .., I found that\nALTER ROLE/USER cannot take CURRENT_USER as the role name.\n\nIn addition to that, documents of ALTER ROLE / USER are\ninconsistent with each other in spite of ALTER USER is said to be\nan alias for ALTER ROLE. Plus, ALTER USER ca...
[ { "msg_contents": "Postgres currently supports column level SELECT privileges.\n\n1. If we want to confirm a credit card number, we can issue SELECT 1\nFROM customer WHERE stored_card_number = '1234 5678 5344 7733'\n\n2. If we want to look for card fraud, we need to be able to use the\nfull card number to join ...
[ { "msg_contents": "Hi all,\n\nCurrently all the row-level lock modes are described in the page for\nSELECT query:\nhttp://www.postgresql.org/docs/devel/static/explicit-locking.html#LOCKING-ROWS\nHowever, after browsing the documentation, I noticed in the page\ndescribing all the explicit locks of the system tha...
[ { "msg_contents": "Hi,\n\nI've been testing out some of the new materialized view functionality\nin 9.4 and noticed that they don't show up in the information_schema\ndata dictionary views, specifically information_schema.tables or\ninformation_schema.views (sample output is below and it's the same for\n9.3 as ...
[ { "msg_contents": "Both Robert and Heikki expressed dissatisfaction with the fact that\nB-Tree index builds don't use sortsupport. Because B-Tree index builds\ncannot really use the \"onlyKey\" optimization, the historic oversight\nof not supporting B-Tree builds (and CLUSTER) might have been at least\na little...
[ { "msg_contents": "Started a new thread to raise awareness.\n\nMichael Paquier wrote:\n> On Thu, Oct 9, 2014 at 8:29 AM, Michael Paquier\n> <michael.paquier@gmail.com> wrote:\n> > On Thu, Oct 9, 2014 at 6:26 AM, Alvaro Herrera <alvherre@2ndquadrant.com>\n> > wrote:\n> >> However, if I were to do it, I would ins...
[ { "msg_contents": "Greetings,\n\nWhile looking for easier items in PostgreSQL Wiki's Todo List (this will be\nmy 3rd patch), i found this TODO:\n\nAdd a built-in array_agg(anyarray) or similar, that can aggregate\n> 1-dimensional arrays into a 2-dimensional array.\n>\n\nI've stumbled by this lack of array_agg(a...
[ { "msg_contents": "Hi all,\n\nAttached WIP patch adds new syntax REINEX SCHEMA which does reindexing\nall table of specified schema.\nThere are syntax dose reindexing specified index, per table and per database,\nbut we can not do reindexing per schema for now.\nSo we must use reindexdb command if we want to do...
[ { "msg_contents": "Hi,\n\nattached is a WIP patch implementing multivariate statistics. The code\ncertainly is not \"ready\" - parts of it look as if written by a rogue\nchimp who got bored of attempts to type the complete works of William\nShakespeare, and decided to try something different.\n\nI also cut some...
[ { "msg_contents": "Hi all!\n\nI've been working on implementing a custom index using the Index Access Method API and have the need for custom reloptions that are \"complex\" strings (ie, also contain non-alphaumerics).\n\npg_get_indexdef() and pg_dump don't quote the reloption values, making a restore (or cut-n...
[ { "msg_contents": "The August commitfest is still Open, with a few more patches left. The \npatches that remain have stayed in limbo for a long time. It's not \nrealistic to expect anything to happen to them.\n\nI'm going to move the remaining patches to the next commitfest, and \nclose the August one. I hate t...
[ { "msg_contents": "CacheInvalidateHeapTuple currently does the following tests first; would there be a performance improvement to testing the system relation case first? We're almost never in bootstrap mode, so that test is almost always a waste. Is there any reason not to switch the two?\n\n\t/* Do nothing dur...
[ { "msg_contents": "I found a minor typo in bgworker.sgml. Patch attached. It should be\napplied to 9.4 too.\n\n-- \nShigeru HANADA\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_...
[ { "msg_contents": "A few years ago I started working on a concurrent hash table for\nPostgreSQL. The hash table part of it worked, but I never did\nanything with it, really. Amit mentioned to me earlier this week that\nhe was seeing contention inside the dynahash machinery, which inspired\nme to go back and u...
[ { "msg_contents": "Hi all,\n\nI found that the statistics are still remained after it's truncated.\nIn addition, the analyzing ignores table does not have any tuple.\nAfter table truncated, the entry of statistics continues to remain\nunless insertion and analyzing are executed.\nThere is reason why statistics ...
[ { "msg_contents": "Hello,\n\nI changed the buffer manager code in order to generate a trace of page\nrequests from the buffer manager perspective. In summary, whenever\nReleaseBuffer() or ReleaseAndReadBuffer() are called, I print the page\ncurrently being released which is identified by the tuple (tableSpace,\...
[ { "msg_contents": "Hi Hackers,\n\nfollowing the advices gathered on the list I've prepared a third partial\npatch on the way of implementing incremental pg_basebackup as described\nhere https://wiki.postgresql.org/wiki/Incremental_backup\n\n\n== Changes\n\nCompared to the previous version I've made the followin...
[ { "msg_contents": "On 14 October 2014 13:57, Stephen Frost <sfrost@snowman.net> wrote:\n\n> Create an 'audit' role.\n>\n> Every command run by roles which are granted to the 'audit' role are\n> audited.\n>\n> Every 'select' against tables which the 'audit' role has 'select' rights\n> on are audited. Similairly...
[ { "msg_contents": "Hi fellow hackers,\n\nPlease find attached to this email a patch to implement a new Event\nTrigger, fired on the the \"table_rewrite\" event. As attached, it's meant\nas a discussion enabler and only supports ALTER TABLE (and maybe not in\nall forms of it). It will need to grow support for VA...
[ { "msg_contents": "Hi list,\n\nI happened to notice that there are no less than 14 places in the code\nthat check whether a relation is a system catalog and throwing the\nerror \"permission denied: \"foo\" is a system catalog\"\n\nThe attached patch factors all of those into a single\nForbidSystemTableMods() fu...
[ { "msg_contents": "For parallelism, I think we need a concept of group locking. That is,\nsuppose we have a user backend and N worker backends collaborating to\nexecute some query. For the sake of argument, let's say it's a\nparallel CLUSTER, requiring a full table lock. We need all of the\nbackends to be ab...
[ { "msg_contents": "Greetings,\n\n The attached patch for review implements a few additional role\n attributes (all requested by users or clients in various forums) for\n common operations which currently require superuser privileges. This\n is not a complete solution for all of the superuser-only privilege...
[ { "msg_contents": "Hi All,\n\nPlease find attached a patch which implements support for UPDATE table1\nSET(*)=...\nThe patch supports both UPDATE table SET(*)=(a,b,c) and UPDATE table1\nSET(*)=(SELECT a,b,c FROM...).\nIt solves the problem of doing UPDATE from a record variable of the same\ntype as the table e....
[ { "msg_contents": "I have observed that for renaming some of the objects\nAccessExclusiveLock is taken on object whereas for\nother kind of objects no lock is taken on object before\nrenaming the object.\n\nThe object's that are renamed via AlterObjectRename_internal()\ntakes the lock (during get_object_address...
[ { "msg_contents": "Hackers,\n\nPostgres was initially designed to support access methods extendability.\nThis extendability lives to present day. However, this is mostly internal\nin-core extendability. One can quite easily add new access method into\nPostgreSQL core. But if one try to implement access method a...
[ { "msg_contents": "All,\n\nThe attached patch for review implements a directory permission system that\nallows for providing a directory read/write capability to directories for\nCOPY TO/FROM and Generic File Access Functions to non-superusers. This is\nnot a complete solution as it does not currently contain ...
[ { "msg_contents": "Hi,\n\nWhile I was checking the behavior of RLS, I found that the policy for SELECT\ndoesn't seem to be applied to RETURNING. Is this intentional? Please see\nthe following example.\n\nCREATE ROLE foo LOGIN NOSUPERUSER;\nCREATE TABLE hoge AS SELECT col FROM generate_series(1,10) col;\nALTER T...
[ { "msg_contents": "Hi All,\n\npg_dump binary-upgrade fail with segmentation fault for type without\nelement.\n\nConsider the following testcase:\n\nrushabh@postgresql$ ./db/bin/psql postgres\npsql (9.5devel)\nType \"help\" for help.\n\npostgres=# drop type typ;\nDROP TYPE\npostgres=# create type typ as ();\nCRE...
[ { "msg_contents": "Hi,\n\nPostgreSQL has for ages defined INT64_FORMAT and UINT64_FORMAT in \npg_config.h. This commit\n\nhttp://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=ce486056ecd28050\n\nmoved those definitions to c.h, which breaks compilation of all released \nSlony-I versions against current ...
[ { "msg_contents": "One of the queries in ri_triggers.c has be a little baffled.\n\nFor (relatively) obvious reasons, a FK insert triggers a SELECT 1 FROM\npk_rel ... FOR KEY SHARE.\nFor not-so-obvious reasons, a PK delete triggers a SELECT 1 FROM fk_rel ...\nFOR KEY SHARE.\n\nI can't see what the lock on fk_rel...
[ { "msg_contents": "I just tripped over that CommitFest mace that went missing after\nHeikki put it down from the last CF. Unless someone else wants to\npick it up, I'll manage this one.\n\nJust to get the ball rolling, I note that 19 patches were moved to\nthis CF from the last one. These are in the following...
[ { "msg_contents": "Over in the \"Log notice that checkpoint is to be written on shutdown\" thread...\n\nOn 10/16/14, 2:31 PM, Michael Banck wrote:\n > There were some comments that this might not actually be the case and/or\n > that the postmaster was simply waiting for clients to disconnect due to\n > smart sh...
[ { "msg_contents": "A little while back some users started complaining that the contrib module\nI develop (MADlib) was failing to build with the following error:\n\n------\n/usr/include/postgresql/9.2/server/port.h:480:32: error: declaration of\n'char* mkdtemp(char*)' has a different exception specifier\n/usr/in...
[ { "msg_contents": "The attached patches add an ssl_protocols configuration option which\ncontrol which versions of SSL or TLS the server will use. The syntax is\nsimilar to Apache's SSLProtocols directive, except that the list is\ncolon-separated instead of whitespace-separated, although that is easy\nto chang...
[ { "msg_contents": "Hi everyone,\n\nVitesse DB 9.3.5.S is Postgres 9.3.5 with a LLVM-JIT query executor\ndesigned for compute intensive OLAP workload. We have gotten it to a\nreasonable state and would like to open it up to the pg hackers\ncommunity for testing and suggestions.\n\nVitesse DB offers\n-- JIT Compi...
[ { "msg_contents": "Hi,\n\nConsider the following queries.\n\ncreate table t(i int, j int, k int, t text);\ninsert into t select i, i % 100, i % 1000, 'AABBCCDD' || i from\ngenerate_series(1, 1000000) i;\n\nftian=# explain select count(distinct j) from t group by t, i;\n QUERY PLAN\...
[ { "msg_contents": "Now that we have the create hash index warning in 9.5, I realized that\nwe don't warn about hash indexes with PITR, only crash recovery and\nstreaming. This patch fixes that.\n\nIs the wording \"cannot be used\" too vague. The CREATE INDEX manual\npage has the words \"give wrong answers to ...
[ { "msg_contents": "Following up something Pavel wrote, I notice that json_agg() and \njson_object_agg() are both marked as immutable, even though they invoke \nIO functions, while json_object is marked stable, even though it does \nnot, and can probably be marked as immutable. Mea maxima culpa.\n\nI'm not sure ...
[ { "msg_contents": "Hi,\n\nThis week we had one of the most annoying problems I've ever encountered \nwith postgres. We had a big index on multiple columns, say, foo(a, b, \nc). According to pg_stat_all_indexes the index was being used *all the \ntime*. However, after looking into our queries more closely, i...
[ { "msg_contents": "I looked into bug #11703,\nhttp://www.postgresql.org/message-id/20141017162236.2523.74453@wrigleys.postgresql.org\n\nWhat is happening here is that the FieldSelect optimization in\neval_const_expressions fails to play nice with the logic that determines\nwhich Vars need to be available from a...
[ { "msg_contents": "Hi,\n\nI've noticed an interesting phenomenon. Look at the following pgbench -c\n32 -j 32 -P 1 output on a scale 200 database. Then guess where I've\nstarted\nSET vacuum_cost_delay = '20ms';\nANALYZE pgbench_accounts;\nand when it finished. The cost_delay is to simulate a autovac triggered\na...
[ { "msg_contents": "Hi,\n\nOne of our sites ran into a problem with database installation:\n\ninitdb failed\nFATAL: unexpected data beyond EOF in block 19 of relation base/1/2609\nHINT: This has been seen to occur with buggy kernels; consider updating your system.\nSTATEMENT: COMMENT ON FUNCTION euc_jis_2004_to_...
[ { "msg_contents": "Buildfarm member hamerkop has been failing in the pg_upgrade regression\ntest for the last several days. The problem looks like this:\n\ncommand: \"C:/buildfarm/build_root/HEAD/pgsql.build/contrib/pg_upgrade/tmp_check/install/bin/pg_restore\" --port 50432 --username \"Administrator\" --exit-...
[ { "msg_contents": "Hi,\n\nCommit 32984d8fc3dbb90a3fafb69fece0134f1ea790f9 forgot to change the \nfilename in the comment in contrib/pgcrypto/pgcrypto--1.2.sql. Trivial \npatch attached.\n\n\n.marko\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your subscript...
[ { "msg_contents": "Currently, a non-freeze vacuum will punt on any page it can't get a cleanup lock on, with no retry. Presumably this should be a rare occurrence, but I think it's bad that we just assume that and won't warn the user if something bad is going on.\n\nMy thought is that if we skip any pages elog(...
[ { "msg_contents": "I ran into a type \" a a \" in a comment in snapmgr.c, and found that\nthere are four other places that've made the same typo, by the grep\ncommand. And in one of those places, I found yet another typo. Please\nfind attached a patch.\n\nThanks,\n\nBest regards,\nEtsuro Fujita\n\n\n\n-- \nSe...
[ { "msg_contents": "hello,I am reading the pool manager code,and have some problem:\n\nin poolmgr.c function agent_init():\n\nif (agent->pool)\n> agent_release_connections(agent, false);\n\n......\n\n#ifdef XCP\n> /* find database */\n> agent->pool = find_database_pool(database, user_name);\n> /* create if not f...
[ { "msg_contents": "Hi all,\n\nExcept if I am missing something, is there any reason why the sequence used\nin XLogArchiveCheckDone and XLogArchiveIsBusy to check if a XLOG segment\nhas been already archived is duplicated? I guess that doing a little bit of\nrefactoring here would make sense for simplicity, patc...
[ { "msg_contents": "Dear All,\n L've got a question for you.\nIf the value of the integer type is converted to a value of type Boolean,PostgreSQL will display just like\"The rule has already exist\";\n1. CREATE CAST (integer AS bool) WITH INOUT AS IMPLICIT; \n\nERROR: cast from type in...
[ { "msg_contents": "My Salesforce colleague Thomas Fanghaenel observed that the TAP tests\nfor pg_basebackup fail when run in a sufficiently deeply-nested directory\ntree. The cause appears to be that we rely on standard \"tar\" format\nto represent the symlink for a tablespace, and POSIX tar format has a\nhard...
[ { "msg_contents": "Hi.\n\nOne of our \"production issues\" is that the system generates lots of\nwal-files, lots is like 151952 files over the last 24h, which is about\n2.4TB worth of WAL files. I wouldn't say that isn't an issue by itself,\nbut the system does indeed work fine. We do subsequently gzip the file...
[ { "msg_contents": "Hackers,\n\nIn Mac OS X 10.10 “Yosemite,” Apple removed SystemStarter, upon which our OS X start script has relied since 2007. So here is a patch that adds support for its replacement, launchd. It includes 7 day log rotation like the old script did. The install script still prefers the System...
[ { "msg_contents": "I'm trying to create what amounts to a new type. This would be rather easy if I could perform a CHECK on a composite type, which I could do if I could create a domain on top of a composite. Is there any reason in particular that hasn't been done?\n\nAs an alternative, I tried accomplishing th...
[ { "msg_contents": "If you do any Postgres development on OS X, you've probably gotten\nseriously annoyed by the way that, every single time you reinstall the\npostmaster executable, you get a dialog box asking whether you'd like\nto allow it to accept incoming network connections. (At least, you\ndo unless you...
[ { "msg_contents": "Hi,\n\n\n\nI am looking to patch the LDAP Service Name feature and would like some feedback prior to doing so. In general, while I personally view this as a bug fix, it could also easily be considered to simply be an enhancement to current functionality and therefore the below is written as a...
[ { "msg_contents": "expected/sequence_1.out hasn't been updated at least since\n\ncommit d90ced8bb22194cbb45f58beb0961251103aeff5\nDate: Thu Oct 3 16:17:18 2013 -0400\n\nand nobody appears to have complained.\n\nCan it be removed?\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo...
[ { "msg_contents": "In heap_prune_chain():\n\n\ttup.t_tableOid = RelationGetRelid(relation);\n\n\trootlp = PageGetItemId(dp, rootoffnum);\n\n\t/*\n\t * If it's a heap-only tuple, then it is not the start of a HOT chain.\n\t */\n\tif (ItemIdIsNormal(rootlp))\n\t{\n\t\thtup = (HeapTupleHeader) PageGetItem(dp, root...
[ { "msg_contents": "Hi,\n\nI have been thinking about why we need to grab an AccessExclusiveLock on \nthe table with the PK when we add a foreign key. Adding new tables with \nforeign keys to old ones is common so it would be really nice if the \nlock strength could be reduced.\n\nA comment in the code claims th...