threads
listlengths
1
2.99k
[ { "msg_contents": "> Robert Haas wrote:\n> Noah Misch wrote:\n>> Based on the range of assessments spanning your \"almost useless\"\n>> to Merlin's \"killer feature\", I gather that its utility is\n>> exceptionally site-specific.\n> \n> Well said, sir.\n \n+1\n \n> I find it a rather elegant and well-thought-...
[ { "msg_contents": "Hi,\n\nPFA test case. It used simple select statement to retrieve data via\nplpython. It crashes latest pg 9.2 with the following stack trace i.e.\n\n#0 0x000000000073021f in pfree ()\n> #1 0x00007fa74b632f7a in PLy_result_dealloc () from\n> /home/masif/work/postgresql/postgresql/inst/lib/p...
[ { "msg_contents": "I'm beginning to work on advanced additions to in-core replication for\nPostgreSQL.\n\nThere are a number of additional features for existing single-master\nreplication still to achieve, but the key topics to be addressed are\nmajor leaps forward in functionality. I hope to add useful feature...
[ { "msg_contents": "On Thu, Apr 26, 2012 at 3:40 PM, Kevin Grittner\n<Kevin.Grittner@wicourts.gov> wrote:\n> [resending because of postgresql.org bounces on first try]\n>\n> Simon Riggs <simon@2ndquadrant.com> wrote:\n>> Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:\n>\n>>> The GSoC xReader project is inte...
[ { "msg_contents": "I'm getting an assertion failure on a fresh git checkout with this query:\n\ncreate table foo (a int4, b text);CREATE TABLE\ncreate index i_foo on foo (b, a);CREATE INDEX\nselect * from foo where a = 0 and (b = 'foo' or b = 'bar');\n\nTRAP: FailedAssertion(\"!(((((const Node*)(ipath))->type) ...
[ { "msg_contents": "I came across this comment:\n\n/*\n * ExceptionalCondition - Handles the failure of an Assert()\n *\n * Note: this can't actually return, but we declare it as returning int\n * because the TrapMacro() macro might get wonky otherwise.\n */\n\nBut it seems to me that this can easily be fixed li...
[ { "msg_contents": "Hi,\n\nThis is the version I used to run the following commands\n\nselect version();\n\nversion\n----------------------------------------------------------------------------------------------------------------\n PostgreSQL 9.2devel on x86_64-unknown-linux-gnu, compiled by gcc\n(Ubuntu/Linaro ...
[ { "msg_contents": "When I do this:\n\nrhaas=# set default_transaction_isolation = 'serializable';\nSET\nrhaas=# begin;\nBEGIN\nrhaas=# select 1;\n\nThen I get this:\n\nTRAP: FailedAssertion(\"!(!RecoveryInProgress())\", File: \"predicate.c\",\nLine: 1637)\nLOG: server process (PID 290) was terminated by signal...
[ { "msg_contents": "I notice that there isn't a parameter called enable_indexonly (or similar).\n\nISTM that such a major new feature should be controlled by a planner\nmethod parameter, just as all the existing planner methods are.\n\nThis will help us evaluate index only scans in production, and turn\nthem off...
[ { "msg_contents": "On Wed, Dec 15, 2010 at 10:11 AM, Alvaro Herrera\n<alvherre@commandprompt.com> wrote:\n> It occurs to me that we may need a new mode, which disconnects sessions\n> that are not in a transaction (or as soon as they are) but leaves\n> in-progress transactions alone; this could be the new defaul...
[ { "msg_contents": "> \"Kevin Grittner\" wrote:\n> Tom Lane wrote:\n> \n>> Yeah, it would definitely be nicer if BEGIN; SET TRANSACTION LEVEL\n>> would work too. Maybe the place to put the check is where we\n>> establish the transaction snapshot.\n> \n> That makes sense, \n \n> I'll take a shot at it sometime ...
[ { "msg_contents": "Tom Lane wrote:\n> Simon Riggs writes:\n>> Translating WAL is a very hard task.\n> \n> No kidding. I would think it's impossible on its face. Just for\n> starters, where will you get table and column names from? (Looking\n> at the system catalogs is cheating, and will not work reliably\n> a...
[ { "msg_contents": "Hi Alexander,\n\n\nPerhaps I'm too early with these tests, but FWIW I reran my earlier test program against three\ninstances. (the patches compiled fine, and make check was without problem).\n\n-- 3 instances:\nHEAD port 6542\ntrgm_regex port 6547 HEAD + trgm-regex...
[ { "msg_contents": "Simon Riggs wrote:\n> Kevin Grittner wrote:\n> \n>> But if you set it in the postgresql.conf file, it's not pretty:\n>>\n>> kevin@kevin-desktop:~$ psql -p 5433 test\n>> psql: FATAL: can not create a serializable snapshot during\n>> recovery\n>>\n>> Ideas?\n> \n> The patch as submitted doesn...
[ { "msg_contents": "Tom Lane wrote:\n> \"Kevin Grittner\" writes:\n \n>> Well, the xReader approach (Aakash's GSoC project) is to serve as\n>> a proxy for a WAL stream going to a hot standby, to interpret each\n>> incoming WAL record by \"cheating\" and querying the HS before\n>> passing the WAL along, and the...
[ { "msg_contents": "Simon Riggs wrote:\n \n> The only way default_transaction_isolation = serializable would be\n> acceptable when hot_standby = on is if we silently downgrade the\n> isolation level to read committed. That way everything just works,\n> albeit not quite as requested. So I think that's the best w...
[ { "msg_contents": "I didn't find a good way to find out how many digits a numeric value has\nor things like whether a numeric value is an integer. (I had to go\nthrough bc(1) for the latter.) Functions like precision() and scale()\nwould have been quite handy. Are there other ways to do this, or would\nthis ...
[ { "msg_contents": "Simon Riggs wrote:\n \n> Though it isn't a given that logical change records (LCRs) will\n> require more bandwidth than physical WAL.\n \nIt would help if you could share a little more of what you have in\nmind. It's not yet clear to me whether you're talking about adding\nlogical records t...
[ { "msg_contents": "> Simon Riggs wrote:\n> On Sun, Apr 29, 2012 at 5:54 PM, Kevin Grittner\n> wrote:\n>> Simon Riggs wrote:\n>>\n>>> The only way default_transaction_isolation = serializable would\n>>> be acceptable when hot_standby = on is if we silently downgrade\n>>> the isolation level to read committed. ...
[ { "msg_contents": "During ANALYZE, in analyze.c, functions compute_minimal_stats\nand compute_scalar_stats, values whose length exceed\nWIDTH_THRESHOLD (= 1024) are not used for calculating statistics\nother than that they are counted as \"too wide rows\" and assumed\nto be all different.\n\nThis works fine wit...
[ { "msg_contents": "Within access/transam/xlog.c , the following comment has an obvious error:\n\n * (This should not be called for for synchronous commits.)\n\n-- \nPeter Geoghegan       http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Training and Services\n", "msg_date": "Mon, 30 Apr 201...
[ { "msg_contents": "When GIN changes a metapage, we WAL-log its ex-header content and never use a\nbackup block. This reduces WAL volume since the vast majority of the metapage\nis unused. However, ginRedoUpdateMetapage() only restores the WAL-logged\ncontent if the metapage LSN predates the WAL record LSN. I...
[ { "msg_contents": "Hackers, users, pgCon attendees:\n\nYou want to give a lightning talk at pgCon!\n\nYes, you do. The fun, the glory, the laughter, the everlasting fame!\nThese can all be yours.\n\nBe one of the ten \"brave and true\" who put together five minutes about\nPostgreSQL tools, experiences, forks, ...
[ { "msg_contents": "Hi hackers\n\nAfter playing around with array_to_json() and row_to_json() functions a\nbit it I have a question - why do we even have 2 variants *_to_json()\n\nCollapsing array_to_json() and row_to_json() into just to_json()\n----------------------------------------------------------------\n\...
[ { "msg_contents": "Hello\n\nI have to goals for 9.3. First goal is plpgsql_check_function, second\ngoal is enhancing ErrorData and error management to support new\nfields: COLUMN_NAME, CONSTRAINT_NAME, CONSTRAINT_SCHEMA, SCHEMA_NAME,\nTABLE_NAME, ROUTINE_NAME, ROUTINE_SCHEMA, TRIGGER_NAME and\nTRIGGER_SCHEMA\n\...
[ { "msg_contents": "I think I've discovered an issue with multi-job pg_restore on a 700 GB\ndata file created with pg_dump. Before anyone points out that the\npreferred procedure is to use the newest pg_dump to backup a database\nbefore doing pg_restore let just say, \"Yes I'm aware of that advice\nand unfortuna...
[ { "msg_contents": "We've previously discussed the possible desirability of extending\nrelations in larger increments, rather than one block at a time, for\nperformance reasons. I attempted to determine how much performance we\ncould possibly buy this way, and found that, as far as I can see, the\nanswer is, ba...
[ { "msg_contents": "Remove dead ports\n\nRemove the following ports:\n\n- dgux\n- nextstep\n- sunos4\n- svr4\n- ultrix4\n- univel\n\nThese are obsolete and not worth rescuing. In most cases, there is\ncircumstantial evidence that they wouldn't work anymore anyway.\n\nBranch\n------\nmaster\n\nDetails\n-------\n...
[ { "msg_contents": "There is this rule in src/port/Makefile:\n\n%_srv.o: %.c\n $(CC) $(CFLAGS) $(subst -DFRONTEND,, $(CPPFLAGS)) -c $< -o $@\n\nBut this rule doesn't observe dependency tracking, so if you change a\nheader file, these files won't get build as necessary. This is the only\ncase in the sourc...
[ { "msg_contents": "Quite apart from the practical difficulties that we have with Flex\n(the fact that the authors are non-responsive and possibly retired,\nthat annoying compiler warning, and the fact that we are forced to\nmaintain our own Windows binaries of 2.5.35), it has some notable\ndisadvantages. I am a...
[ { "msg_contents": "Hi All,\n\nPlease forward this mail to the correct mailing list if this is not a right\nplace,\n\nPlease send me the link or white papers from where i can get information\nlike.\n1. Feature comparison in between PostgreSQL 9.x with MySql or MariaDB\n2. if possible specially with DBaaS\n3. Fea...
[ { "msg_contents": "Hi Hackers\n\nHow hard would it be to add support for LIKE syntax, similar to table\ndef in field list declaration for generic record functions\n\nWhat I'dd like to be able to do is to have a generic json_to_record\nfunction \n\nCREATE OR REPLACE RECORD json_to_record(json) RETURNS RECORD AS ...
[ { "msg_contents": "heap_hot_search_buffer() does this:\n\n valid = HeapTupleSatisfiesVisibility(heapTuple, snapshot, buffer);\n\nIf it turns out that the tuple isn't valid (i.e. visible to our scan)\nand we haven't yet found any live tuples in the current HOT chain,\nthen we check whether it's visibl...
[ { "msg_contents": "Attached patch latches up the WAL Writer, reducing wake-ups and thus\nsaving electricity in a way that is more-or-less analogous to my work\non the BGWriter:\n\nhttp://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=6d90eaaa89a007e0d365f49d6436f35d2392cfeb\n\nI am hoping this gets into...
[ { "msg_contents": "I looked into Maxim Boguk's complaint of bad estimation of antijoin size:\nhttp://archives.postgresql.org/pgsql-general/2012-05/msg00033.php\n\nI can reproduce what I think the problem is in the regression database.\nWe do okay with this:\n\nregression=# explain analyze select * from tenk1 a ...
[ { "msg_contents": "On Wed, May 2, 2012 at 1:06 PM, Alvaro Herrera\n<alvherre@commandprompt.com> wrote:\n> Excerpts from Robert Haas's message of mié may 02 12:55:17 -0400 2012:\n>> On Wed, May 2, 2012 at 12:46 PM, Alvaro Herrera\n>> <alvherre@commandprompt.com> wrote:\n>> > Agreed.  Perhaps to solve this issue ...
[ { "msg_contents": "This doesn't work anymore with Python 3:\n\nrv = plpy.execute(...)\ndo_something(rv[0:1])\n\nApparently, they changed the C API for doing slicing, or rather made one\nof the two APIs for it silently do nothing. Details are difficult to\nfind, but this email message seems to contain something...
[ { "msg_contents": "Hello List,\n\nI'd like to share with you some experiences we've had while\ninvestigating what we'd have to do to make very-very tiny databases.\n\nFirst, the formulae at\nhttp://www.postgresql.org/docs/9.1/static/kernel-resources.html#SHARED-MEMORY-PARAMETERS\n(17-2) seem misleading, particu...
[ { "msg_contents": "According to\nhttp://archives.postgresql.org/pgsql-general/2012-04/msg00374.php\nadvisory locks now cause problems for prepared transactions, which\nought to ignore them. It appears to me that this got broken by\ncommit 62c7bd31c8878dd45c9b9b2429ab7a12103f3590, which marked the\nuserlock loc...
[ { "msg_contents": "I had a request from a customer asking if we could make a switch to\nspecifically disable the \"unexpected EOF\" message that fills lots of\npeoples logs. Along the same way that we have a flag to turn off the\n\"nonstandard use of string escapes\" message that is another culprit\n(that's act...
[ { "msg_contents": "Is there a particular reason we don't have an ALTER DATABASE switch\nthat controls the datallowconn, or is it just something \"missed out\"?\n\n-- \n Magnus Hagander\n Me: http://www.hagander.net/\n Work: http://www.redpill-linpro.com/\n", "msg_date": "Thu, 3 May 2012 14:31:45 +0200", ...
[ { "msg_contents": "Magnus Hagander wrote:\n \n> Also, AFAIK we don't *have* a \"message type\" at this point (one of\n> the things said mythical project wanted to look at), so the only\n> thing we could really filter on would be the whole text of the\n> message, no?\n \nWe have SQLSTATE, but this seems to be o...
[ { "msg_contents": "Hi,\n\nIt seems that when Heikki added the multi_insert code the following comment in \nhtup.h wasn't updated:\n/*\n * We ran out of opcodes, so heapam.c now has a second RmgrId.\tThese opcodes\n * are associated with RM_HEAP2_ID, but are not logically different from\n * the ones above associ...
[ { "msg_contents": "Currently, the following can happen:\n\n1. A backend needs a new transaction, so it calls\nGetNewTransactionId(). It acquires XidGenLock and then calls\nExtendCLOG().\n2. ExtendCLOG() decides that a new CLOG page is needed, so it acquires\nCLogControlLock and then calls ZeroCLOGPage().\n3. Z...
[ { "msg_contents": "Hi everybody.\n\nFirst of all I have to thank you for your wonderful job! PostgreSQL rocks!\n\nI am writing you because I am interested in understanding some specifics related\nto PostgreSQL internals. More precisely, I am investigating the running time\nof the different function implementati...
[ { "msg_contents": "The new 9.2 GUC parameter temp_file_limit says it restricts temporary\nfile usage per session, but it doesn't say what happens if a session\nneeds to exceed that value --- it throws an error. Shouldn't we mention\nthat?\n\n-- \n Bruce Momjian <bruce@momjian.us> http://momjian.us\n ...
[ { "msg_contents": "What is the current status of FOR UPDATE cursors ?\n\nolder docs claim that the syntax is supported, but gives an error\n\nhttp://www.postgresql.org/docs/8.2/static/sql-declare.html\n\ndocs for 9.1 do not have FOR UPDATE in main section\n\nhttp://www.postgresql.org/docs/9.1/static/sql-declare...
[ { "msg_contents": "I think a few more things could removed/simplified after the recent\nround of port removal:\n\n- Remove definition of offsetof() in c.h\n\n- (Side point, the definition of endof() in the same place isn't used\nanywhere, and doesn't look safe to me, because it can go one past the\nend of memor...
[ { "msg_contents": "FYI, I am planning to complete the 9.2 beta release notes by this\nWednesday night, America-time, so developers will have Thursday to make\nadjustments before we ship the release notes as part of the beta.\n\nI wanted to complete them sooner, but I also wanted to be current on\nemail before I...
[ { "msg_contents": "I spent a significant chunk of my time last week, and also a whole lot\nof machine time, trying to evaluate the effectiveness of flushing CLOG\npages to disk in the background. Simon made the last effort in this\narea:\n\nhttp://archives.postgresql.org/pgsql-hackers/2012-01/msg00571.php\n\n....
[ { "msg_contents": "While researching a problem reported on the -general list by a user who\nlost a disk containing his index tablespace, I ran into something, but I'm\nnot sure is a serious bug or just an inconsistency in how \\d shows tables.\n\nHere are the steps I took.\n\n1. Create a new database 'MYDB' a...
[ { "msg_contents": "I would like to propose to improve parsing efficiency of contrib/file_fdw by\nselective parsing proposed by Alagiannis et al.[1], which means that for a\nCSV/TEXT file foreign table, file_fdw performs binary conversion only for\nthe columns needed for query processing. Attached is a WIP patc...
[ { "msg_contents": "It seems pretty confusing that synchronous_commit = 'remote_write' means\nwrite confirmed to the remote socket, not write to the file system. Is\nthere no better term we could some up with? remote_pipe? \nremote_transfer?\n\n-- \n Bruce Momjian <bruce@momjian.us> http://momjian.us\...
[ { "msg_contents": "While going through Readme in backend\\storage\\buffer, I found some point\nmisleading.\n\n \n\nNormal Buffer Replacement Strategy \n---------------------------------- --------------\n..\n\n..\n\n\nEach buffer header contains a usage counter, which is incremented (up to a \nsmall limit value)...
[ { "msg_contents": "Hello,\n\nThis question may be appropriate for pgsql-general, but let me ask here \nbecause the only relevant discussion seems to have been done on \npgsql-hackers:\n\nhttp://archives.postgresql.org/pgsql-hackers/2011-09/msg00169.php\n\nCan pg_trgm support non-alphanumeric characters by undef...
[ { "msg_contents": "Hello\n\nhere is patch with enhancing ErrorData structure. Now constraints\nerrors and RI uses these fields\n\nRegards\n\nPavel Stehule", "msg_date": "Wed, 9 May 2012 15:33:01 +0200", "msg_from": "Pavel Stehule <pavel.stehule@gmail.com>", "msg_from_op": true, "msg_subject": "e...
[ { "msg_contents": "Last night I changed the stats collector process to use\nWaitLatchOrSocket instead of a periodic forced wakeup to see whether\nthe postmaster has died. This morning I observe that several Windows\nbuildfarm members are showing regression test failures caused by\nunexpected \"pgstat wait time...
[ { "msg_contents": "Split contrib documentation into extensions and programs\n\nCreate separate appendixes for contrib extensions and other server\nplugins on the one hand, and utility programs on the other. Recast\nthe documentation of the latter as refentries, so that man pages are\ngenerated.\n\nBranch\n----...
[ { "msg_contents": "I have been reviewing how our new libpq URL syntax compares against\nexisting implementations of URL syntaxes in other drivers or\nhigher-level access libraries. In the case of SQLAlchemy, there is an\nincompatibility regarding how Unix-domain sockets are specified.\n\nFirst, here is the doc...
[ { "msg_contents": "I'm working on an upgrade of PostgreSQL embedded in a product from\nversion 8.1.x to 9.1.x. One particular PL/pgSQL function is giving us an\nissue as there seems to be a rather severe regression in memory usage --\na query that finishes in 8.1 causes an out of memory exception on 9.1.\n\nUsi...
[ { "msg_contents": "I have completed my draft of the 9.2 release notes, and committed it to\ngit. I am waiting for our development docs to build, but after 40\nminutes, I am still waiting:\n\n\thttp://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=guaibasaurus&dt=latest&stg=make-doc\n\n(Why is there no t...
[ { "msg_contents": "Hi all,\n\nI think psql's \\dO command is missing the server version check which\nsimilar commands such as \\dx use. Right now \\dO errors out with:\n\ntest=# \\dO\nERROR: relation \"pg_catalog.pg_collation\" does not exist\n\nwhen talking to servers older than 9.1, which don't have pg_colla...
[ { "msg_contents": "GiST page splitting has the peculiarity that it sometimes needs to split \na single page into more than two pages. It happens rarely in practice, \nbut it possible (*). With a bad picksplit function, it happens more often.\n\nWhile testing with a custom gist opclass with truly evil helper \nf...
[ { "msg_contents": "Hi all,\n\nI noticed that when synchronous_commit=off were not waking up the wal sender \nlatch in xact.c:RecordTransactionCommit which leads to ugly delays of approx 7 \nseconds (1 + replication_timeout/10) with default settings.\nGiven that were flushing the wal to disk much sooner this app...
[ { "msg_contents": "Hackers,\n\nShouldn't a call to elog(NOTICE) invalidate the current tranaction?\n\n david=# begin;\n BEGIN\n Time: 0.178 ms\n david=# do language plperl $$ elog(ERROR, 'foo')$$;\n ERROR: foo at line 1.\n CONTEXT: PL/Perl anonymous code block\n david=# select true;\n ...
[ { "msg_contents": "[point splintered in quoting re-joined]\n \nFlorian Pflug wrote:\n> On May10, 2012, at 18:36 , Kevin Grittner wrote:\n>> Robert Haas wrote:\n>>\n>>> I wonder if you could do this with something akin to the Bitmap\n>>> Heap Scan machinery. Populate a TID bitmap with a bunch of\n>>> randomly ...
[ { "msg_contents": "Ensure age() returns a stable value rather than the latest value\n\nBranch\n------\nmaster\n\nDetails\n-------\nhttp://git.postgresql.org/pg/commitdiff/b06679e01244d33304b71a6a44c7cc86173617b3\n\nModified Files\n--------------\nsrc/backend/access/transam/xact.c | 22 ++++++++++++++++++++++\n...
[ { "msg_contents": "Hello,\nfollowing this short discussion\nhttp://archives.postgresql.org/message-id/4F5AA202.9020906@gmail.com\nI gave it one more try and hacked the optimizer so that function can \nbecome an inner relation in NL join, parametrized with values from the \nouter relation.\n\nI tried to explain ...
[ { "msg_contents": "Do we have a full list of externally defined open standards that we follow?\n\nAre there any known incompatibilities from externally defined open standards?\n(I know about the SQL standard stuff).\n\nAre there any things that need standards that don't have them? (Be brief)\n\nSome high level ...
[ { "msg_contents": ">>Simon Riggs wrote:\n>>On 9 May 2012 19:17, Peter Eisentraut wrote:\n>>\n>>> I have been reviewing how our new libpq URL syntax compares\n>>> against existing implementations of URL syntaxes in other drivers\n>>> or higher-level access libraries. In the case of SQLAlchemy,\n>>> there is an...
[ { "msg_contents": "I noticed a large oversight in our efforts to reduce the server's idle\nwakeup frequency: if you've got logging_collector turned on, the\nsyslogger process will wake up once a second, whether it has anything\nto do or not. But the only reasons it has for waking up are signals,\ndata arrival,...
[ { "msg_contents": "After further consideration, I think the patch I committed here:\nhttp://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=31ad6553646c81f3ce8fccf8aef1a1134a7864c7\nmay have been an overly hasty band-aid rather than a good fix.\nThe question that needs to be faced is: what should Wai...
[ { "msg_contents": "Hackers,\n\nI need a constraint that ensures that a text[] column has only unique values -- that is, that there is no overlap of values between rows. I thought this was a made-to-order for an exclusion constraint. So I tried it:\n\ndavid=# create table tags (names text[] primary key, exclude ...
[ { "msg_contents": "I've been trying to figure out why my recent attempt to latch-ify the\nstats collector didn't work well on the Windows buildfarm machines.\nAfter a good deal of staring at our code and Microsoft's documentation\nI have a theory, which I intend to try out shortly. However, it appears\nto me t...
[ { "msg_contents": "I think that pgbench should it make it easy to assess the impact of\nforeign key constraints.\n\nThe attached adds a --foreign-keys option to initialization mode which\ncreates all the relevant constraints between the default tables.\n\nI changed the order of the table DDLs so that upon reini...
[ { "msg_contents": "Doing some beta testing, managed to produce this issue using the daily\nsnapshot from Tuesday:\n\n1. Created master server, loaded it with a couple dummy databases.\n\n2. Created standby server.\n\n3. Did pg_basebackup -x stream on standby server\n\n4. Started standby server.\n\n5. Realized I...
[ { "msg_contents": "Many comment references to PGPROC and MyProc should now refer to PGXACT and\nMyPgXact. This patch attempts to cover all such cases. In some places, a\ncomment refers collectively to all the xid-related fields, which span both\nstructures. I variously changed those to refer to either or bot...
[ { "msg_contents": "This code is our pre-9.2 group commit implementation, pretty much in\nits entirety:\n\nif (CommitDelay > 0 && enableFsync &&\n\tMinimumActiveBackends(CommitSiblings))\n\tpg_usleep(CommitDelay);\n\nThis code is placed directly before the RecordTransactionCommit() call\nof XLogFlush(). It seeks...
[ { "msg_contents": "Hi,\n\nRecently we faced an issue with postgres server where it is throwing error:\n\nERROR: catalog is missing 2 attribute(s) for relid 16584\nCONTEXT: automatic analyze of table \"DBRNW.public.act_wsta\"\n\nI checked in the database and found that this table is not present but the\nentry ...
[ { "msg_contents": "Hi All,\n\nI have implemented hot standby for PostgreSQL with a group of two Primary\nand Standby in windows 2008 servers.\n\nCurrently below are the settings:\n\n1. Archiving is enabled on primary, stored on network storage.\n2. Asynchronous Streaming replication from primary to standby.\nwa...
[ { "msg_contents": "----- Цитат от Alex Shulgin (ash@commandprompt.com), на 14.05.2012 в 18:16 -----\n\n> Alex <ash@commandprompt.com> writes:\n> \n> \n> The host part in this case is empty (it is \"hidden\" between the \"//\" and\n> the following \"/\",) thus local socket connection is employed for this\n> type...
[ { "msg_contents": "Hello all,\n\nwhile packaging 9.2 beta 1 for Debian/Ubuntu the postgresql-common\ntest suite noticed a regression: It seems that pg_restore --data-only\nnow skips the current value of sequences, so that in the upgraded\ndatabase the sequence counter is back to the default. This can lead to\nr...
[ { "msg_contents": "A customer reported a mysterious crash, with the backtrace showing it to \ncome from several levels down deep in the infix() function, called by \ntsqueryout(). I was eventually able to reproduce this and hunt down the \nbug, using the same tsquery string as the customer.\n\nThe bug was actua...
[ { "msg_contents": "Here is a draft design for the transforms feature, which I'd like to\nwork on. The purpose of this is to allow adapting types to languages.\nThe most popular case is to enable converting hstore to something useful\nlike a dict or a hash in PL/Python or PL/Perl, respectively. In\ngeneral, th...
[ { "msg_contents": "I've switched servers yesterday night and the previous slave is now\nthe master. This is 9.0.6 (originally) / 9.0.7 (now) on Linux.\n\nNow I'm seeing a bunch of\n\nERROR: could not open relation with OID 1990987633\nSTATEMENT: create temp table seen_files (fileid integer)\n\nInterestingly e...
[ { "msg_contents": "Dear PostgreSQL hackers,\n\n[ please CC to me as I'm not subscribed to the list ]\n\nI think there is a missing optimization when a filter is\napplied after a window function, where the filtered field\nis also used for partitioning.\n\nHere a simplified example: Suppose we have a table\nthat ...
[ { "msg_contents": "I'm currently doing some tests on range types:\n\ntests=# SELECT int8range(5,15) * int8range(10,20) AS intersection;\n intersection\n--------------\n [10,15)\n(1 Zeile)\n\n\ntests=#\ntests=# SELECT '[2010-03-15,2010-05-22)'::daterange * \n'[2010-01-04,)'::daterange AS intersection;\n ...
[ { "msg_contents": "I think result is ok... 2010-01-04 is not inside first range...\n\nSent from my Windows Phone\nFrom: Brar Piening\nSent: 16/05/2012 09:53\nTo: pgsql-hackers\nSubject: [HACKERS] 9.2 Beta: intersection of daterange\nI'm currently doing some tests on range types:\n\ntests=# SELECT int8range(5,15...
[ { "msg_contents": "Hi all,\n\nOne of the issues we've been looking at with PostGIS is how to interrupt \nlong-running processing tasks in external libraries, particularly GEOS. \nAfter a few tests here, it seems that even the existing SIGALRM handler \ndoesn't get called if statement_timeout is reached when in ...
[ { "msg_contents": "Hello,\n\nI would like to allow the execution of a function (my_function) only if its\nargument (my_table.x) belongs to a predefined interval (e.g. [100,1000]).\n\nLet's take the following query example :\n(q) SELECT * FROM my_table WHERE my_function(mytable.x);\n\nI would like this query au...
[ { "msg_contents": "\nHi,\n\nWe just came across a situation where a corrupted HFS+ filesystem\nappears to return ERANGE on a customer machine. Our first reaction was\nto turn zero_damaged_pages on to allow taking a pg_dump backup of the\ndatabase, but surprisingly this does not work. A quick glance at the\nco...
[ { "msg_contents": "After editing query with external editor psql exits on Ctrl-C:\n\n% psql postgres\nSET\nTiming is on.\npsql (9.2beta1)\nType \"help\" for help.\n\npostgres=# --- Ctrl-C\npostgres=# --- Ctrl-C\npostgres=# --- Ctrl-C\npostgres=# \\e\n...\npostgres=# --- Ctrl-C\n%\n\nSome details:\nexter...
[ { "msg_contents": "Hi all,\n\nas a part of my master's thesis I have created temporal support patch for\nPostgreSQL. It enables the creation of special temporal tables with entries\nversioning. Modifying operations (UPDATE, DELETE, TRUNCATE) on these tables\ndon't cause permanent changes to entries, but create ...
[ { "msg_contents": "So, I set up a test which should have been ideal setup for index-only scan. The index was 1/10 the size of the table, and fit in RAM (1G) which the table does not:\n\nbench2=# select pg_size_pretty(pg_relation_size('pgbench_accounts_pkey'));\n pg_size_pretty\n----------------\n 428 MB \n(1 ...
[ { "msg_contents": "The attached patch provides some rough instrumentation for determining\nwhere palloc calls are coming from. This is obviously just for\nnoodling around with, not for commit, and there may well be bugs. But\nenjoy.\n\nI gave this a quick spin on a couple of test workloads: a very short\npgbe...
[ { "msg_contents": "AMD FX 8120 / centos 6.2 / latest source (git head)\n\n\nIt seems to be quite easy to force a 'sync' replica to not be equal to master by\nrecreating+loading a table in a while loop.\n\n\nFor this test I compiled+checked+installed three separate instances on the same machine. The\nreplica ap...
[ { "msg_contents": "Hi All,\n\nI just realized that anyone can listen for notifications (using listen) \nso long as they know the \"channel\" name. This means that a user could \nreceive and view the payload for another user.\n\nPerhaps it would be good to note this in the documentation (i.e., there \nshould be...
[ { "msg_contents": "I've been testing the crash recovery of REL9_2_BETA1, using the same\nmethod I posted in the \"Scaling XLog insertion\" thread. I have the\ncheckpointer occasionally throw a FATAL error, which causes the\npostmaster to take down all of the other processes (DETAIL: The\npostmaster has comman...
[ { "msg_contents": "I bumped into a bug in the new buffering GiST build code. I did this:\n\ncreate table gisttest (t text);\ninsert into gisttest select \na||'fooooooooooooooooooooooooooooooooooooooooooooooo' from \ngenerate_series(1,10000000) a;\n\ncreate index i_gisttest on gisttest using gist (t collate \"C\...
[ { "msg_contents": "I found this in contrib/sepgsql/expected/label.out:\n\nSECURITY LABEL ON COLUMN t2\n IS 'system_u:object_r:sepgsql_ro_table_t:s0'; -- be failed\nERROR: improper relation name (too many dotted names): <nothing>\n\nContrast with:\n\nSECURITY LABEL ON COLUMN t2.b\n IS 'system_u:object_r...