threads
listlengths
1
2.99k
[ { "msg_contents": "Currently it isn't possible to create temporary tables on read-only\nstandby servers, and I don't see it listed on the TODO list. Can I add\nit?\n\n-- \n Bruce Momjian <bruce@momjian.us> http://momjian.us\n EnterpriseDB http://enterprisedb.com\n\n + It'...
[ { "msg_contents": "Hi everyone! Did anyone had a chance to use PL/JS for sp development? Im working on app that uses JS to work with data and was wandering whether PL/JS can offer full data management functionality like PL/PgSLQ?\n\nThanks.\nGreg.\n\n\n\n \nHi everyone! Did anyone had a chance to use PL/JS...
[ { "msg_contents": "Robert asked me to write this up, so here it is.\n\nIt is critical that we make replication easier to set up, administrate \nand monitor than it currently is. In my conversations with people, this \nis more important to our users and the adoption of PostgreSQL than \nsynchronous replication ...
[ { "msg_contents": "Hackers,\n\nWhat purpose is served, exactly, by max_wal_senders?\n\nIn order for a standby to connect, it must have a superuser login, and \nreplication connections must be enabled in pg_hba.conf. How is having \none more setting in one more file you have to enable on the master \nbenefittin...
[ { "msg_contents": "bruce wrote:\n> Tom Lane wrote:\n> > Dave Cramer <pg@fastcrypt.com> writes:\n> > > as seen below create tablespace does not throw an error or appear to\n> > > do anything other than register the tablespace.\n> > \n> > I suspect this behavior is partially intentional, because tablespace\n> > c...
[ { "msg_contents": "> Jeff Davis wrote:\n> On Mon, 2010-10-18 at 13:26 -0500, Kevin Grittner wrote:\n \n> I assume here that you mean that you _did_ see the failure\n> (serialization error) and therefore did not see the problem?\n \nYeah.\n \n> Also, are you sure it was using the GiST index for the searches and...
[ { "msg_contents": "The comment code refactoring c10575ff005c330d0475345621b7d381eb510c48\nbroke comments on composite type attributes:\n\nCOMMENT ON COLUMN foo.a is 'test';\nERROR: 42809: \"foo\" is a composite type\nLOCATION: heap_openrv, heapam.c:1110\n\nThis is because as the code was moved from CommentAtt...
[ { "msg_contents": "The cause of bug #5716 is that preprocess_targetlist is trying to get\naway with creating a whole-row variable marked with type RECORDOID,\neven in cases where a specific composite type is known for the\nreferenced RTE. This fails because now we might have non-equal Vars\nrepresenting the sa...
[ { "msg_contents": "I index these structures in gist:\n\ntypedef struct {\n> uint8 type_flag;\n> float8 xi;\n> float8 yi;\n> Timestamp ti;\n> float8 xe;\n> float8 ye;\n> Timestamp te;\n> int32 id;\n> } typ_s_flagged;\n>\n> typedef struct {\n> uint8 type_flag;\n> float8 xl;...
[ { "msg_contents": "I spent yesterday writing a new tool pg_rawdump (which will be released as\nopen source in due course), which takes the table files in an arbitrary\npgsql database, and is able to transform those back into tables (including\ntoast values).\n\nIn the course of doing this (a customer needed it ...
[ { "msg_contents": "Restructure the pg_upgrade code to use several global structures rather\nthan packing everything into 'ctx' and passing that to every function.\n\nBranch\n------\nmaster\n\nDetails\n-------\nhttp://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=e13f7e9a711c9117e438516537066bbe61df6...
[ { "msg_contents": "In bug #5717, Richard Huxton complains that a domain declared like\n\tCREATE DOMAIN mynums numeric(4,2)[1];\ndoesn't work properly, ie, the typmod isn't enforced in places where\nit reasonably ought to be. I dug into this a bit, and found that there\nare more worms in this can than I first e...
[ { "msg_contents": "Dear All\n\nI want to use hugepage function on Linux platform, my question is if\nPostgreSQL supports hugepage in default, if not, what's the code need to be\nmodified?\n\nThank you for your greate support\n\nHsien-Wen\n\nDear AllI want to use hugepage function on Linux platform, my question ...
[ { "msg_contents": "After running \"make installcheck-world\", git status shows a bunch of\nstuff that looks like this:\n\n# src/interfaces/ecpg/test/sql/desc.dSYM/\n# src/interfaces/ecpg/test/sql/describe.dSYM/\n# src/interfaces/ecpg/test/sql/dynalloc.dSYM/\n# src/interfaces/ecpg/test/sql/dynalloc2.dSYM...
[ { "msg_contents": "One some Windows machines the command processor is not invoked properly when \nrunning the WScript.Run method. The same PostgreSQL 9.0.1-1 one click installer \nthat worked perfrectly fine on one Windows 7 64-bit machine did not work as \nexpected on another machine with same OS. Adding the c...
[ { "msg_contents": "Hi pgsql-hackers,\n\nCurrently contrib/pgcrypto/pgp-pubenc.c contains code like:\n\nuint8 algo = pk->algo;\nif (pk == NULL)\n...\n\nHowever, if pk was NULL, then the if() condition would never be\nreached because the pk->algo dereference would segfault.\n\nThis patch moves the dereference to ...
[ { "msg_contents": "I received a private email report yesterday from someone using\npg_upgrade with PG 9.0 who found it took five hours for pg_upgrade to\nupgrade a database with 150k tables. Yes, that is a lot of tables, but\npg_upgrade should be able to do better than that.\n\nI have modified pg_upgrade in gi...
[ { "msg_contents": "I have applied the attached patch to clean up pg_upgrade cache lookup\ncode and remove useless NULL pointer tests.\n\n-- \n Bruce Momjian <bruce@momjian.us> http://momjian.us\n EnterpriseDB http://enterprisedb.com\n\n + It's impossible for everything to ...
[ { "msg_contents": "Hi list,\n\nHere's the second patch from my coccicheck run. Originally it flagged\nthe fact that the opened file in psql's process_file() wasn't being\nclosed in the ON_ERROR_STOP path, but there seem to be two more\nunintended behaviors here.\n\n(1) In the error path, the value of pset.input...
[ { "msg_contents": "I had the following idea for an optimization. Feel free to tell me I'm nuts.\n\nWould it be possible to postpone the operation of taking a snapshot\nuntil we encounter an in-doubt tuple - that is, a tuple whose XMIN or\nXMAX is committed but not all-visible? It seems to me that there are\nm...
[ { "msg_contents": "Hi all,\n\nIt looks like psql's tab completion for the \\z and \\dg commands in\npsql are missing. I couldn't see a reason for this, so attached patch\nfixes.\n\nAlso, this patch proposes to change psql's \"\\?\" help text to say that\n\\dg and \\du are the same, since AFAICT they do exactly ...
[ { "msg_contents": "So, as previously indicated, let's add some wildcard support to the\npg_hba.conf host name feature. After looking around a bit, two syntaxes\nappear to be on offer:\n\n1. TCP Wrappers style, leading dot indicates suffix match.\nSo .example.com matches anything.example.com. Not sure how usef...
[ { "msg_contents": "I found an explicit UNION ALL has higher cost than an automatic expansion\nby inheritance (49 vs. 83 in the example below). Where does the difference\ncome from? Since they have almost same plan trees, should it be the same cost?\n\n=# CREATE TABLE parent (i integer);\n=# CREATE TABLE child ...
[ { "msg_contents": "Hi there,\n\nI can't make Python Generators to work reliably. According to the\ndocumentation, this should work:\n\nCREATE OR REPLACE FUNCTION foobar()\nRETURNS SETOF text AS\n$$\n for s in ('Hello', 'World'):\n plpy.execute('select 1')\n yield s\n$$\nLANGUAGE 'plpythonu';\n...
[ { "msg_contents": "I just noticed that there doesn't seem to be any good way of finding\nout what a postmaster's default value of unix_socket_directory is.\nIf you try to SHOW it you just get an empty string. We could probably\nfix things so that SHOW exposes the actual setting, but (1) there might\nbe securit...
[ { "msg_contents": "buildfarm member koi, having recently been rescued from git purgatory,\nis failing like this:\n\nconfigure: using CFLAGS=-O -Kinline\nconfigure: using CPPFLAGS= -I/usr/local/include/libxml2 -I/usr/local/include\nconfigure: using LDFLAGS= -L/usr/local/lib -L/usr/local/lib\npreparing build tr...
[ { "msg_contents": "Hi,\n\nA customer was hitting some misbehavior in one of their internal tests and\nI tracked it down to plancache not behaving properly with\nsubtransactions: in particular, a plan is not being marked \"dead\" when\nthe subtransaction on which it is planned rolls back. It was reported\nin 8....
[ { "msg_contents": "I merged the latest version of the serializable lock consistency patch\nI could find up to head, and cleaned up some bits of trailing\nwhitespace, lines over 80 characters, an unused variable that was\nproducing a warning, and a function that I thought was in the wrong\nfile. Context diff at...
[ { "msg_contents": "OFF is a reserved keyword. It's not a reserved keyword in the SQL spec, \nand it's not hard to see people using off as a variable or column name, \nso it would be nice to relax that. To make things worse, OFFSET is also \na reserved keyword, which would be the other natural name for a variabl...
[ { "msg_contents": "Hello\n\nI reworked a implementation of format function. This respects last discussion:\n\n* support a positional placeholders - syntax %99$x,\n* support a tags: %s, I, L,\n* enhanced documentation,\n* enhanced reggress tests\n\nRegards\n\nPavel Stehule", "msg_date": "Fri, 22 Oct 2010 10:...
[ { "msg_contents": "Hi,\n\nI want to write a custom agg function that, given an \"int4 index\",\nincrements the element at \"index\" of an array and, at the end, returns\nthe array. The array will always be int4[].\n\nI need it in C, since plpgsql is way slower (and I need to use it in\n5M+ rows). I did it, but...
[ { "msg_contents": "Hi folks,\n\nIn my own databases, I've been using a couple of C functions that\nmight be useful to the wider community.\n\nThey are very simple date/timestamp constructors that take integers as\ntheir arguments. Nothing fancy, but very convenient and *much* faster\nthan using a SQL or PL/pgS...
[ { "msg_contents": "Hello guys,\n\nI'm writing a function that will read data from the buffer in xlog (i.e.\nfrom XLogCtl->pages and XLogCtl->xlblocks). I want to make sure that I am\ndoing it correctly.\nFor reading from the buffer, do I need to lock WALInsertLock or\nWALWriteLock? Also, can you explain a bit t...
[ { "msg_contents": "Hi.\n\nI have been puzzled about the evaluation order when using window\nfunctions and limit.\n\njk=# select * from testtable;\n id | value\n----+-------\n 1 | 1\n 2 | 2\n 3 | 3\n 4 | 4\n 5 | 5\n 6 | 6\n 7 | 7\n 8 | 8\n 9 | 9\n 10 | 1...
[ { "msg_contents": "Hello,\n\nIt seems that this:\nCREATE OR REPLACE FUNCTION test_fsync_speed() RETURNS float AS '$libdir/test_fsync_speed','\\\ntest_fsync_speed' LANGUAGE C IMMUTABLE STRICT;\n\nis not equivalent to this (note \"void\" argument):\n\nCREATE OR REPLACE FUNCTION test_fsync_speed(void) RETURNS floa...
[ { "msg_contents": "I am using gin index on a tsvector and doing basic search. I see the\nrow-estimate of the planner to be horribly wrong. It is returning\nrow-estimate as 4843 for all queries whether it matches zero rows, a\nmedium number of rows (88,000) or a large number of rows (726,000).\n\nThe table has r...
[ { "msg_contents": "Here is a first patch to slightly refactor the type and typmod lookups\nwith the aim of making it easier to possibly changing the nature or\nrepresentation of typmods in the future and making it easier to merge\nthe collation patch.\n\nI split the typenameTypeId function into two. Most call ...
[ { "msg_contents": "Hi folks,\n\nI have encountered a reproducible segfault in Postgres, and confirmed\nit in 9.0.1 and HEAD on three separate machines. The bug was not\npresent in 8.4. I've attached a copy of the SQL script I have been\nusing to induce the segfault.\n\nWith asserts enabled, I get a failed ass...
[ { "msg_contents": "I'd like to open the discussion for Range Types again. This is a fairly\nlong email because several issues are intertwined, and I don't think\nthey can be neatly pulled apart. Previous discussions:\n\n http://archives.postgresql.org/pgsql-hackers/2009-12/msg01162.php\n http://archives.postg...
[ { "msg_contents": "I see that plperl uses a triple of (function oid, is_trigger flag, user\nid) as a hash key for caching compiled functions. OTOH pltcl and plpgsql\nboth use (oid, trigger relation oid, user id). Is there any reason why\njust using a bool as plperl does would be wrong?\n\nI'm trying to write a ...
[ { "msg_contents": "Jeff Davis <pgsql@j-davis.com> wrote:\n> On Mon, 2010-10-18 at 13:26 -0500, Kevin Grittner wrote:\n \n>>> 3. Limited shared memory space to hold information about\n>>> committed transactions that are still \"interesting\".\n \n>>> It's a challenging problem, however, and the current solution ...
[ { "msg_contents": "SQL/MED will have some kinds of planner hooks to support FDW-depending\nplan execution. Then, we will need to support user-defined executor nodes.\nThe proposed SQL/MED has own \"executor node hooks\" in ForeignTableScan,\n http://wiki.postgresql.org/wiki/SQL/MED#Executor\nbut I think it wil...
[ { "msg_contents": "Here is a revised version of SQL/MED patch which is based on\nthe discussion in CommitFest 2010-09. The original post in the\nCommitFest is:\nhttp://archives.postgresql.org/pgsql-hackers/2010-09/msg00779.php\n\nIn this message, I'll describe major changes from previous version of\npatch. Ch...
[ { "msg_contents": "Robert Haas wrote:\n \n> What we're talking about is what happens when there are concurrent\n> table modifications in progress; and the answer is that you might\n> get serialization anomalies. But we have serialization anomalies\n> without MERGE, too - see the discussions around Kevin Grittn...
[ { "msg_contents": "Hello\n\nOn 9.1 I found a query where explain do backend crash\n\nbacktrace\n\nCore was generated by `postgres: pavel postgres [local] EXPLAIN\n '.\nProgram terminated with signal 6, Aborted.\n#0 0x0000003226c329a5 in raise () from /lib64/libc.so.6\nMissing separate debuginfos, use: d...
[ { "msg_contents": "\nIt occurred to me in the dead of the night that instead of:\n\n ALTER TYPE enumtype ADD 'newlabel'\n\n\nit might be better to have:\n\n ALTER TYPE enumtype ADD LABEL 'newlabel'\n\n\nThat way if we later wanted to support some other sort of ADD operation \non types we would be able to ...
[ { "msg_contents": "Hi guys, got across an interesting problem of passing params to a function in postgre: is it possible to pass a composite parameter to a function without declaring a type first? \n\nFor example:\n\n// declare a function\ncreate function TEST ( object??? )\n   ....\n   object???.paramName    /...
[ { "msg_contents": "Hello Experts,\nMy application uses Oracle DB, and makes use of OCI interface.\nI have been able to develop similar interface using postgreSQL library.\nHowever, I have done some tests but results for PostgreSQL have not been \nencouraging for a few of them.\n\nMy questions/scenarios are:\n\n...
[ { "msg_contents": "Currently, foreign keys only work with the = operator (the name might be\ndifferent, but it needs to behave like equality). I'm thinking there\nare other scenarios that could be useful, for example with arrays and\nrange types.\n\nExample #1: Foreign key side is an array, every member must m...
[ { "msg_contents": "Researching a nasty bug discovered in our application led me to this bug \nreport and its follow-ups: \nhttp://archives.postgresql.org/pgsql-bugs/2010-03/msg00058.php\n\nThis bit us hard (on PostgreSQL 8.4.4). We have a custom domain for \nemail addresses based on citext, placed in the public...
[ { "msg_contents": "Folks,\n\nPlease find attached patch for $subject :)\n\nCheers,\nDavid.\n-- \nDavid Fetter <david@fetter.org> http://fetter.org/\nPhone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter\nSkype: davidfetter XMPP: david.fetter@gmail.com\niCal: webcal://www.tripit.com/feed/ical/people/davi...
[ { "msg_contents": "The attached patch modifies TRUNCATE ... RESTART IDENTITY so that if the \ntransaction rolls back the restart of the sequence will also be rolled back.\n\nIt follows the general outline discussed at \nhttp://archives.postgresql.org/pgsql-hackers/2008-05/msg00550.php of \nassigning a new reffi...
[ { "msg_contents": "Isn't this error message logically backwards?\n\n=# SECURITY LABEL ON SCHEMA public IS NULL;\nERROR: 22023: security label providers have been loaded\n\n\n", "msg_date": "Tue, 26 Oct 2010 21:20:09 +0300", "msg_from": "Peter Eisentraut <peter_e@gmx.net>", "msg_from_op": true, ...
[ { "msg_contents": "Folks,\n\nI just realized I hadn't closed out the commitfest earlier. Have done\nso.\n\nCheers,\nDavid.\n-- \nDavid Fetter <david@fetter.org> http://fetter.org/\nPhone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter\nSkype: davidfetter XMPP: david.fetter@gmail.com\niCal: webcal://www...
[ { "msg_contents": "At the moment, when you specify recovery_target_timeline='latest', we \nscan for the latest timeline at the beginning of recovery, and pick that \nas the target. If new timelines appear during recovery, we stick to the \ntarget chosen in the beginning, the new timelines are ignored. That's \n...
[ { "msg_contents": "On Wed, Oct 27, 2010 at 10:57 AM, Alvaro Herrera\n<alvherre@commandprompt.com> wrote:\n\n> Wow, this must be the most difficult smallest thing I have ever seen\n> discussed in pg-hackers.  It doesn't seem like there are enough votes\n> in any particular direction.  Now *this* is proper bikesh...
[ { "msg_contents": "Hello list,\n\nI just encountered an interesting undesirable behavior in Postgres\n9.0's error reporting dealing with (trivially) malformed\nrecovery.conf, as might be the case when setting up hot standby. In\nthis case, there were some missing fields, and they were checked as\nthey are suppo...
[ { "msg_contents": "This is not very user-friendly:\n\npostgres=# do $$\nbegin\n COMMIT;\nend;\n$$;\nERROR: SPI_execute_plan_with_paramlist failed executing query \"COMMIT\": \nSPI_ERROR_TRANSACTION\nCONTEXT: PL/pgSQL function \"inline_code_block\" line 2 at SQL statement\n\nClearly we don't support that, bu...
[ { "msg_contents": "\"Joshua D. Drake\" wrote:\n> On Wed, 2010-10-27 at 19:52 -0400, Robert Haas wrote:\n>> Josh Berkus wrote:\n> \n>>> *you don't know* how many .org users plan to implement\n>>> replication, whether it's a minority or majority.\n>>\n>> None of us know. What I do know is that I don't want Pos...
[ { "msg_contents": "Hello\n\nI am checking PLpgSQL ToDo topics, and I am not sure if this topic\nisn't done. And if not, then I would to get some detail.\n\nNow there is possible to test row's variable on NULL, now it is\npossible to assign NULL to row variable. What we can do more?\n\na) There is small differen...
[ { "msg_contents": "I have committed an initial version of release notes for 9.1alpha2.\nPlease look it over.\n\nThe release can then be prepared over the weekend and announced on\nMonday.\n\n", "msg_date": "Thu, 28 Oct 2010 17:48:01 +0300", "msg_from": "Peter Eisentraut <peter_e@gmx.net>", "msg_from...
[ { "msg_contents": "While we were discussing allowing generic record type arguments to \nplperl functions, Tom suggested that we should expose the type \ninformation about the record members to plperl. I think if we do that we \nshould probably expand it somewhat to all arguments, so that for \nnon-trigger funct...
[ { "msg_contents": "hello --\n\ni have a largish table (~8 billion rows) which makes use of the temporal period datatype and gist indexes. i find that query plans are somewhat \"unstable\" in that it is often the case that slightly altering a query can result in a change from using the index (usually via a bitm...
[ { "msg_contents": "\nThe buildfarm server is moving. The web site has already moved, and the \ndatabase will be moving on Tuesday Nov 9th, starting at 9.00 am EST (or, \nif you prefer, at 14:00 UTC). The server will be unavailable during the \noutage, which is expected to take no longer then 6 hours. (we're mov...
[ { "msg_contents": "One of the items on the Wiki ToDo list is sorted writes for\ncheckpoints. The consensus seemed to be that this should be done by\nadding hook(s) into the main code, and then a contrib module to work\nwith those hooks. Is there an existing contrib module that one could\nbest look to for insp...
[ { "msg_contents": "Coccinelle found a few places in the code where pointer expressions\nwere compared to 0. I have changed them to NULL instead.\n\nThere was one line that I didn't dare to touch, which looks like a\nfalse positive.\n\nsrc/backend/regex/regc_lex.c:849:\nif (v->now - save == 0 || ((int) c > 0 && ...
[ { "msg_contents": "f\n\nHi,Dear: \n we are wholesalers in china.We can sent our product to USA,Germany,Europe and so on.\n we have established a good business relationship with the manufactoies.So we can get the best price there. And we mainly do our business in bulk with our agents, so we shou...
[ { "msg_contents": "Hackers,\n\nGist picksplit method implementation in cube contrib module contains a bug\nin Guttman's split algorithm implementation. It was mentioned before but it\nis still not fixed yet. Current implementation doesn't cause incorrect\nbehavior, but index becomes very bad, because each index...
[ { "msg_contents": "The Oregon State University's Open Source Lab (OSL) has contacted me about\ncoordinating some student work for the Google Code-In, a program targetting\n13-18 year olds.\n\nSee more here: http://code.google.com/opensource/gci/2010-11/index.html\n\nThis program specifically allows documentatio...
[ { "msg_contents": "Hi list,\n\nSince my previous Coccinelle cleanup patches have gained positive\nfeedback I decided to try some more.\n\nThis time I wrote my own spatches.\n\npatch 0001 turns (a - b == 0) into (a == b) and similarly with !=\npatch 0002 applies the same to operators >, >=, <, <=\n\nI'm well awa...
[ { "msg_contents": "I was reminded today that I'd promised to do $SUBJECT awhile back.\nIt's worth having so that hash joins and hash aggregation can work\non array values. I believe this is a fairly straightforward\nexercise:\n\n1. Add a hash opclass that accepts ANYARRAY, similar to the existing\nbtree opclas...
[ { "msg_contents": "Alpha2 has been bundled and is available at\n\nhttp://developer.postgresql.org/~petere/alpha/\n\nPlease check that it is sane. I have also put a draft announcement at\nthe same place.\n\nIf there are no concerns, I will move them to the FTP site tomorrow\n(Sunday) and send out announcements ...
[ { "msg_contents": "Hi,\n\nIn the road to the extension patch, we already found some parts that\nhave to be separated into their own patch. Here's another one. It\noccurred to me while implementing the pg_extension_objects() SRF that if\nwe can list all objects that belong to an extension, certainly we also\nare...
[ { "msg_contents": "A few days ago I added a regression test that involves a plpgsql\nfunction calling a sql function, which recurses back to the plpgsql\nfunction, etc, to a depth of 10 cycles (ie 10 plpgsql function calls\nand 10 sql function calls). There are three buildfarm members that\nare failing with \"...
[ { "msg_contents": "Dear Greg,\n\nHow are you?\n\nAs we talked last week, there is a bug about the \"origslot\" field\nassertion.\n\nTRAP: FailedAssertion(\"!(epqstate->origslot != ((void *)0))\", File:\n\"execMain.c\", Line: 1732)\n\n\nI checked my codes and found the reason of this problem. In the original\npr...
[ { "msg_contents": "Here's a big patch to avoid passing around type OID + typmod (+\ncollation) separately all over the place. Instead, there is a new\nstruct TypeInfo that contains these fields, and only a pointer is passed\naround.\n\nSome stuff in here (or not in here) is probably a matter of taste, as\nwith...
[ { "msg_contents": "Last week we got this report from Matt Chesler: \nhttp://archives.postgresql.org/pgsql-admin/2010-10/msg00221.php that he \nwas getting errors when trying to do a simple binary replication test. \nThe problem is that what appears to be a perfectly good WAL segment \ndoesn't get streamed to ...
[ { "msg_contents": "Hi,\n\nWhile looking at binary COPY performance I forgot to add BINARY and was a bit \nshocked to see printf that high in the profile...\n\nSetup:\n\nCREATE TABLE convtest AS SELECT a.i ai, b.i bi, a.i*b.i aibi, (a.i*b.i)::text \naibit FROM generate_series(1,1000) a(i), generate_series(1, 100...
[ { "msg_contents": "There are some \"== true\" in the codes, but they might not be safe\nbecause all non-zero values are true in C. Is it worth cleaning up them?\n\nsrc/backend/access/gin/ginget.c(1364):#define GinIsVoidRes(s)\t\t(\n((GinScanOpaque) scan->opaque)->isVoidRes == true )\nsrc/backend/access/gist/gis...
[ { "msg_contents": "I compiled the source with mingw gcc 4.5.0, that has been released recently.\nThe compile was succeeded and worked well at least for simple queries,\nbut there were many warnings during the compile.\n----\n1. warning: '<symbol>' redeclared without dllimport attribute:\nprevious dllimport igno...
[ { "msg_contents": ">Hmm. I am reminded of Knuth's famous dictum: \"never generate random\nnumbers with a method chosen at random\". Is there any actual theory\nbehind that algorithm, and if so what is it? The combination of\nshifting with addition (not xor) seems more likely to lead to weird\ncancellations t...
[ { "msg_contents": "I wonder why SortState is a ScanState. As far as I know ScanState\nmeans the node may need projection and/or qualification, or it scans\nsome relation, but Sort actually doesn't do such things. I also tried\nto modify SortState as PlanState as in the attached patch and\nregression test passed...
[ { "msg_contents": "Now that we have MergeAppend in place, it strikes me that the current\nsupport for implementing MIN() and MAX() via indexscan+LIMIT subplans\ncould be generalized to work on inheritance trees: a MergeAppend\nplan plus LIMIT would just about do it.\n\nHowever, extending the existing implementa...
[ { "msg_contents": "Hello,\n\nI think that I want to get indulged in development. Have gone through the\ncode a bit, Unable to understand so might need some help over there. I hope\nI will recieve help.\n\nWhat version should I start from? I guess postgresql 9.1 alpha would be\ngood.\n\nPlease suggest some other...
[ { "msg_contents": "I have worked on some improvements on how we handle recursive make in\nour makefiles. Most places uses for loops, which has some\ndisadvantages: parallel make doesn't work across directories, make -k\ndoesn't work, and make -q doesn't work. Instead, I went with the\napproach that we already...
[ { "msg_contents": "Bootstrap WAL to begin at segment logid=0 logseg=1 (000000010000000000000001)\nrather than 0/0, so that we can safely use 0/0 as an invalid value. This is a\nmore future-proof fix for the corner-case bug in streaming replication that\nwas fixed yesterday. We had a similar corner-case bug with...
[ { "msg_contents": "We have the rm_safe_restartpoint mechanism to ensure that we don't use a \ncheckpoint that splits a multi-level B-tree insertion as a restart \npoint. But to my surprise, we don't have anything to protect against the \nanalogous case during normal operation. This is possible:\n\n1. Split chil...
[ { "msg_contents": "Hi,\n\nAfter 9.0 release, I've often heard that some people want to know\nhow far transactions have been replayed in the standby in timestamp\nrather than LSN. So I'm thinking to include the function which returns\nthe timestamp of the last applied transaction (i.e., commit/abort WAL\nrecord)...
[ { "msg_contents": "Alexandre Riveira escreveu:\n> I've achieved some success in changing collate operating system (linux)\n> to generate sort of way of Brazil Portuguese hopes by adding the\n> following code in LC_COLLATE\n> \nThis was already discussed; search the archives [1] [2].\n\n> So far, I understood th...
[ { "msg_contents": "I'm working on propagating ALTER TYPE commands to typed tables. This is\ncurrently prohibited. For example, take these regression test cases:\n\nCREATE TYPE test_type2 AS (a int, b text);\nCREATE TABLE test_tbl2 OF test_type2;\nALTER TYPE test_type2 ADD ATTRIBUTE c text; -- fails\nALTER TYP...
[ { "msg_contents": "Sorry, I messed up and emailed this only to Dimitri.\n\n\n--- Begin forwarded message from Alvaro Herrera ---\nFrom: Alvaro Herrera <alvherre@commandprompt.com>\nTo: Dimitri Fontaine <dimitri@2ndquadrant.fr>\nDate: Wed, 03 Nov 2010 14:13:58 -0300\nSubject: Re: [HACKERS] ALTER OBJECT any_name ...
[ { "msg_contents": "Hi SQL/MED developers,\n\nOur company has just finished development of a database extension for \nInformix that provides tabular access to various types of structured \nfiles (NetCDF and HDF5, with more types to come). We would like to \nport this logic to run on PostgreSQL, since many of our...
[ { "msg_contents": "Hackers,\n\nSeg contrib module contains the same bug in picksplit function as cube\ncontrib module.\nAlso, Guttman's split algorithm is not needed in unidimensional case,\nbecause sorting based algorithm is good in this case. I propose the patch\nwhich replace current picksplit implementation...
[ { "msg_contents": "I read a few things about development in the open source area on different\nwebsites, had a talk with a few friends and thought that I cannot work on\nthe development branch of postgres right now.\n\nSo I have this one single question:\n\nWould I be able to get the answers if I asked question...
[ { "msg_contents": "Hi all,\n\nWould it be possible (or reasonable) to add support for changing the type of\na column to serial or bigserial (yes, yes, I know they're not actual\ntypes)? In effect this would mean that users who forgot to set up a\nsequence could change it's type so that a new implicit sequence ...
[ { "msg_contents": "The attached patch is a contrib module to inject a few seconds\ndelay on authentication failed. It is also a proof of the concept\nusing the new ClientAuthentication_hook.\n\nThis module provides a similar feature to pam_faildelay on\noperating systems. Injection of a few seconds delay on\nau...
[ { "msg_contents": "Hello\n\nI am looking on http://kputnam.github.com/piggly/ site. I am thinking,\nso can be very easy write low level support to plpgsql. And this can\nto solve a some issue of plpgsql with lazy SQL full checking.\n\nA raising syntax error of some SQL inside plpgsql after a months of\nproducti...
[ { "msg_contents": "Hello List,\n\nIs there any reason why Postgres should not support an \"ALTER TABLE\ntablename [IF EXISTS]\" feature? (And similar for other ALTER\nOBJECTTYPE)\n\nFor example, a hypothetical statement that attempts to drop a\nconstraint in a *completely* optional manner would look like the\nf...
[ { "msg_contents": "Hi list,\n\nPostgreSQL's default settings change when built with Linux kernel\nheaders 2.6.33 or newer. As discussed on the pgsql-performance list,\nthis causes a significant performance regression:\nhttp://archives.postgresql.org/pgsql-performance/2010-10/msg00602.php\n\nNB! I am not proposi...
[ { "msg_contents": "Is there any way to have the database tell you if a particular SQL function can be inlined?\n--\nJim C. Nasby, Database Architect jim@nasby.net\n512.569.9461 (cell) http://jim.nasby.net\n\n\n", "msg_date": "Fri, 5 Nov 2010 13:24:02 -0500", "ms...