threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nToday I witnessed a situation which appears to have gone down like this:\n\n- The primary server starting streaming WAL data from segment 00A8 to the\nstandby\n- The standby server started receiving that data\n- Before 00A8 is finished, the wal sender process dies on the primary, but\n...
[ { "msg_contents": "Finally there is a new version of patch (in attachments).\nIt provides multicolumn index-only scan for GiST indexes.\n\n- Memory leak is fixed.\n- little code cleanup\n- example of performance test in attachmens\n- function OIDs have debugging values (1111*) just to avoid merge conflicts\nwhi...
[ { "msg_contents": "pg_upgrade: quote directory names in delete_old_cluster script\n\nThis allows the delete script to properly function when special\ncharacters appear in directory paths, e.g. spaces.\n\nBackpatch through 9.0\n\nBranch\n------\nmaster\n\nDetails\n-------\nhttp://git.postgresql.org/pg/commitdif...
[ { "msg_contents": "Hi, dear pgsql-hackers\n\n\n*1. environment*\n\n*DB Master*\n\n$ cat /etc/issue\nCentOS release 6.5 (Final)\nKernel \\r on an \\m\n\n$ uname -av\nLinux l-xxxxx1.xx.cnx 3.14.29-3.centos6.x86_64 #1 SMP Tue Jan 20 17:48:32\nCST 2015 x86_64 x86_64 x86_64 GNU/Linux\n\n$ psql -U postgres\npsql (9.3...
[ { "msg_contents": "Hi, I need help.\n\nIn \"46.6.4.5 Change Callback\"\n\n Note: Only changes in user defined tables that are not unlogged\n (see UNLOGGED) and not temporary (see TEMPORARY or TEMP) can be\n extracted using logical decoding.\n\nI cannot parse the sentence above. Maybe logical decoding does...
[ { "msg_contents": "Hi,\n\ngcc5 is lurking in Debian experimental, and it's breaking initdb.\nThere's bug reports for 9.1 and 9.4:\nhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778070 (9.1)\nhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778071 (9.4)\nbut I could reproduce it with 9.5devel (from last wee...
[ { "msg_contents": "Hi All,\n\nI have a question on PG smart shutdown mode.\nWhen shutdown Postgres by issuing Smart Shutdown mode (SIGTERM) request, is there a way for client to be notified of this shutdown event? I tried PG_NOTIFY, but I cannot get any notification events when this happens. BTW, I am relative ...
[ { "msg_contents": "Hi all,\n\nWhen calling vacuum(), there is the following assertion using VACOPT_FREEZE:\nAssert((vacstmt->options & VACOPT_VACUUM) ||\n !(vacstmt->options & (VACOPT_FULL | VACOPT_FREEZE)));\nI think that this should be changed with sanity checks based on the\nparameter values of freeze_* i...
[ { "msg_contents": "Two different CLOBBER_CACHE_ALWAYS critters recently reported exactly\nthe same failure pattern on HEAD:\n\nhttp://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=markhor&dt=2015-02-06%2011%3A59%3A59\nhttp://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=tick&dt=2015-02-12%2010%3A22%3A57\n\n...
[ { "msg_contents": "Hi All,\n\n\n\nI have a question on PG smart shutdown mode.\n\nWhen shutdown Postgres by issuing *Smart Shutdown *mode (SIGTERM) request,\nis there a way for client to be notified of this shutdown event? I tried\nPG_NOTIFY, but I cannot get any notification events when this happens. BTW,\nI a...
[ { "msg_contents": "> Where are we on this? AFAIK, we have now a feature with no documentation\n> and no example in-core to test those custom routine APIs, hence moved to\n> next CF.\n>\nNow Hanada-san is working on the example module that use this new\ninfrastructure on top of postgres_fdw. Probably, he will su...
[ { "msg_contents": "Hi PG Developers,\r\n \r\nI didn’t find any convenient way to restrict access to PostgreSQL databases to be read-only for all users. I need it in following scenarios:\r\n \r\nA) Planned switch-over from master to slave. We want to minimize impact within the planned switch-overs. So during the...
[ { "msg_contents": "Hi,\n\nIt is been observed on RANDOMIZE_ALLOCATED_MEMORY enabled PG95 build that\nchkpass is failing because of uninitialized memory and seems showing false\nalarm. I have tried to add code snippets to explain as following i.e.\n\npostgres=# CREATE EXTENSION chkpass;\n> WARNING: type input f...
[ { "msg_contents": "In the \"redesign checkpoint_segments\" patch, Robert suggested keeping \nthe settings' base unit as \"number of segments\", but allow conversions \nfrom MB, GB etc. I started looking into that and found that adding a new \nunit to guc.c is quite messy. The conversions are done with complicat...
[ { "msg_contents": "Some of users of intarray contrib module wish to use its features with another \nkind of arrays, not only for int4 type. Suggested module generalizes intarray \nover other (not all) types op pgsql.\n\nAnyarray also provides a calculation of similarity two one dimensinal arrays \nsimilar to sm...
[ { "msg_contents": "Here is a scenario:\n\n./configure --prefix=/usr/local/pgsql/9.4.1\nmake\nmake install\nln -s 9.4.1 /usr/local/pgsql/9.4\nPATH=/usr/local/pgsql/9.4/bin:$PATH\n\nAnd then when 9.4.2 comes out, the symlink is updated.\n\nI think this sort of setup in variations is not uncommon.\n\nWhen building...
[ { "msg_contents": "The comments say say that we must use \"an\" MVCC snapshot here, but\nthey don't explain why it should be one retrieved via\nGetTransactionSnapshot() rather than GetActiveSnapshot() or\nGetLatestSnapshot() or GetCatalogSnapshot(). The comments also refer\nthe reader to catalog/pg_enum.c for ...
[ { "msg_contents": "We have a customer who was unable to migrate from a well-known\ncommercial database product to pg because they have a very large\nsoftware base that holds cursors open for very long periods of\ntime, preventing GlobalXmin values from advancing, leading to\nbloat. They have a standard test th...
[ { "msg_contents": "This patch is related to the \"Reduce pinning in btree indexes\"\npatch submitted here:\n\nhttp://www.postgresql.org/message-id/721615179.3351449.1423959585771.JavaMail.yahoo@mail.yahoo.com\n\nThat describes how they evolved and how they relate; I won't\nduplicate that here.\n\nUnlike the oth...
[ { "msg_contents": "I've posted a couple of messages over the last few weeks about the work\nI've been doing on the pg_audit extension. The lack of response could\nbe due to either universal acclaim or complete apathy, but in any case I\nthink this is a very important topic so I want to give it another try.\n\n...
[ { "msg_contents": "Attached is a patch to provide a number of very useful facilities to \njsonb that people have asked for. These are based on work by Dmitry \nDolgov in his jsonbx extension, but I take responsibility for any bugs.\n\nThe facilities are:\n\nnew operations:\n\nconcatenation: jsonb || jsonb ->...
[ { "msg_contents": "When managing configuration changes through automatic systems like Chef\nor Puppet, there is a problem: How do you manage changes requiring a\nrestart?\n\nGenerally, you'd set it up so that when a configuration file is changed,\nthe server is reloaded. But for settings that require a restart...
[ { "msg_contents": "I understand that on Windows, you can use forward slashes in path names\ninterchangeably with backward slashes (except possibly in the shell). I\nhave developed the attached patch to change the msvc build code to use\nforward slashes consistently. Together with the other attached patch,\nwh...
[ { "msg_contents": "Hi,\n\nThis is a repost of the patch to add CREATE command deparsing support to\nevent triggers. It now supports not only CREATE but also ALTER and\nother commands such as GRANT/REVOKE, COMMENT ON and SECURITY LABEL.\nThis patch series is broken up in a rather large number of patches, but\nm...
[ { "msg_contents": "This came up today on IRC, though I suspect the general problem has been\nseen before:\n\ncreate table m3 (id uuid, status integer);\ncreate table q3 (id uuid);\ninsert into m3\n select uuid_generate_v4(), floor(random() * 4)::integer\n from generate_series(1,1000000);\ninsert into q3\n ...
[ { "msg_contents": "Hi,\n\n8b38a538c0aa5a432dacd90f10805dc667a3d1a0 changed things so that all\ncolumns are checked for NOT NULL ness. Which is fine in general, but it\ncurrently does make it impossible to have a varlena column (except\nOID/INT2 vector...) as a key column in syscache. Even if the column is\nfact...
[ { "msg_contents": "Hi!\n\nWhile playing with the memory context internals some time ago, I've been\nwondering if there are better ways to allocate memory from the kernel -\neither tweaking libc somehow, or maybe interacting with kernel directly.\n\nI mostly forgot about that topic, but after the local conferenc...
[ { "msg_contents": "I had a problem installing the doc tools following the directions for\nOSX at http://www.postgresql.org/docs/9.4/static/docguide-toolsets.html.\n I'm running OSX Yosemite.\n\nI got it to work by changing the command from:\n\nsudo port install docbook-dsssl docbook-sgml-4.2 docbook-xml-4.2\ndo...
[ { "msg_contents": "The four functions array_ref, array_set, array_get_slice, array_set_slice\nhave traditionally declared their array inputs and results as being of\ntype \"ArrayType *\". This is a lie, and has been since Berkeley days,\nbecause they actually also support \"fixed-length array\" types such as\n...
[ { "msg_contents": "Hello,\n\nAre there any plans for implementing query rewriting (i.e. allowing the\noptimizer to substitute materialized views for queries)\nin upcoming versions? I have recently seen this answer\n<http://www.postgresql.org/message-id/200501041006.18735.josh@agliodbs.com>,\nsaying that query r...
[ { "msg_contents": "Hi all,\n\nWhile looking at the patch to fix pg_dump with extensions containing tables\nreferencing each other, I got surprised by the fact that getTableAttrs\ntries to dump table attributes even for tables that are part of an\nextension. Is that normal?\nAttached is a patch that I think make...
[ { "msg_contents": "Hi,\n\nIn a lot of places in the code we have many structures doing\ndeclarations of the type foo[1] to emulate variable length arrays.\nAttached are a set of patches aimed at replacing that with\nFLEXIBLE_ARRAY_MEMBER to prevent potential failures that could be\ncaused by compiler optimizati...
[ { "msg_contents": "I'm interested in participating in gsoc 2015 as student.\n\nSincerely,\nIvanitskiy Ilya.\n\nI'm interested in participating in gsoc 2015 as student.Sincerely,Ivanitskiy Ilya.", "msg_date": "Tue, 17 Feb 2015 01:33:28 +0300", "msg_from": "Ilia Ivanicki <ivanicki.ilia@gmail.com>", "m...
[ { "msg_contents": "> On Tue, Feb 17, 2015 at 8:50 AM, Kouhei Kaigai <kaigai@ak.jp.nec.com> wrote:\n> >> > I couldn't find operation to add new entry on the current CF.\n> >>\n> >> Go to the bottom of this CF:\n> >> https://commitfest.postgresql.org/4/\n> >> Then click on \"New patch\".\n> >>\n> > I couldn't fin...
[ { "msg_contents": "We have some code in the server that attempts to match IPv4 address\nentries in pg_hba.conf to incoming connections that are in IPv6 protocol\nbut have addresses in the range ::ffff:xxxx:xxxx (the IPv4-in-IPv6\nsubrange). As revealed by today's bug report from Hugo Osvaldo Barrera,\nthis cod...
[ { "msg_contents": "Let me put some comments in addition to where you're checking now.\r\n\r\n[design issues]\r\n* Cost estimation\r\nEstimation and evaluation of cost for remote join query is not an\r\nobvious issue. In principle, local side cannot determine the cost\r\nto run remote join without remote EXPLAIN...
[ { "msg_contents": ">‍Jim Nasby writes:\r\n> On 2/14/15 3:14 PM, Robert Haas wrote:\r\n>> Although I like the idea, it's not clear to me how to implement it.\r\n\r\n> Throw an error in AssignTransactionId/GetNewTransactionId?\r\n\r\n>A whole lot depends on what you choose to mean by \"read only\". If it\r\n>‍me...
[ { "msg_contents": "Hi all,\n\nNot sure if this has been reported already, it seems to be a variation on\nthis thread:\n\nhttp://www.postgresql.org/message-id/20130515151059.GO4361@tamriel.snowman.net\n\n\nOne minor difference is, in my scenario - my source table field is defined\nas BIGINT (not serial) - though...
[ { "msg_contents": "Hello all,\n\nWhen I add a FK with a statement like this:\n\nALTER TABLE a ADD FOREIGN KEY (id) REFERENCES b(id);\n\nI see a lock on table b:\n\nselect locktype,mode,granted from pg_locks, pg_stat_activity where\nrelation::regclass::text = 'b' AND pg_locks.pid = pg_stat_activity.pid;\n\nlockt...
[ { "msg_contents": "While hacking around with expanded arrays, I realized that array_push()\nis just a horribly badly designed function. There is no reason at all\nfor the same C function to underlie both array_append and array_prepend:\nthe function spends significant time and effort reverse-engineering which\...
[ { "msg_contents": "Andres pointed out that the INSERT ... ON CONFLICT UPDATE patch\ndoesn't work well with logical decoding. Basically, as things stand,\nthere is no means of determining that an INSERT had an ON CONFLICT\nUPDATE clause from logical decoding. It isn't obvious that this\nmatters - after all, the ...
[ { "msg_contents": "Hi all,\n\nI noticed that the following structures are still defined in\ngin_private.h but they are used nowhere since 2c03216d that has\nreworked WAL format:\n- ginxlogSplitEntry\n- ginxlogSplitDataLeaf\n- ginxlogSplitDataInternal\nAttached is a trivial patch to remove them.\nRegards,\n-- \n...
[ { "msg_contents": "Hi,\n\nCommit 79af9a1d2668c9edc8171f03c39e7fed571eeb98 changed xpath handling \nwith regard to namespaces, and it seems to be fixing an actual issue. \nHowever, it was also backpatched to all branches despite it breaking for \nexample code like this:\n\ndo $$\ndeclare\n_x xml;\nbegin\n_x := (...
[ { "msg_contents": "My Salesforce colleagues have been bugging me about this topic, and\nsince I see in a nearby thread that we may be about to break backwards\ncompatibility on \"=>\", maybe it's time to do something about this too.\nTo wit, that the precedence of <= >= and <> is neither sane nor standards\ncom...
[ { "msg_contents": "Hello\n\nThis is me problem:\n\n\n\n\nSaludos,\nGilberto Castillo\nLa Habana, Cuba\n\n\n\n--- \nThis message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at host imx3.etecsa.cu\nVisit our web-site: <http://www.kaspersky.com>, <http://www.viruslist.com>\n\n\n-- \nSent via pgs...
[ { "msg_contents": "In the course of writing a small side project which hopefully will make its\nway onto pgxn soon, I was writing functions that had a polymorphic result\nset.\n\ncreate function foo( p_row_type anyelement, p_param1 ...) returns setof\nanyelement\n\nInside that function would be multiple calls t...
[ { "msg_contents": "Bug #12788 reminded me of a problem I think we've discussed before:\nif you use \"pg_ctl reload\" to trigger reload of the postmaster's\nconfig files, and there's something wrong with those files, there's\nno warning to you of that. The postmaster just bleats to its log and\nkeeps running. ...
[ { "msg_contents": "Hello all,\r\nThis is my first patch to postgreSQL, so I think I'd better start from a easy one.\r\n\r\nI am a native Chinese speaker. A lot of words and expressions are different between mainsand Chinese and TaiWan/HongKong Chinese. \r\n\r\nFor instance TaiWan Chinese will use \"档案\" to repr...
[ { "msg_contents": "Hello,\n\nWe have a combination of 9.3 and 9.4 databases used for logging of data.\n\nWe do not need a strong durability guarantee, meaning it is ok if on crash a minute or two of data is lost from our logs. (This is just stats for our internal tool).\n\nI am looking at this page:\nhttp://ww...
[ { "msg_contents": "Hello,\n\nWe have a combination of 9.3 and 9.4 databases used for logging of data.\n\nWe do not need a strong durability guarantee, meaning it is ok if on crash a minute or two of data is lost from our logs. (This is just stats for our internal tool).\n\nI am looking at this page:\nhttp://ww...
[ { "msg_contents": "Hi,\n\nRight now wal_level=logical implies that the compact commit record\nformat isn't used and similarly 2pc commits also include the non compact\nformat of commits.\n\nIn the course of the 'replication identifier' patch submitted to the\ncurrent commitfest I added more information to the n...
[ { "msg_contents": "Hi,\n\nwhile reviewing one of the 'abbreviated keys' patches, I noticed that\nthe ordered set aggregates are broken when using tuplesort with multiple\nruns.\n\nISTM this got broken by 5cefbf5a6c4466ac6b1cc2a4316b4eba9108c802:\n\n Don't use abbreviated keys for the final merge pass.\n\n ...
[ { "msg_contents": "Hello Everyone,\n\nI'm Eric Grinstein, an Comp. Engineering undergrad at PUC-Rio, Brazil.\nI'm very excited about contributing to Postgres, and thought GSoC would be\na very good program to get me started.\n\nSome commercial RDBMS such as oracle implement a feature called 'Query\nRewrite'\nus...
[ { "msg_contents": "Hi,\n\nI've been for a long while been rather annoyed about how cumbersome it\nis to add catalog rows using the bootstrap format. Especially pg_proc.h,\npg_operator.h, pg_amop.h, pg_amproc.h and some more are really unwieldy.\n\nI think this needs to be improved. And while I'm not going to st...
[ { "msg_contents": "Hi.\n\nI noticed your latest mail thread about ssl renegotiations and this commit\nby hlinnaka:\nhttps://github.com/postgres/postgres/commit/272923a0a6956187471df4f032eee06559520390\nand how renegotiation is done since that.\n\nBefore this commit, after sending a Hello Request, the backend wa...
[ { "msg_contents": "Over in the abbreviated keys for numeric thread, Tomas Vondra reports\na case where the ad-hoc cost model of abbreviated keys/sortsupport for\ntext is far too conservative, and aborts a case where abbreviated keys\ncan still greatly help.\n\nPreviously, I proposed additions to the cost model ...
[ { "msg_contents": "This is just to make the variable names in this function consistent with\nthe rest of the file (and less confusing). No functional impact, so I'll\ncommit soon unless someone objects.\n\nPreviously, this was part of the memory accounting patch, but that\nhasn't made it in yet. Might as well c...
[ { "msg_contents": "Hi\n\nI did some benchmarks and I found some strange numbers.\n\ndo $$\nbegin\n drop table if exists t1;\n execute 'create table t1(' ||\n array_to_string(array(select 'a' || i || ' smallint' from\ngenerate_series(1,30) g(i)), ',') || ')';\n -- special column a2, a11\n insert into t1\...
[ { "msg_contents": "Hi,\n\nAndres asked me on IRC to report this here. Since we upgraded our \nstandby servers to 9.1.15 (though the master is still running 9.1.14), \nwe've seen the error in $SUBJECT a number of times. I managed to \nreproduce it today by running the same query over and over again, and \natta...
[ { "msg_contents": "Hi,\n\nI've noticed that if the primary is started and then a base backup is\nimmediately taken from it and started as as a synchronous standby, it\ndoesn't replicate and the primary hangs indefinitely when trying to run any\nWAL-generating statements. It only recovers when either the primar...
[ { "msg_contents": "Hi\n\nWhen I tested json_populate_function in test\nhttp://stackoverflow.com/questions/7711432/how-to-set-value-of-composite-variable-field-using-dynamic-sql/28673097#28673097\nI found a small issue\n\ncreate type pt as (a int, b int);\n\npostgres=# select json_populate_record('(10,20)'::pt, ...
[ { "msg_contents": "I found that the OBJECT_ATTRIBUTE symbol is useless. I can just remove\nit and replace it with OBJECT_COLUMN, and everything continues to work;\nno test fails that I can find.\n\nI thought we had a prohibition against ALTER TABLE when used on\ncomposites, but it's not as severe as I thought....
[ { "msg_contents": "While fooling around with testing operator precedence warnings,\nI discovered that there's some existing precedence behavior that's\nnot at all what I expected. Consider these examples (all done in\n9.4; this is longstanding behavior):\n\nregression=# SELECT 1 < '(3,4)'::point LIKE 42.0;\nER...
[ { "msg_contents": "Hi all,\n\nThis is a purely informational email...\nI have put my hands on a Raspberry PI 2, and I have found that it takes 6\nminutes to compile the backend code using the 4 cores of the ARMv7\nprocessor, and close to 20 minutes on a single core (without ccache). The\ntest has been done usin...
[ { "msg_contents": "On 21-01-2015 PM 07:26, Amit Langote wrote:\n>\n> Ok, I will limit myself to focusing on following things at the moment:\n>\n> * Provide syntax in CREATE TABLE to declare partition key\n> * Provide syntax in CREATE TABLE to declare a table as partition of a\n> partitioned table and values it ...
[ { "msg_contents": "Hi, I found a trivial typo in backend/replication/README\n\n| Walreceiver IPC\n| ---------------\n| \n| When the WAL replay in startup process has reached the end of archived WAL,\n| recoverable using recovery_command, it starts up the walreceiver process\n\nI think the recovery_command shoul...
[ { "msg_contents": "contrib/fuzzystrmatch/dmetaphone.c says this:\n\n> /***************************** COPYRIGHT NOTICES ***********************\n>\n> Most of this code is directly from the Text::DoubleMetaphone perl module\n> version 0.05 available from http://www.cpan.org.\n> It bears this copyright notice:\n>\...
[ { "msg_contents": "Hi all!\n\nMay someone help me with the issue in the apply process on the replica. \nWe have a stream replication and after vacuum stops working with a big \ntable we get a \"freeze\" in applying data on the replica database. It \nlooks like this:\n\nTue Feb 24 15:04:51 MSK 2015 Stream: MASTE...
[ { "msg_contents": "Hello,\n\nI see that PostgreSQL will run on S/390 and S/390x processors, but I can \nfind no mention of the z/OS operating system on the web site, in the \ndocumentation or in the mailing list archives.\n\nHas there been a known attempt to port PostgreSQL to z/OS UNIX?\n\nThanks, Gord Tomlin\...
[ { "msg_contents": "I have checked out the pg_rewind code from https://github.com/vmware/pg_rewind.git on the master branch and am using PostgreSQL 9.4.1 source code to build against. When I try to compile pg_rewind, I am getting the following errors. How can I resolve these problems?\n\n\ngcc -Wall -Wmissing-...
[ { "msg_contents": "Hi,\n\nWhen working with the autoconf rule for detecting __int128 I noticed we \nget a lot of warnings like the below in the autconf trace output so I \ndecided to clean them up. All the macros we get complaints about seems \nto have been made obsolete between 2000 and 2003, and since we have...
[ { "msg_contents": "Hi all,\n\necpg_get_data@data.c is using to null-pointer checks for pval but it\nhappens that we have the guarantee that those pointers are never NULL, see\nfor example this piece of code at the code of ecpg_get_data():\n /* pval is a pointer to the value */\n if (!pval)\n ...
[ { "msg_contents": "Here are some more tests for event triggers, especially about new features\nintroduced recently in 296f3a6053844089bc533630fffafaba8f016384.\n\nCheck that COMMENT, GRANT and REVOKE do trigger some events.\n\nThe patch also check some more error cases: SQL function, functions with \ndeclared a...
[ { "msg_contents": "\nWhile looking at event triggers, I noticed that, contrary to basic \ntriggers, arguments are not allowed.\n\nHowever, the example in the documentation with an hour-based filtering of \nddl commands suggest some handling of arguments would be useful so as to \nallow more generic event trigge...
[ { "msg_contents": "Hi all,\n\nCoverity is pointing out that addRangeTableEntry contains the\nfollowing code path that does a NULL-pointer check on pstate:\n if (pstate != NULL)\n pstate->p_rtable = lappend(pstate->p_rtable, rte);\nBut pstate is dereferenced before in isLockedRefname when g...
[ { "msg_contents": "So while helping someone with an unrelated issue, I did a quick query to\nlook for collation-dependent indexes, and was rather shocked to find\nthat not only are there two such in the system catalogs, both set to\n\"default\" collation, but that one of them is in a _shared_ catalog\n(pg_shsec...
[ { "msg_contents": "Could the large allocation[2] for the dead tuple array in \nlazy_space_alloc cause problems with linux OOM? [1] and some other \nthings I've read indicate that a large mmap will count towards total \nsystem memory, including producing a failure if overcommit is disabled.\n\nWould it be worth ...
[ { "msg_contents": "Hello,\n\nI have the following table:\n\n \\d a\n Table \"phxconfig.a\"\n Column | Type | Modifiers\n---------------+---------+-----------\n phx_run_id | integer |\n cell_id | integer |\nIndexes:\n \"a_phx_run_id_cell_id_idx\" btree (phx_run_id, cell_id)\n\nWhen ...
[ { "msg_contents": "Hi,\n I use Postgres 9.4 database.Now,I am optimizing the queries by using\nthe results of \"explain\" and \"explain analyze\",Sometimes I am creating\nIndexes to optimize them. But, I was not successful sometimes as even I\ncreate Index to optimize them, the planner is not using them .\n...
[ { "msg_contents": "Hi all,\n\nI'm using PostgreSQL BDR 9.4.1 to test BDR capability right now\n\n$ psql --version\npsql (PostgreSQL) 9.4.1\n\nWe want to use BDR with multiple database but now all the document didn't\nshow any example how to config BDR with multiple database. We've tried with\nmany combination a...
[ { "msg_contents": "At the behest of Salesforce, I've been looking into improving plpgsql's\nhandling of variables of domain types, which is currently pretty awful.\nIt's really slow, because any assignment to a domain variable goes through\nthe slow double-I/O-conversion path in exec_cast_value, even if no actu...
[ { "msg_contents": "Dear Hackers,\n\nI'm Grzegorz Parka, BSc Engineer of Technical Physics and student of\nComputer Science at WUT, Poland. Last year I've been a bit into\nevolutionary algorithms and during my research I found out about GEQO in\nPostgres. I also found out that there are plans to try a different ...
[ { "msg_contents": "We've discussed doing $SUBJECT off and on for nearly ten years,\nthe oldest thread I could find about it being here:\nhttp://www.postgresql.org/message-id/flat/1186435268.16321.37.camel@dell.linuxdev.us.dell.com\nIt's come up again every time we found another leak of dead child\ncontexts, whi...
[ { "msg_contents": "We discussed this idea a couple weeks ago. The core of it is that when a\nmemory context is being deleted, you might want something extra to happen\nbeyond just pfree'ing everything in the context. I'm thinking in\nparticular that this might provide a nice solution to the problem we\ndiscus...
[ { "msg_contents": "Hi all,\n\nThis simple patch add CINE for ALTER TABLE ... ADD COLUMN.\n\nSo now we can:\n\nALTER TABLE foo\n ADD COLUMN IF NOT EXISTS c1 integer;\n\nand/or ...\n\nALTER TABLE foo\n ADD COLUMN IF NOT EXISTS c1 integer,\n ADD COLUMN c2 integer;\n\nRegards,\n\n-- \nFabrízio de Royes Mel...
[ { "msg_contents": "Hi all,\n\nI've been facing an issue with star schemas for a while. PostgreSQL's performance is not that good without rewriting the query (or at least I couldn't find a way to make it do what I want).\n\nHere is a very basic mockup schema I used for the rest of this mail. It's of course too s...
[ { "msg_contents": "Hi! Where i can find explanation about how postgresql works with shared\nmemory?\n\n\n---\nBest regard Vadim Gribanov\n\nLinkedin: https://www.linkedin.com/in/yoihito\nSkype: v1mk550\nGithub: https://github.com/yoihito\n\nHi! Where i can find explanation about how postgresql works with shared...
[ { "msg_contents": "Invent a memory context reset/delete callback mechanism.\n\nThis allows cleanup actions to be registered to be called just before a\nparticular memory context's contents are flushed (either by deletion or\nMemoryContextReset). The patch in itself has no use-cases for this, but\nseveral likel...
[ { "msg_contents": "A significant fraction of the buildfarm is showing this in HEAD:\n\n***************\n*** 375,382 ****\n create table rewritemetoo1 of rewritetype;\n create table rewritemetoo2 of rewritetype;\n alter type rewritetype alter attribute a type text cascade;\n- NOTICE: Table 'rewritemetoo1' is...
[ { "msg_contents": "Hi all,\n I've noticed that order by / limit are not distributed to union subqueries\nby the planner:\n\nExample:\n\nq1: (select * from t1) union all (select * from t2) order by x limit 10;\nq2: (select * from t1 order by x limit 10) union all (select * from t2\norder by x limit 10)\n or...
[ { "msg_contents": "Hi all,\n\nI have encountered a performance problem with relatively simple query,\nwhich I think is caused by the overly pesimistic estimates in optimizer. I\nhave originally run into this issue on a table few GBs large, but it can be\nreproduced with much smaller table as follows:\n\n-- Setu...
[ { "msg_contents": "Hackers:\n\nThe pgCon committee would like to have someone give some kind of \"Intro\nto Hacking\" tutorial at pgCon this year, on the Advanced Tutorial\nSaturday. Since there will be lots of power users and other potential\ncontributors at the conference, it seems like an opportunity not to...
[ { "msg_contents": "We build static libraries with \"ar crs\" or \"ar cr\". If the static library\nalready exists in the build directory, those commands will add new members and\nreplace existing members. They will not remove members present in the\nexisting library but not named on the \"ar\" command line. T...
[ { "msg_contents": "Hi all,\n\nWhen using install.bat with a path containing spaces, I got surprised\nby a couple of errors.\n1) First with this path:\n$ install \"c:\\Program Files\\pgsql\"\nI am getting the following error:\nFiles\\pgsql\"\"==\"\" was unexpected at this time.\nThis is caused by an incorrect ev...
[ { "msg_contents": "> I seem to be getting a problem with whole-row references:\r\n> \r\n> # SELECT p.name, c.country, e.pet_name, p FROM pets e INNER JOIN people p on\r\n> e.person_id = p.id inner join countries c on p.country_id = c.id;\r\n> ERROR: table \"r\" has 3 columns available but 4 columns specified\r...
[ { "msg_contents": "Hi all,\n\nI have encountered a performance problem with relatively simple query,\nwhich I think is caused by the overly pesimistic estimates in optimizer. I\nhave originally run into this issue on a table few GBs large, but it can be\nreproduced with much smaller table as follows:\n\n-- Setu...
[ { "msg_contents": "Hi all,\n\nI have encountered a performance problem with relatively simple query,\nwhich I think is caused by the overly pesimistic estimates in optimizer. I\nhave originally run into this issue on a table few GBs large, but it can be\nreproduced with much smaller table as follows:\n\n-- Setu...
[ { "msg_contents": "One scenario is to use an oid to identify a toast value. As the oid\ngeneration is mono increased within a database instance, it can gets wrap\naround after 2^32 generations. After that:\n1. GetNewOidWithIndex() could gets unbounded performance as it needs to by\npass already in use values of...
[ { "msg_contents": "Hi,\n\nKathy (CCed) just found a bug in BDR that turned out to actually be a\nbug in postgres.\n\nCREATE VIEW v_03 AS\nSELECT * FROM (SELECT '2' ORDER BY 1) s;\n\npostgres[l]=# \\d+ v_03\n View \"public.v_03\"\n┌──────────┬──────┬───────────┬──────────┬─────────────┐\n│ Col...
[ { "msg_contents": "Surely they should be assignment level, if not implicit. I don't\nreally see why I should have to write a cast to assign a json\nexpression result into a jsonb column, in particular.\n\n\t\t\tregards, tom lane\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo m...