threads
listlengths
1
2.99k
[ { "msg_contents": "> None of this seems material, however. It's pretty clear that \n> the problem was exhaustion of the Windows page pool. Our \n> Windows experts have reconfigured the machine (which had been \n> tuned for Sybase ASE). Their changes have boosted the page \n> pool from 20,000 entries to 180,0...
[ { "msg_contents": "One of the major complaints is always \"Select count(*) is slow\".\n\nI have a somewhat broadbrush idea as to how we might do this (for larger\ntables). \n\nPreviously, we've said that maintaining a running count of the tuples in\na table is hard, or at least costly. However, maintaining a pa...
[ { "msg_contents": "There weren't a large number of connections -- it seemed to be\nthat the one big update query, by itself, would do this. It seemed\nto get through a lot of rows before failing. This table is normally\n\"insert only\" -- so it would likely be getting most or all of the space\nfor inserting t...
[ { "msg_contents": "A couple clarifications:\n\nThere were only a few network sockets open.\n\nI'm told that the eventlog was reviewed for any events which\nmgiht be related to the failures before it was cleared. They\nfound none, so that makes it fairly certain there was no 2020\nevent.\n\n-Kevin\n\n\n>>> \"Ke...
[ { "msg_contents": "In Sybase ASE (and I'm pretty sure the same is true in Microsoft SQL\nServer) the leaf level of the narrowest index on the table is scanned,\nfollowing a linked list of leaf pages. Leaf pages can be pretty dense\nunder Sybase, because they do use prefix compression. A count(*)\non a table w...
[ { "msg_contents": "> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-\n> owner@postgresql.org] On Behalf Of Tom Lane\n> Sent: Thursday, November 17, 2005 4:17 PM\n> To: Simon Riggs\n> Cc: Kevin Grittner; pgsql-hackers@postgresql.org\n> Subject: Re: [HACKERS] Improvin...
[ { "msg_contents": "I think plperl should be fixed to translate undef to NULL when returning\nan array, but currently it translates to an empty string:\n\npl_regression=# CREATE OR REPLACE function returns_array() returns text[] as $$\npl_regression$# return ['a,b','c\"d',undef,'e-f']; $$ LANGUAGE plperl;\nCREAT...
[ { "msg_contents": "\nThe following bug has been logged online:\n\nBug reference: 2052\nLogged by: Ferindo Middleton\nEmail address: fmiddleton@verizon.net\nPostgreSQL version: 8.0.4\nOperating system: Windows 2000\nDescription: Federal Agency Tech Hub Refuses to Accept Postgresql on\...
[ { "msg_contents": "Hello,\n\nIt appears that predicate indexes won't uses indexes on int8 columns \nunless they are casted:\n\ntest=# select count(*) from test_key ;\n count\n--------\n 120617\n(1 row)\n\n\ntest=# alter table test_key ALTER column id set statistics 25;\nALTER TABLE\ntest=# analyze test_key ;\nt...
[ { "msg_contents": " From a 7.4 dump:\n\ndecibel@fritz.2[23:08]~:90>grep search_path fritz-20051106.sql\nALTER USER decibel SET search_path TO 'decibel, rrs, rrd, page_log, public';\n\nTrying that command in psql...\n\ndecibel=# ALTER USER decibel SET search_path TO 'decibel, rrs, rrd,\npage_log, public';\nNOTIC...
[ { "msg_contents": "Hello,\n\nI want to create a trigger in PostgresSQL\n\nIn trigger, Before inserting the record, if data is already in the table,\nthe trigger fire the mesaage that data is already there, and after that\ntrigger ckeck for next insert statement.\n\nPleae help me in this regard , kindly reply.\...
[ { "msg_contents": "\n> > The instant someone touches a block it would no longer be marked as \n> > frozen (vacuum or analyze or other is not required) and count(*)\nwould \n> > visit the tuples in the block making the correct decision at that\ntime.\n> \n> Hmm, so the idea would be that if a block no longer con...
[ { "msg_contents": "\n> Unless you have a table lock, INSERT has to be before UPDATE, think\nUPDATE, UPDATE (both fail), INSERT, INSERT.\n\n> > update\n> > if no rows updated\n> > insert\n> > if duplicate key\n> > update\n> > if no rows updated goto insert\n\nThat is why you have the loop. This is no...
[ { "msg_contents": "\n> > Since that costs, I guess I would make it optional and combine it\nwith \n> > materialized views that are automatically used at runtime, and can\nat \n> > the same time answer other aggregates or aggregates for groups.\n> > create materialized view xx_agg enable query rewrite as select ...
[ { "msg_contents": "Hi,\n\nI have database with two tables:\n\ntest1=# \\d messages\n Table \"public.messages\"\n Column | Type | Modifiers\n----------+-----------+-----------\n msg_id | integer | not null\n sections | integer[] |\nIndexes:\n \"messages_pkey\" PRIMARY KEY, btree (msg_id)\n \...
[ { "msg_contents": "> In Sybase ASE (and I'm pretty sure the same is true in Microsoft SQL\n> Server) the leaf level of the narrowest index on the table is scanned,\n> following a linked list of leaf pages. Leaf pages can be pretty dense\n> under Sybase, because they do use prefix compression. A count(*)\n> on...
[ { "msg_contents": "That sounds very much like a CLUSTERED INDEX under Sybase ASE\n(or the derivative Microsoft SQL Server). In those products, when you\ncreate a clustered index, the data pages are sorted according to the\nindex sequence, and are used as the leaf pages in the index. A\nclustered index does no...
[ { "msg_contents": "Hi folks\n\nI have all operators required for b-tree, gist up here, and gist \nindex defined. But still \"order by custom_type\" won't work.\nI have kind of wild card masks in my type definition, so b-tree won't \nwork. But still, do I need to define b-tree index as such for \"order \nby\"...
[ { "msg_contents": "Hello\n\nMeybe is time for some changes. Maybe. I haven't courage for it. But maybe \nis good time for discussion. What I miss in protocol?\n\n1. debug. support + other level for elog. Current elog is too heavy \n(sometimes)\n2. multi result sets. This is necessery for support procedures in ...
[ { "msg_contents": "I've been thinking about this and wondered if this is a way to get it\ndone without too much work.\n\n1. Create an \"anyrecord\" type to which any record type can be cast.\nIt's essentially a heaptuple with a tupledesc.\n\n2. \"anyrecord\" is opaque to the parser, you cannot dereference it, o...
[ { "msg_contents": "I looked into this 8.1 bug reported by Alexey Beschiokov:\nhttp://archives.postgresql.org/pgsql-bugs/2005-11/msg00192.php\nThe executive summary is: it looks like a kluge solution isn't hard,\nbut solving it in a more reasonable fashion is going to require some\nsignificant API changes inside...
[ { "msg_contents": "\n\nIn dbcommands.c::dropdb() there are these lines:\n\n /* Close pg_database, but keep exclusive lock till commit */\n heap_close(pgdbrel, NoLock);\n\nHowever, ISTM that if I return early from that function because the db \ndoesn't exist I should release the lock immediately. Or is the...
[ { "msg_contents": "Hi,\n\nI've been thinking about running postgres from read-only media. It's \nhandy for creating demo CDs etc. I hacked together a patch that allows \nyou to run Postgres without write permissions to the data directory.\n\nSome changes are needed:\n\n1. Force all transactions to be read-only,...
[ { "msg_contents": "I've noticed that if a client uses PQexecParams, the query plan\nappears to be identical to the plan chosen for PQprepare/PQexecPrepared,\nwhich might not be as optimal as a plan chosen for PQexec. I can\nunderstand the PQprepare case since the planner doesn't know what\nparameters will actu...
[ { "msg_contents": "> > On Sun, Nov 20, 2005 at 11:29:39AM -0500, Tom Lane wrote:\n> >> That only works if the caller is prepared to read each result \n> >> serially, and not (say) a row at a time in parallel.\n> \n> > Urk! I don't think anyone is suggesting that resultsets can be \n> > interleaved.\n> \n> No? ...
[ { "msg_contents": "Hi\n\nIt seems that plpython is unable to return bytea string when it contains\nNUL bytes:\n\nhannu=# CREATE OR REPLACE FUNCTION get_bytea_with_nul() RETURNS bytea AS\n'\nreturn ''aa\\\\0bb''\n' LANGUAGE plpythonu SECURITY DEFINER;\n\nhannu=# select get_bytea_with_nul();\n get_bytea_with_nul\...
[ { "msg_contents": "here's a patch for \"drop database if exists\". Barring objections I will \napply it in a day or two.\n\ncheers\n\nandrew", "msg_date": "Mon, 21 Nov 2005 09:20:36 -0500", "msg_from": "Andrew Dunstan <andrew@dunslane.net>", "msg_from_op": true, "msg_subject": "drop database if ...
[ { "msg_contents": "I see Alvaro and Andrew have landed the patches they were working on\nlast week, so maybe today is a good time to do that re-pgindent we\nwere discussing.\n\n\t\t\tregards, tom lane\n", "msg_date": "Mon, 21 Nov 2005 09:40:21 -0500", "msg_from": "Tom Lane <tgl@sss.pgh.pa.us>", "msg...
[ { "msg_contents": "Hi folks\n\nmy conquers with Gist index for custom type are nearly finished. It \nis working as it is now, but there are few problems here and there.\nOne of em, being amount of disc space index it self takes. The type \nstucture it self takes 160bytes. Adding 100.000 rows into table - \nC...
[ { "msg_contents": "I apologise if this isn't the correct list to post this issue to, I just \nwanted to give a heads up that the main postgresql.org website doesn't \nseem to be giving access to any ftp mirrors. Needless to say, when I \ntried to download what I was after from the main server, I just got a \n'...
[ { "msg_contents": "I wonder if this idea might be taken a little further, to allow\nread-only tablespaces?\n\nThis would allow old partitions in very large databases to be kept on\nread-only media, and would allow normal backups to ignore this\nunchanging set of data.\n\nIt also allows for certain specific opti...
[ { "msg_contents": "I've been running 8.1.0 on a test box since the FreeBSD port has been \navailable, and it appears that the catalog has become corrupted. \nThere's plenty of free space on all volumes, so it hasn't run out of \nspace or anything.\n\n$ uname -a\nFreeBSD shi.mochibot.com 6.0-RELEASE FreeBSD ...
[ { "msg_contents": "Are NULLs in Arrays compressed?\n\nJust as NULLs are with normal unary datatypes.\n\nThanks,\n\nBest Regards, Simon Riggs\n\n", "msg_date": "Mon, 21 Nov 2005 20:51:32 +0000", "msg_from": "Simon Riggs <simon@2ndquadrant.com>", "msg_from_op": true, "msg_subject": "Are NULLs in A...
[ { "msg_contents": "It would certainly seem so on AIX.\n\nIn tracking down why postgres 8.x would segfault on AIX 5.3, it became\napparent to me that libreadline.a is a problematic library to link\nagainst and that libedit.a is preferable (and for reasons other than\nthat readline is GPL while postgres is BSD-li...
[ { "msg_contents": "If you've ever loaded 100 million rows, you'll know just how annoying it\nis to find that you have a duplicate row somewhere in there. Experience\nshows that there is always one, whatever oath the analyst swears\nbeforehand.\n\nIt's hard to find out which row is the duplicate, plus you've jus...
[ { "msg_contents": "While replying to the \"Improving count(*)\" thread, the following occured\nto me:\n\nVacuuming a table is only useful if we're nearing xid-wrap or if new\ntuples are being created in the table. One way to detect the later case\nis to monitor how many pages that table has in the FSM. Of cours...
[ { "msg_contents": "In two of the sections covered by #ifdef WAL_DEBUG there are \ndeclarations like:\n\nchar buf[8192];\n\nIt seems to me that these should be:\n\nchar buf[BLCKSZ];\n\n- or have I misunderstood what is going on here?\n\nI realize that it's probably not terribly significant, as most...
[ { "msg_contents": "Something is wrong with the web site for me. I look at:\n\n http://www.postgresql.org/developer/\n\nthen this is what I see:\n\n http://www.zigo.dhs.org/~dennis/tmp/dev.png\n\n(everything is there except the main content that is not).\n\nTurns out it's related to the ads, so if I just adblo...
[ { "msg_contents": "[moved to -www]\n\n\n> Something is wrong with the web site for me. I look at:\n> \n> http://www.postgresql.org/developer/\n> \n> then this is what I see:\n> \n> http://www.zigo.dhs.org/~dennis/tmp/dev.png\n> \n> (everything is there except the main content that is not).\n\nYikes.\n\n\n> ...
[ { "msg_contents": "\n> With AIX 5, the easiest way to get a shared object is to pass\n\"-bexpall\"\n> to the linker. This results in all symbols being exported.\n\nYes, that is another reason not to use this broken switch.\nAnd last time I checked (AIX 4.3.3), -bexpall did not export all needed\nsymbols\n(e.g. ...
[ { "msg_contents": "Just out of curiosity. Is there someone involved with ToDo item �%Allow\npg_hba.conf settings to be controlled via SQL�?\n\nRegards,\nGevik.\n\n\n", "msg_date": "Tue, 22 Nov 2005 10:57:19 +0100 (CET)", "msg_from": "gevik@xs4all.nl", "msg_from_op": true, "msg_subject": "TOD...
[ { "msg_contents": "I've noticed that in 8.1 the output of SHOW ALL includes a description\ncolumn. This makes the output very wide which makes it hard to use from\npsql (I need to make the terminal window 164 characters wide to not get\nany line wrapping). I wish I would have noticed this before 8.0 was out \na...
[ { "msg_contents": "I have update the first section of the FAQ:\n\n\thttp://www.postgresql.org/docs/faqs.FAQ.html\n\nIn particular:\n\n\to reordered items to be more logical\n\to added clarification of license\n\to added section about bug reporting replies\n\to added section of feature requests\n\n-- \n Bru...
[ { "msg_contents": "Here are some little changes to the postgreSQL server backend I found \nbeeing convenient for me\nwhile I was attempting to get interoparability with a binary only \nprogram. The patch attached is tested and works\nfor 8.0.0beta3.\nThe so called big ones under these DBMS eat the following kin...
[ { "msg_contents": "Since we were breaking our usual rule by re-indenting the 8.1 branch,\nI took the time to eyeball the whole \"cvs diff\" for changes that weren't\njust comment block fixes. I found a few things that need attention.\n\nThis change is disturbing first because it seems completely unnecessary,\n...
[ { "msg_contents": "\nAnother vote for libedit support... We at Greenplum definitely want to\nuse it.\n\n\n", "msg_date": "Tue, 22 Nov 2005 19:46:01 -0500", "msg_from": "\"Chuck McDevitt\" <cmcdevitt@greenplum.com>", "msg_from_op": true, "msg_subject": "Re: [PATCHES] Should libedit be preferred t...
[ { "msg_contents": "Hackers,\n\nIs anybody opposed to having PL/php in pg_pltemplate in the 8.1 branch?\nIf not, I will add it on monday. (I plan to add it to 8.2 at the same\ntime.)\n\n-- \nAlvaro Herrera http://www.advogato.org/person/alvherre\n\"Always assume the user will do much wors...
[ { "msg_contents": "Hi.\n\nIn the course of porting a database from Microsoft SQL Server to \nPostgreSQL I have rewritten a few of the date and string functions in \npl/pgSQL. Started with just datepart, datediff and soundex, but once \nstarted I continued and rewrote all date/time and string functions \nsupport...
[ { "msg_contents": "If this gets added as a contrib, here's a version of uniqueidentifier\nand newid() I wrote that maintains the same format as the SQL Server\nversion:\n\nCREATE SCHEMA sqlserver\n AUTHORIZATION postgres;\nGRANT ALL ON SCHEMA sqlserver TO public;\n\nCREATE SEQUENCE sqlserver.uniqueidentifier0\...
[ { "msg_contents": "Teodor Sigaev <teodor@sigaev.ru> writes:\n> Attached dump cause core on 8.1 release and works fine on REL8_1_STABLE and HEAD.\n> Am I missed some fixes/commits?\n\nIn HEAD I get\n\n\\i tsearch2.sql\n...\n\\i ltree.sql\n...\n\\i tsearch2_crash.dump\nCREATE TABLE\nALTER TABLE\npsql:tsearch2_cra...
[ { "msg_contents": "\nI just setup a test 8.1 server, to see how things work as far as the new \nroles system is concerned, as it relates to migrating from 8.0->8.1 ... \nspecifically since there doesn't appear to be anything in HISTORY \nconcerning migrating up to 8.1 from 8.0 concerning this ...\n\nAs expected...
[ { "msg_contents": "I've been trying to be better at documentation in general and have \nbeen trying to take advantage of PostgreSQL's COMMENT ON \nfunctionality to provide a little more information in the DDL itself. \nI usually write my DDL in a text file and load it into the database \nusing psql. To make...
[ { "msg_contents": "I often get private requests from users for answers to questions. \nInstead of replying with the answer, I send this reply, which I keep in\na file that can be easily included in an email message. The only\nreplies I have gotten to it are thanks (no complaints). Feel free to\nuse this idea ...
[ { "msg_contents": "> > All known CVE problems are resolved in 8.0.4.\n> \n> I was unaware of this. I've looked at the release notes and \n> searched the archives, but this doesn't seem to be mentioned \n> by CVE number. (The vulnerabilities and their resolutions are \n> described, just without direct cross refe...
[ { "msg_contents": "How come these give slightly different results?\n\ntest=# SELECT POW(2,-2);\n pow\n------\n 0.25\n(1 row)\n\ntest=# SELECT POWER(2,-2);\n power\n-------\n 0.25\n(1 row)\n\n\n(Note width of result field.)\n\nChris\n", "msg_date": "Thu, 24 Nov 2005 20:00:21 +0800", "msg_from": "Chr...
[ { "msg_contents": "Hi,\n\nI notice we added CEILING() as an alias to CEIL() for compatibility. We \nalso have POWER() for POW().\n\nI notice that MySQL uses TRUNCATE() and we only have TRUNC(). Is \nTRUNCATE actually spec compliant? Should we add TRUNCATE anyway for \nconsistency and compatibility?\n\nChris\...
[ { "msg_contents": "When we're having an alias discussion, I'd really like to see NVL in \npostgres. Not because of porting from oracle as much as just spelling \nthat without the reference manual is completely impossible.\n\nBest regards,\nMarcus\n\n", "msg_date": "Thu, 24 Nov 2005 13:21:21 +0100", "msg...
[ { "msg_contents": "If you're referring to my procedure for newid(), then it was just\nbecause of pure laziness; it was an internal proof of concept project,\nand I was still concentrating on getting it working.\n\nMike Pollard\nSUPRA Server SQL Engineering and Support\nCincom Systems, Inc.\n--------------------...
[ { "msg_contents": "\nI did some gprof on a simple \"SELECT COUNT(*) FROM test\" query on cvs tip.\n\nLinux josh.db 2.4.29-1 #2 Tue Jan 25 17:03:33 EST 2005 i686 unknown\ngcc: 2.96\ngprof: 2.13.90.0.2\n./configure --without-readline\n\nThere are 260k or so records in table test(i int), about 1500 pages. I\ngive ...
[ { "msg_contents": "Hello:\n\n\nI am attempting to override the default installation directory that the \npostgres MSI uses. I'm not familiar with MSI, but from what I've read I \ncan specify properties on the command line to change properties in the \ninstaller? I've tried a variety of properties from looking a...
[ { "msg_contents": "Hi guys,\n\nDoes anyone know how I'd go about implementing the following MySQL \noperator in PostgreSQL?\n\n---\n\nNULL-safe equal. This operator performs an equality comparison like the \n= operator, but returns 1 rather than NULL if both operands are NULL, \nand 0 rather than NULL if one o...
[ { "msg_contents": " \nHello there,\n\nI have included the ipv6 auth. line in my pg_hba.conf file(::1/128)\nI keep getting error msgs from postmaster everytime I try to\nconnect.\n\nGoing by previous posts on the topic am unable to conclude.\nDoes this mean pg 8.0.3 doesn't support ipv6 client auth. ??\nOr is th...
[ { "msg_contents": " \n\n\nHello there,\n\nI have included the ipv6 auth. line in my pg_hba.conf file(::1/128) I\nkeep getting error msgs from postmaster everytime I try to connect.\n\nGoing by previous posts on the topic am unable to conclude.\nDoes this mean pg 8.0.3 doesn't support ipv6 client auth. ??\nOr is...
[ { "msg_contents": " \nHello there,\n\nI run Postgresql 8.0.3 on Tru64 Unix m/c.\n\nI have included the ipv6 auth. line in my pg_hba.conf file(::1/128) I\nkeep getting error msgs from postmaster everytime I try to connect.\n\nGoing by previous posts on the topic am unable to conclude.\nDoes this mean pg 8.0.3 do...
[ { "msg_contents": "> I am attempting to override the default installation \n> directory that the postgres MSI uses. I'm not familiar with \n> MSI, but from what I've read I can specify properties on the \n> command line to change properties in the installer? I've \n> tried a variety of properties from looking a...
[ { "msg_contents": "What is \"ISTM\"?\n\nSorry,\nGustavo.\n\nWhat is \"ISTM\"?\n\nSorry,\nGustavo.", "msg_date": "Fri, 25 Nov 2005 15:24:10 -0300", "msg_from": "Gustavo Tonini <gustavotonini@gmail.com>", "msg_from_op": true, "msg_subject": "Doubt" }, { "msg_contents": "On Fri, 2005-11-25 ...
[ { "msg_contents": "> > It seems like we need a much clearer resource for security \n> admins to \n> > check our compliance levels. This could be a source of similar \n> > refusal-to-implement PostgreSQL at other installations, so could \n> > almost be regarded as an advocacy issue. Other software \n> projects h...
[ { "msg_contents": "> > We really should write the CVE numbers into the commit messages and \n> > the release notes.\n> \n> I think that would be good.\n\nThat requires the CVE number to be available at the time of commit. Not\nsure if it'll always be. But if it is, it's certainly a good idea to put\nit in.\n\n>...
[ { "msg_contents": "It Seems To Me.\n\n \n\nHere's a decent list of common acronyms:\n\n \n\nhttp://www.fun-with-words.com/acronyms.html\n\n \n\nMike Pollard\n\nSUPRA Server SQL Engineering and Support\n\nCincom Systems, Inc.\n\n--------------------------------\n\n Better to remain silent and be thought a fool t...
[ { "msg_contents": "> > > > We really should write the CVE numbers into the commit messages \n> > > > and the release notes.\n> > > \n> > > I think that would be good.\n> > \n> > That requires the CVE number to be available at the time of commit. \n> > Not sure if it'll always be. But if it is, it's certainly a ...
[ { "msg_contents": "\n-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\n\nNot sure if this is the right place, but win32-hackers seems to be dead.\n\nI recently had a chance to install PostgreSQL on Windows, and wanted to\nshare my comments on the experience in the hope of making things better.\nOverall I was ve...
[ { "msg_contents": "\nOn Sunday evening, at approximately 8pm AST, the main developer vServer \nwill be going down in order to do several upgrades.\n\nWe anticipate the maintenance to take several hours, and will post an \nannouncement as soon as everything is back up and running ...\n\n----\nMarc G. Fournier ...
[ { "msg_contents": "Related TODO paragraph:\n «Prevent PQfnumber() from lowercasing unquoted the column name.\n PQfnumber() should never have been doing lowercasing, but historically\n it has so we need a way to prevent it.»\n\n\nPQfnumber() Fix Proposal\n------------------------\nIn the current version of ...
[ { "msg_contents": "> Not sure if this is the right place, but win32-hackers seems \n> to be dead.\n\nYeah, it's been discontinued.\n\n\n> I recently had a chance to install PostgreSQL on Windows, and \n> wanted to share my comments on the experience in the hope of \n> making things better.\n> Overall I was very...
[ { "msg_contents": "Is Wez of the PHP project correct here in that you can't find parameter \ntypes of statements via libpq?\n\nChris\n\n-------- Original Message --------\nSubject: [PHP-CVS] cvs: php-src(PHP_5_1) /ext/pdo_pgsql package.xml \npgsql_driver.c pgsql_statement.c php_pdo_pgsql_int.h\nDate: Fri, 25 No...
[ { "msg_contents": "What's going on here? Some sort of integer wraparound?\n\nWORKS\n=====\n\nmysql=# select interval '2378 seconds';\n interval\n----------\n 00:39:38\n(1 row)\n\nmysql=#\nmysql=# select 2378 * interval '1 second';\n ?column?\n----------\n 00:39:38\n(1 row)\n\nDOESN'T WORK\n============\n\n...
[ { "msg_contents": "Since we just discussed using a multi-row per buffer lock technique with\nSeq Scans, it seems appropriate to discuss a similar technique with COPY\nFROM that I had been mulling over.\n\nCOPY FROM can read in sufficient rows until it has a whole block worth\nof data, then get a new block and w...
[ { "msg_contents": "Is there a built-in way to look for NULL array elements? I was\nthinking of something like NULL IS DISTINCT FROM ALL (array expression)\nbut that doesn't work:\n\ntest=> SELECT NULL IS DISTINCT FROM ALL (ARRAY[1, 2, 3]);\nERROR: syntax error at or near \"ALL\" at character 30\nLINE 1: SELEC...
[ { "msg_contents": "I've a problem that might be a bug in the core system (hashjoins) or with ltree using gist-index, but I fail miserable to produce a useful testcase (using 8.1, worked in 8.0):\n\nA query produces wrong (=0) results, when a different plan is enforced, I get a merge-join plan that looks similar...
[ { "msg_contents": "Hi,\n\nIs there something weird going on with the lists?\n\nI ask because lately there has been spam showing up rather frequently,\nsomething that happenned only very ocassionally. Has there been a\nchange from human moderation to robotical approval of messages?\n\nAlso, my last auto-mails t...
[ { "msg_contents": "I am interested in a following item in TODO.\n\no Allow an alias to be provided for the target table in\n UPDATE/DELETE\n This is not SQL-spec but many DBMSs allow it.\n\nI think that this functionality is useful for the migration from\nother RDBMS. However the SQL92 spec does not allow an ...
[ { "msg_contents": " \nPLZ REPLY\n\nHello there,\n\nI run Postgresql 8.0.3 on Tru64 Unix m/c.\n\nI have included the ipv6 auth. line in my pg_hba.conf file(::1/128) I\nkeep getting error msgs from postmaster everytime I try to connect.\n\nGoing by previous posts on the topic am unable to conclude.\nDoes this mea...
[ { "msg_contents": "G'day folks.\n\nWe have a production database running 8.0.3 which gets fully \npg_dump'd and vacuum analyze'd hourly by cron. Something strange \nhappened to us on the 5AM Friday Nov. 25'th cron run -- the:\n\n\t/usr/local/pgsql/bin/vacuumdb -U postgres --all --analyze --verbose \n >& $DAT...
[ { "msg_contents": "Yes. This is from a 8.0.3 (with slightly older and different data,\nresulting in only 9 rows, but the rest is the same):\n\n Index Scan using ben_uk3 on foo1 ben (cost=0.00..73867.23 rows=863\nwidth=27) (actual time=38.591..501.839 rows=9 loops=1)\n Filter: (subplan)\n SubPlan\n -> ...
[ { "msg_contents": "Any problems with CVS or anonymous CVS since the work last evening?\nAnonymous CVS hasn't given me the following commit yet; it's been\nalmost twelve hours since it was made:\n\nhttp://archives.postgresql.org/pgsql-committers/2005-11/msg00553.php\n\n-- \nMichael Fuhr\n", "msg_date": "Mon,...
[ { "msg_contents": "Thanks Tom for you quick answer!\n\nNo, I'm using 8.1.0, and tried it on different machines, always the same results.\n\nSELECT version();\nPostgreSQL 8.1.0 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.4 20040623 (Gentoo Hardened Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)\n\nBest regards,...
[ { "msg_contents": "Hello Tom,\n\nThanks for the quick response, I've tried the patch, but it did not work\nas expected. When I set enable_hashjoin to off, everything works as\nexpected, but with hashjoin on I do not even get results anymore, CPU is\ngoing up to 100% and after 3 minutes I cancelled the query (it...
[ { "msg_contents": "If the query runs slow it will be not such a problem, but I was very concerned about other queries having this problem too - without knowing it. I've already rewritten the query to use IN instead of exists.\n\nI'll compile again and try it again.\n\nThanks alot!\n\nBest regards,\nMario Weilgu...
[ { "msg_contents": "With the applied patch that checks an entire heap page with one lock, is\nthere any advantage of considering this for index pages?\n\n-- \n Bruce Momjian | http://candle.pha.pa.us\n pgman@candle.pha.pa.us | (610) 359-1001\n + If your life is a hard d...
[ { "msg_contents": "\nI am considering add an \"ice-broker scan thread\" to accelerate PostgreSQL\nsequential scan IO speed. The basic idea of this thread is just like the\n\"read-ahead\" method, but the difference is this one does not read the data\ninto shared buffer pool directly, instead, it reads the data i...
[ { "msg_contents": "\n> > OTOH DB2 and SQLServer take block level \n> > read locks, so they can do this too, but at major loss of\nconcurrency\n> > and threat of deadlock.\n\nNote, that in the usual committed read isolation, they do not need to \nread lock a row ! e.g. Informix only verifies, that it could lock ...
[ { "msg_contents": "Hello Tom,\n\nI tried both patches on a different machine (but had to take the patches from cvs diff, cut'n paste from the mail-program did not work). Up until now, they work like a charm, correct results and fast. I will try on the other machine that failed yesterday in the afternoon, maybe ...
[ { "msg_contents": ">> > OTOH DB2 and SQLServer take block level \n>> > read locks, so they can do this too, but at major loss of\n>concurrency\n>> > and threat of deadlock.\n>\n>Note, that in the usual committed read isolation, they do not need to \n>read lock a row ! e.g. Informix only verifies, that it could ...
[ { "msg_contents": "\n> DB2:\n> Uncommitted Read (UR) mode \"Dirty read\" isn't the default, or \n> the recommended lock level for most apps. I was considering \n> Cursor Stability mode (or higher), which is the default \n\nSorry, they call it \"read committed\" but actually do cursor stability,\nwhich does keep...
[ { "msg_contents": "First, we need a new term for a thread of execution, that could be a\nthread or could be a process, I don't care. When discussing anything\nthat is to run in parallel, the first thing that pops out of someones\nmouth is \"Don't you mean (thread/process)?\" But that's an\nimplementation deta...
[ { "msg_contents": "No, I only go x number of pages ahead of the user scan (where x is\ncurrently user defined, but it should be significantly smaller than your\nnumber of data buffers). I have found that reading about 16Mb ahead\ngives optimal performance, and on modern machines isn't all that much\nmemory. O...
[ { "msg_contents": "I just found this book online today:\n\n\thttp://producingoss.com/\n\nIt has the most detailed explaination I have ever read online about how\nto manage an open source project. I have ordered a printed copy to read\nin the next few months, but all the content is online.\n\nIf people find sec...
[ { "msg_contents": "Hi Tatsuo,\n\nAttached is a proposed patch that deals with a couple of pgbench issues.\n\nThe change at line 490 updates doCustom's local variable \"commands\"\nafter selecting a new file (command sequence). I think that the\nexisting coding will cause the thing to use the first command of t...
[ { "msg_contents": "Folks,\n\nWe're thinking of throwing a little conference next July. However, we \nneed to know *this week*, an estimate of how many people would come to the \nconference. \n\nSo, please fill out the survey at:\nhttp://thepostgresqlfoundation.org/survey/\n... as soon as you can. Thanks!\n...
[ { "msg_contents": "Hi guys,\n\nHow would I go about implementing MySQL's BIN() function easily in PL/SQL.\n\nmysql> SELECT BIN(12);\n -> '1100'\n\nBasically it converts a bigint to a string containing 1's and 0's.\n\nI've tried messing about with bit() types, but those types lack casts to \ntext, etc. ...