threads
listlengths
1
2.99k
[ { "msg_contents": "Hello,\n\nhttp://www.postgresql.org/docs/devel/static/functions-aggregate.html\n\nThe documentation says that return type of sum(expression) is...\n bigint for smallint or int arguments, numeric for bigint arguments,\n double precision for floating-point arguments, otherwise the same\n as ...
[ { "msg_contents": "Hello, I've a problem, we're using sugarcrm, and we have a database\npostgresql, but not in the default port, so, when I try to connect after I\nput the port in the db_port parameter, but seems like he not recognized,\nbecause still pointing to the other instance of the database that have the...
[ { "msg_contents": "I'm continuously studying Postgres codebase. Hopefully I'll be able to make\nsome contributions in the future.\n\nFor now I'm intrigued about the extensive use of memory alignment. I'm sure\nthere's some legacy and some architecture that requires it reasoning behind\nit.\n\nThat aside, since ...
[ { "msg_contents": "Hi,\n\nI recently wanted several times to have slave server prepared at certain \npoint in time to reduce the time it takes for it to replay remaining \nWALs (say I have pg_basebackup -x on busy db for example).\nCurrently the way to do it is to have pause_at_recovery_target true \n(default) ...
[ { "msg_contents": "Hi,\n\nI noticed when trying to set pgbench's client count to a high number, I had\nto reduce it, and I found the maximum I can get away with is 1014. Any\nhigher and I get:\n\ninvalid number of clients: 1015\n\nI find this in pgbench.c:\n\n#ifdef FD_SETSIZE\n#define MAXCLIENTS (FD_SETS...
[ { "msg_contents": "In connection with a question asked today on pgsql-general, I had\noccasion to go check the release announcements for the IANA timezone\ndatabase files, and it turns out that there are some big changes in\n2014f:\nhttp://mm.icann.org/pipermail/tz-announce/2014-August/000023.html\n\nThe Russia...
[ { "msg_contents": "As discussed on the thread \"Spinlocks and compiler/memory barriers\",\nnow that we've made the spinlock primitives function as compiler\nbarriers (we think), it should be possible to remove volatile\nqualifiers from many places in the source code. The attached patch\ndoes this in lwlock.c. ...
[ { "msg_contents": "I use benchmarksql with more than 200 clients on pg 9.3.3. when the test is going on, I collect all the process stack. I found about 100 processes are blocked by btree insert. Another 100 are blocked by xloginsert.\n\nDoes btree has bad performance in concurrency scenarios?\n\nSum:66\n#0 0x0...
[ { "msg_contents": "After discussion of gist seaq access in vaccum there are 2 issue:О©╫Heikki says :Vacuum needs to memorize the current NSN when it begins1) how i may getting corect NSN.О©╫Also i must setting F_DELETED flag on empty page and to clean parent from link on deleted_pages2) how i may getting parent...
[ { "msg_contents": "The attached small patch fixes the following warning:\n\nsrc\\backend\\utils\\adt\\arrayfuncs.c(5613): warning C4013: '_isnan'\nundefined; assuming extern returning int [D:\\Postgres\\a\\postgres.vcxproj]\n\nThe fix is pretty much just a copy and paste from costsize.c\n\nRegards\n\nDavid Rowl...
[ { "msg_contents": "> On Thu, Sep 4, 2014 at 7:57 PM, Kouhei Kaigai <kaigai@ak.jp.nec.com> wrote:\r\n> > Regarding to the attached three patches:\r\n> > [1] custom-path and hook\r\n> > It adds register_custom_path_provider() interface for registration \r\n> > of custom-path entrypoint. Callbacks are invoked on \...
[ { "msg_contents": "At line 650 I can read:\n\n if ((leaf->lsize - segsize) - (leaf->lsize - segsize) < BLCKSZ / 4)\n break;\n\nI believe one of the two should be leaf->rsize\n\n\n-- \ncpp-today.blogspot.com\n\nAt line 650 I can read: if ((leaf->lsize - segsize) - (leaf->lsize - segsize) < BLCKSZ / 4)   ...
[ { "msg_contents": "Hi all,\n\nIn walsender.c, sentPtr is initialized as follows:\nstatic XLogRecPtr sentPtr = 0;\nIsn't that incorrect and shouldn't we use InvalidXLogRecPtr instead?\nPatch is attached.\nRegards,\n-- \nMichael\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo ma...
[ { "msg_contents": "> On Thu, Sep 11, 2014 at 11:24 AM, Kouhei Kaigai <kaigai@ak.jp.nec.com>\r\n> wrote:\r\n> >> Don't the changes to src/backend/optimizer/plan/createplan.c belong\r\n> >> in patch #2?\r\n> >>\r\n> > The borderline between #1 and #2 is little bit bogus. So, I moved most\r\n> > of portion into #1...
[ { "msg_contents": "Hi,\n\nAbhijit and I investigated a customer problem which has showed that crash recovery +\nunlogged relations don't always work well together:\n\nA condensed version of how crash recovery works is:\n\nStartupXLOG()\n{\n...\n if (ControlFile->state != DB_SHUTDOWNED)\n InRecovery = t...
[ { "msg_contents": "Hi\r\n\r\nI checked HEAD and border formatting is broken\r\n\r\n\r\npostgres=# \\pset border 3\r\nBorder style (border) is 3.\r\npostgres=# \\l\r\nList of databases\r\n[ RECORD 1 ]-----+----------------------\r\n| Name | postgres |\r\n| Owner | postgres ...
[ { "msg_contents": "Hi!\n\nLet's consider some examples.\n\n# select '[1,2]'::jsonb @> '[1,2,2]'::jsonb;\n ?column?\n----------\n f\n(1 row)\n\nOne may think it's because second jsonb array contain two \"2\". So, contains\ntakes care about count of equal elements.\n\n# select '[1,1,2]'::jsonb @> '[1,2,2]'::jsonb...
[ { "msg_contents": "I am researching some problems with formatting.c, and I now see that the\nnaming of things makes the code pretty incomprehensible.\n\nIs everyone OK with me renaming some variables, structures, and macros? \nIt will make back-patching harder, but will allow us to properly maintain\nthat file....
[ { "msg_contents": "Hi All,\n\nI want to work on the code of intermediate dataset of select and update\nquery.\n\nFor example.\n\nRohit's salary has been updated 4 times, so it has 4 different version of\nsalary.\n\nI want to select salary of person named Rohit. Now suppose , in\nintermediate result, I found 4 ...
[ { "msg_contents": "Header comments within execTuples.c state:\n\n * - ExecutePlan() calls ExecSelect(), which passes the result slot\n * to printtup(), which uses slot_getallattrs() to extract the\n * individual Datums for printing.\n\nThis isn't true, though - the function ExecSelect() no longer exists.\nThi...
[ { "msg_contents": "> On Thu, Sep 11, 2014 at 8:40 PM, Kouhei Kaigai <kaigai@ak.jp.nec.com> wrote:\r\n> >> On Thu, Sep 11, 2014 at 11:24 AM, Kouhei Kaigai\r\n> >> <kaigai@ak.jp.nec.com>\r\n> >> wrote:\r\n> >> >> Don't the changes to src/backend/optimizer/plan/createplan.c\r\n> >> >> belong in patch #2?\r\n> >> >...
[ { "msg_contents": "Hi!\n\n9.4 GIN introduces new triconsistent method which can return one of three\nvalues in spite of just consistent method. But in catalog declaration\ntriconsistent still returns bool type. It doesn't affect anything because\nnobody calls triconsistent from SQL. But I think it would be corr...
[ { "msg_contents": "Hackers,\n\nsome GIN opclasses uses collation-aware comparisons while they don't need\nto do especially collation-aware comparison. Examples are text[] and hstore\nopclasses. Depending on collation this may make them a much slower.\n\nSee example.\n\n# show lc_collate ;\n lc_collate\n────────...
[ { "msg_contents": "I'd like to propose support for IN and OUT parameters in 'DO' blocks.\n\nCurrently, anonymous code blocks (DO statements) can not receive or\nreturn parameters.\n\nI suggest:\n\n1) Add a new clause to DO statement for specifying names, types,\ndirections and values of parameters:\n\nDO <code>...
[ { "msg_contents": "Here is a patch to a bit improve the reference page for the LOCK\ncommand. I think it'd be better for the isolation level to be in\ncapitals and wrapped in the <literal> tags.\n\nThanks,\n\nBest regards,\nEtsuro Fujita\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql...
[ { "msg_contents": "> On Mon, Sep 15, 2014 at 8:38 AM, Kouhei Kaigai <kaigai@ak.jp.nec.com> wrote:\r\n> >> > The only reason why I put separate hooks here is,\r\n> >> > create_custom_scan() needs to know exact size of the CustomScan\r\n> >> > node (including private fields), however, it is helpful for\r\n> >> > ...
[ { "msg_contents": "Hello,\n\nLast month, I brought up the following issue to the general mailing list about how running streaming replication between machines running different versions of glibc can cause corrupt indexes.\nhttp://www.postgresql.org/message-id/BA6132ED-1F6B-4A0B-AC22-81278F5AB81E@tripadvisor.com...
[ { "msg_contents": "Hello everyone..i am new to PostgreSQL project. I had prior experience with\nsql+ , with oracle 11g database server. Kindly help me grasp more about the\nproject.\n\nThank you,\nTapan Halani\n\nHello everyone..i am new to PostgreSQL project. I had prior experience with sql+ , with oracle 11g ...
[ { "msg_contents": "Hello everyone..i am new to PostgreSQL project. I had prior experience with\nsql+ , with oracle 11g database server. Kindly help me grasp more about the\nproject or direct me in the right direction.\n\nThank you,\nTapan Halani\n\nHello everyone..i am new to PostgreSQL project. I had prior exp...
[ { "msg_contents": "Hi,\n\nI am new to PostGre SQL and want to ask some questions. In my database\nclass, we plan to work on a class project based on WAL. Since we are not\nfamiliar with WAL, we don't know what's a good start point. Could anyone\npoint me to any documentation mentioning about WAL in PostGre SQL?...
[ { "msg_contents": "Hi,\nI've been working a little bit on a patch for printing tables in asciidoc\nwith psql.\n\nIt's not finished yet, I'm not sure it there is any sense in supporting\nborder types etc. The code is not cleared so far, but any remarks on the\nstyle not playing well with the normal postgres styl...
[ { "msg_contents": "Over here ->\nhttp://www.postgresql.org/message-id/CAApHDvqd99i2eeSY6PhUeo8CmKkuDHenzSA-eDAmswSzhU2_Dw@mail.gmail.com\nI posted a patch to add support for removing SEMI and ANTI joins, where the\njoin could be proved useless by the existence of a foreign key.\n\nThe patch was part of my incre...
[ { "msg_contents": "I've been looking into improving the performance of queries that have\nco-related sub-queries, such as:\n\nSELECT id,(SELECT value FROM t2 WHERE t2.id = t1.id) FROM t1;\n\nWhere currently we produce a plan that executes the subquery as a sub plan,\nlike:\n\n ...
[ { "msg_contents": "Hello,\n\nOn one my machine the pg_multixact directory size has grown up to 5 GB and\nam not sure how to clean up this directory.\n\n From the storage-file-layout this directory contains multitransaction\nstatus data.\npg_multixactSubdirectory containing multitransaction status data (used for...
[ { "msg_contents": "Hi all\n\nAttached is a patch to switch 9.5 over to using the\nGetSystemTimeAsFileTime call instead of separate GetSystemTime and\nSystemTimeToFileTime calls.\n\nThis patch the first step in improving PostgreSQL's support for Windows\nhigh(er) resolution time.\n\nIn addition to requiring one ...
[ { "msg_contents": "> > >> Why does it need to know that? I don't see that it's doing\r\n> > >> anything that requires knowing the size of that node, and if it is,\r\n> > >> I think it shouldn't be. That should get delegated to the callback\r\n> > >> provided by the custom plan provider.\r\n> > >>\r\n> > > Sor...
[ { "msg_contents": "Folks,\n\nJust encountered another case of critical fail for abort-early query\nplans. In this case, it will completely prevent a user from upgrading\nto 9.3; this is their most common query, and on 9.3 it takes 1000X longer.\n\nMaybe we should think about removing abort-early plans from 9.5...
[ { "msg_contents": "Hi all\n\nIn the wire protocol, currently if you get an error from the server\nbefore you know it's processed your startup packet successfully you\ndon't know what character encoding that error is in.\n\nIf the error came from the postmaster then it's in the system's default\nencoding or what...
[ { "msg_contents": "Hi All,\n\nWhile running some tests on REL9_2_STABLE branch, I saw an assertion\nfailure in syncrep.c. The stack trace looks like this:\n\n frame #3: 0x00000001055a2da9\npostgres`ExceptionalCondition(conditionName=0x000000010567b8c5,\nerrorType=0x00000001055ff193, fileName=0x000000010567b8f...
[ { "msg_contents": "Hi all,\n\nAs there has been a dump of CATALOG_VERSION_NO on REL9_4_STABLE\nrecently, I am coming back to the options OUTPUT_PLUGIN_* that are\nrather confusing for developers of decoder plugins. In short, when\nextracting changes from a replication slot, a decoder plugin is free\nto set one ...
[ { "msg_contents": "Hi,\n\nI tend to agree with Robert that partitioning should continue using\ninheritance based implementation. In addition to his point about reinventing\nthings it could be pointed out that there are discussions/proposals elsewhere\nabout building foreign table inheritance capability; having ...
[ { "msg_contents": "Hi,\n\nbarrier.h defines memory barriers for x86 as:\n32bit:\n#define pg_memory_barrier() \\\n __asm__ __volatile__ (\"lock; addl $0,0(%%esp)\" : : : \"memory\")\n64bit:\n#define pg_memory_barrier()\t\t\\\n\t__asm__ __volatile__ (\"lock; addl $0,0(%%rsp)\" : : : \"memory\")\n...
[ { "msg_contents": "This can lead to deadlocks during parallel restore. Test case:\n\ncreate table bar (a int primary key, b int);\ncreate table baz (z int, a int references bar);\ncreate view foo as select a, b, sum(1) from bar group by a union all\nselect z, a, 0 from baz;\n\nI dumped this with: pg_dump -Fc -...
[ { "msg_contents": "Row-Level Security Policies (RLS)\n\nBuilding on the updatable security-barrier views work, add the\nability to define policies on tables to limit the set of rows\nwhich are returned from a query and which are allowed to be added\nto a table. Expressions defined by the policy for filtering a...
[ { "msg_contents": "Hi hackers,\n\nI was trying to create event trigger inside DO statement inside an \nextension SQL script and noticed that the new event trigger has empty \nevtevent field.\nAfter some tinkering with gdb I found out that the memory context \nswitches sometimes clear the eventname in CreateEven...
[ { "msg_contents": "Thom,\n\nAlso, I seem to get an error message with the following:\n>\n> # create policy nice_colours ON colours for all to joe using (visible =\n> true) with check (name in ('blue','green','yellow'));\n> CREATE POLICY\n>\n> \\c - joe\n>\n> > insert into colours (name, visible) values ('blue',...
[ { "msg_contents": "On 20 September 2014 06:13, Andrew Gierth <andrew@tao11.riddles.org.uk> wrote:\n>>>>>> \"Adam\" == Brightwell, Adam <adam.brightwell@crunchydatasolutions.com> writes:\n>\n> Adam> At any rate, this appears to be a previously existing issue\n> Adam> with WITH CHECK OPTION. Thoughts?\n>\n> It...
[ { "msg_contents": "Hi,\n\nAt the moment there's some rememnants of support for borland CC. I don't\nbelieve it's likely that any of it still works. I can't remember ever\nseing a buildfarm animal running it either - not surprising it's ~15\nyears since the last release.\nSince there's both msvc and mingw suppor...
[ { "msg_contents": "This a toy example from a 'upsert' script that appends new data:\n\nselect a from (select 1 as a) as t1 where not exists (select true from\n(select 2 as a) t2 where a=a) ;\n a\n───\n(0 rows)\n\nselect a from (select 1 as a) as t1 where not exists (select true from\n(select 2 as a) t2 where ...
[ { "msg_contents": "Hi\nI tried to solve following task:\n\nI have a table\n\nstart, reason, km\n=============\n 2014-01-01 08:00:00, private, 10\n 2014-01-01 09:00:00, commerc, 20\n 2014-01-01 10:00:00, commerc, 20\n 2014-01-01 11:00:00, private, 8\n\nand I would reduce these rows to\n\n 2014-01-01 08:00:00, pr...
[ { "msg_contents": "I have observed a scope of considerable performance improvement in-case of index by a very minor code change.\nConsider the below schema:\n\ncreate table tbl2(id1 int, id2 varchar(10), id3 int);\ncreate index idx2 on tbl2(id2, id3);\n\nQuery as:\n select count(*) from tbl2 wher...
[ { "msg_contents": "Hello,\n\na psycopg user is reporting [1] that the library is not marking the\nconnection as closed and/or bad after certain errors, such as a\nconnection timeout. He is emulating the error by closing the\nconnection fd (I don't know if the two conditions result in the same\neffect, but I'll ...
[ { "msg_contents": "Hi all,\n\nIn the documentation of pg_recvlogical here\n(http://www.postgresql.org/docs/devel/static/app-pgrecvlogical.html),\nthere is the following sentence:\n\"Create a new logical replication slot with the name specified in\n--slot, using the output plugin --plugin, then exit.\"\nActually...
[ { "msg_contents": "Both the documentation\n(http://www.postgresql.org/docs/9.4/static/app-postgres.html) and the\n--help switch to postgres reference a -A switch to handle assertion\nchecking. Looking at the code, I don't see any entry for -A in the\ngetopt string and passing -A always fails with 'invalid opt...
[ { "msg_contents": "Antonin Houska <ah@cybertec.at> writes:\n> I noticed that - unlike join_collapse_limit - the from_collapse_limit does not\n> enforce maximum length of the top-level list. Shouldn't it do?\n\nHow would it do that? You want it to fail outright if there are more than\nN tables? That seems unhe...
[ { "msg_contents": "Hi,\n\nI'm posting my reply to Stephen's mail at\nhttp://archives.postgresql.org/message-id/20140919163839.GH16422%40tamriel.snowman.net\nin a new thread because I think it's a important discussion and many\npeople probably stopped following the RLS thread at some point.\n\nOn 2014-09-19 12:3...
[ { "msg_contents": "All,\n\n I've been keeping an eye on tick as it failed a day-or-so ago and it\n looks to be related to RLS. Using a local\n CLFAGS=\"-DCLOBBER_CACHE_ALWAYS -DRANDOMIZE_ALLOCATED_MEMORY\" build, I\n was able to see the regression tests failing in\n check_role_for_policy() due to a pretty...
[ { "msg_contents": "Greetings,\n\n While looking through the GetUserId() usage in the backend, I couldn't\n help but notice a few rather questionable cases that, in my view,\n should be cleaned up.\n\n As a reminder, GetUserId() returns the OID of the user we are\n generally operating as (eg: whatever the '...
[ { "msg_contents": "Hi all,\nit’s my first time here, so please let me know if I’m doing something wrong. I’m a developer, heavy PG user, but I’ve never hacked it before. Last week at work we had to produce a quite big CSV data file which should be used as input by another piece of software.\n\nSince the file mu...
[ { "msg_contents": "All,\n\n We, as a community, have gotten flak from time-to-time about the\n superuser role. We also tend to wish to avoid unnecessary\n optimization as it complicates the code base and makes folks reviewing\n the code wonder at the exceptions.\n\n As such, I wonder at a few of superuser...
[ { "msg_contents": "Hi,\n\nCurrently the value is hard code to NBuffers / 4 but ISTM that with\nbigger shared_buffer it's too much, ie even with a DB 10 to 20 time\nthe memory size there's a lot of tables under this limit and nightly\nbatch reports are trashing the shared buffers cache as if there's no\ntomorrow...
[ { "msg_contents": "On Sat, Sep 20, 2014 at 1:16 PM, Michael Paquier\n<michael.paquier@gmail.com> wrote:\n> On Fri, Sep 19, 2014 at 12:18 PM, Robert Haas <robertmhaas@gmail.com> wrote:\n>> On Tue, Sep 16, 2014 at 2:19 PM, Michael Paquier\n>> <michael.paquier@gmail.com> wrote:\n>>> - A patch refactoring code for ...
[ { "msg_contents": "Hi all,\n\nI'm faced with some troubles about the jsonb implementation, and I hope\nI'll get little advice =)\nIf I understand correctly, an abstract function for jsonb modification\nshould have the following stages:\n\nJsonb -> JsonbValue -> Modification -> JsonbValue -> Jsonb\n\nOne can con...
[ { "msg_contents": "Hi,\n\nI've previously started two threads about replication identifiers. Check\nhttp://archives.postgresql.org/message-id/20131114172632.GE7522%40alap2.anarazel.de\nand\nhttp://archives.postgresql.org/message-id/20131211153833.GB25227%40awork2.anarazel.de\n.\n\nThe've also been discussed in ...
[ { "msg_contents": "Hi experts,\n\nI want to know what's the \"core\" function used in Postgres server? I am\nlooking for something corresponding to main() in a simple C program. I want\nto know the file path and the function name. I am using Postgres 9.3.5,\nhowever I assume the \"core\" function will be unchan...
[ { "msg_contents": "GCC 4.9 build on Solaris 10 shows these warnings about isinf:\n\nfloat.c: In function 'is_infinite':\nfloat.c:178:2: warning: implicit declaration of function 'isinf' \n[-Wimplicit-function-declaration]\n\nSee \nhttp://pgbuildfarm.org/cgi-bin/show_stage_log.pl?nm=dingo&dt=2014-09-23%2002%3A52...
[ { "msg_contents": "Hi.\n\nI can never remember that pg_controldata takes only a dirname rather\nthan \"-D dirname\", and I gather I'm not the only one. Here's a tiny\npatch to make it work either way. As far as I can see, it doesn't\nbreak anything, not even if you have a data directory named \"-D\".\n\n-- Abhi...
[ { "msg_contents": "Hi,\n\nBecause of the atomics patch I was building postgres with sun\nstudio. Turns out vpath builds don't work in that scenario when building\nfrom git. The problem is that the replication Makefile\noverride CPPFLAGS := -I$(srcdir) $(CPPFLAGS)\nincludes the source directory, but not the curr...
[ { "msg_contents": "Probably due to an oversight on my part, json_object_agg currently \nreturns a json object with no fields rather than NULL, which the docs \nsay it will, and which would be consistent with all other aggregates \nexcept count().\n\nI don't think we ever discussed this, so it's probably just a...
[ { "msg_contents": "I just noticed when working on DDL deparsing that the typmodout routine\nfor intervals is broken. The code uses\n\n\tif (precision != INTERVAL_FULL_PRECISION)\n\t\tsnprintf(res, 64, \"%s(%d)\", fieldstr, precision);\n\telse\n\t\tsnprintf(res, 64, \"%s\", fieldstr);\n\n\nwhich puts the parent...
[ { "msg_contents": "It strikes me that there's a significant gap in the whole \"leakproof\nfunction\" business, namely that no consideration has been given to\nplanner-driven transformations of queries. As an example, if we\nhave \"a = b\" and \"b = c\", the planner may generate and apply \"a = c\"\ninstead of ...
[ { "msg_contents": "Hi,\n\nBinaries compiled on solaris using sun studio cc currently don't have\ncompiler and memory barriers implemented. That means we fall back to\nrelatively slow generic implementations for those. Especially compiler,\nread, write barriers will be much slower than necessary (since they all\...
[ { "msg_contents": "the the (6x)\n\n\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": "Fri, 26 Sep 2014 09:18:08 +0200", "msg_from": "\"Erik Rijkers\" <er@xs4all.nl>", ...
[ { "msg_contents": "All,\n\n Through continued testing, we've discovered an issue in the\n WITH CHECK OPTION code when it comes to column-level privileges\n which impacts 9.4.\n\n It's pretty straight-forward, thankfully, but:\n\npostgres=# create view myview\npostgres-# with (security_barrier = true,\npostg...
[ { "msg_contents": "I should have been paying a bit more attention to the recent work on \nadding an ignore_nulls option to row_to_json(). Here are some belated \nthought. I apologize to Pavel and Stephen for not having commented earlier.\n\nI think this is really a bandaid, and it will fail to catch lots of \nc...
[ { "msg_contents": "Here is a patch for the generator and aggregate functions for jsonb that \nwe didn't manage to get done in time for 9.4. They are all equivalents \nof the similarly names json functions. Included are\n\n to_jsonb\n jsonb_build_object\n jsonb_build_array\n jsonb_object\n js...
[ { "msg_contents": "We are down to 13 patch in Needs Review state. Many of these are \nstragglers that no-one's really even looked at yet.\n\nIf we want to finish the commitfest, we'll soon have to decide what to \ndo to patches that no-one cares enough about to review them.\n\n\n\npg_receivexlog: addition of --...
[ { "msg_contents": "HEADS UP.\n\nPGCon 2015 will be in June. That’s a few weeks later than in previous years.\n\n— \nDan Langille", "msg_date": "Sat, 27 Sep 2014 16:23:33 -0400", "msg_from": "Dan Langille <dan@langille.org>", "msg_from_op": true, "msg_subject": "HEADS UP: PGCon 2015 is in June" ...
[ { "msg_contents": "under HASH_STATISTICS, the output reporting \"this HTAB\" upon destruction is\npretty useless. Which HTAB would this one be? It is not necessarily the\nmost recently created one.\n\nThis makes it output the %p to the actual HTAB, so it can be matched up\nwith the logging of the creation.\n\n...
[ { "msg_contents": "Hi all,\n\nRecent commit 491c029 introducing RLS has broken a bit the verbose logs of\npg_dump, one message missing a newline:\n+ if (g_verbose)\n+ write_msg(NULL, \"reading row-security enabled for\ntable \\\"%s\\\"\",\n+ ...
[ { "msg_contents": "Hi.\n\nI'm a core developer on npgsql (the Postgresql .NET provider), we're hard\nat work on a major 3.0 version. I have a fundamental question that's been\nbugging me for a while and would like to get your opinion on it.\n\nNpgsql currently supports three basic query modes: simple, client-si...
[ { "msg_contents": "Hi,\nI have created a small patch to postgres source (in particular the\npsql part of it) that accepts trailing comma at the end of list in\nSELECT statement.\n\nThe idea is to be able to say both (with the same result):\nSELECT a, b, c from t;\nSELECT a, b, c, from t;\n\nAttached you can fin...
[ { "msg_contents": "Hi,\nI have created a small patch to postgres source (in particular the\npsql part of it) that modifies the way time spent executing the SQL\ncommands is printed out.\n\nThe idea is to have a human readable time printed, e.g.:\nTime: 1:32:15.45 m:s:ms\nTime: 2_10:12:55:444.033 d_h:m:s:ms\n\nA...
[ { "msg_contents": "Hi,\nI have created a small patch to postgres source (in particular the\npsql part of it) that modifies the way tab expansion is handled.\n\nThe idea is to be able to toggle tab expansion, having the default set\nto ON (as it is now). If turned off, tab characters on command line in\ninteract...
[ { "msg_contents": "Hi,\n\nI am newbie in postgresql development, so i took easy item in Todo list \"\nAdd generate_series(numeric, numeric)\". First, i changed function with\nanalogue funcionality (generate_series_timestamp) and added new object in\npg_proc (object id is 6000). My changes successfully was comp...
[ { "msg_contents": "Hi.\n\nI just noticed that initdb -S (\"Safely write all database files to disk\nand exit\") does (only) the following in perform_fsync:\n\n pre_sync_fname(pdir, true);\n walkdir(pg_data, pre_sync_fname);\n\n fsync_fname(pdir, true);\n walkdir(pg_data, fsync_fname);\n\nwalkdir() r...
[ { "msg_contents": "> On Wed, Sep 17, 2014 at 7:40 PM, Kouhei Kaigai <kaigai@ak.jp.nec.com> wrote:\r\n> > At this moment, I revised the above portion of the patches.\r\n> > create_custom_plan() was modified to call \"PlanCustomPath\" callback\r\n> > next to the initialization of tlist and clauses.\r\n> >\r\n> > ...
[ { "msg_contents": "Hello,\n\nSome devices send the MAC address in RADIUS requests in the format\n0000-0000-0000. I've seen this with a 3com switch, but there may be\nothers. Currently, postgresql doesn't understand this format.\n\nThis patch adds an extra line to the macaddr parsing in postgres to\nsupport this...
[ { "msg_contents": "On Sun, Sep 28, 2014 at 11:36 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:\n> Josh Berkus <josh@agliodbs.com> writes:\n>> So, can we get Beta3 out now?\n>\n> If nobody else steps up and says they want to do some performance\n> testing, I'll push the latest lengths+offsets patch tomorrow.\n>\n> Are...
[ { "msg_contents": "Hi,\n I am using postgres 9.2.2.\nThe postgresql documentation says, full_page_writes is forcibly on after\nexecuting the function pg_start_backup. But in my server full_page_writes\nis still off (not changed).\n\nHi,\n    I am using postgres 9.2.2.\nThe postgresql documentation says, ful...
[ { "msg_contents": "The documentation of effective_io_concurrency says\n\n Asynchronous I/O depends on an effective <function>posix_fadvise</>\n function, which some operating systems lack. If the function is not\n present then setting this parameter to anything but zero will result\n in an error.\n...
[ { "msg_contents": "I see the following Valgrind warnings in a recent build of the master branch:\n\n--1159-- REDIR: 0x5f73450 (strstr) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)\n--1159-- REDIR: 0x5f88cb0 (__strstr_sse2_unaligned) redirected to\n0x4c31fa0 (strstr)\n2014-09-29 14:49:24.342 PDT 1159 LOG: stat...
[ { "msg_contents": "Since we bit the bullet and changed the on-disk format for JSONB data,\nthe core committee feels that we should put out a new 9.4 beta release\nas soon as possible. Accordingly, we plan to wrap 9.4beta3 on Monday\n(Oct 6) for release Thursday Oct 9.\n\n\t\t\tregards, tom lane\n\n\n-- \nSent ...
[ { "msg_contents": "> On Mon, Sep 29, 2014 at 9:04 AM, Kohei KaiGai <kaigai@kaigai.gr.jp> wrote:\r\n> > Do we need to match the prototype of wrapper function with callback?\r\n> \r\n> Yes.\r\n> \r\nOK, I fixed up the patch part-2, to fit declaration of GetSpecialCustomVar()\r\nwith corresponding callback.\r\n\r\...
[ { "msg_contents": "Hi,\n\nthere's a #define clash between pg_config_manual.h and FreeBSD's\n/usr/include/machine-amd64/param.h which also defines CACHE_LINE_SIZE.\n\nIt's probably not really a PostgreSQL bug, but it seems easy enough to\nrename that definition now as it's only present in 9.4+. It's only\nused i...
[ { "msg_contents": "Hello.\n\nI was trying to get postgres to return the \"correct\" number of rows\ninserted for batch inserts to a partitioned table [using the triggers as\nsuggested here\nhttp://www.postgresql.org/docs/9.1/static/ddl-partitioning.html results in\nit always returning 0 by default].\n\nWhat I i...
[ { "msg_contents": "Hi all,\n\nWhat's your thoughts about we implement IF NOT EXISTS for CREATE INDEX? As\nit holds data (like sequences and tables) I think we can do that.\n\nRegards,\n\n-- \nFabrízio de Royes Mello\nConsultoria/Coaching PostgreSQL\n>> Timbira: http://www.timbira.com.br\n>> Blog: http://fabrizi...
[ { "msg_contents": "Hi Álvaro,\n\nI have a stack trace from a crash to share, when querying a table with\na brin index. Let me know what else you need in addition to the stack trace:\n\n#0 0x000000000077b0eb in pfree (pointer=0x1dcf1a8) at mcxt.c:754\n#1 0x000000000045fe4a in bringetbitmap (fcinfo=<optimized ...
[ { "msg_contents": "The current approach to \"value locking\" remains a controversial aspect\nof my INSERT ... ON CONFLICT UPDATE patch. I must admit that this is a\nvery complicated area, and it's difficult to keep things straight,\nparticularly with the relevant discussion scattered all over the\nplace.\n\nIn ...
[ { "msg_contents": "Summary of algorithm to use \"promise tuples\" for concurrency control\nduring UPSERT\n\n1. Perform btree search to location of key, if it exists.\na) If an unkilled index tuple exists, we decide this is an UPDATE and\ndrop straight thru to step 2\nb) If it does not exist, insert a \"promise\...