threads
listlengths
1
2.99k
[ { "msg_contents": "For the subfiles, load the top element of each subfile into a priority\nqueue. Extract the min element and write it to disk. If the next value\nis the same, then the queue does not need to be adjusted. If the next\nvalue in the subfile changes, then adjust it.\n\nThen, when the lowest elem...
[ { "msg_contents": "The cited book also explains how to use a callback function to perform\narbitrary radix sorts (you simply need a method that returns the\n[bucketsize] most significant bits for a given data type, for the length\nof the key).\n\nSo you can sort fairly arbitrary data in linear time (of course i...
[ { "msg_contents": "We have what may be a bug in beta2. We have two databases running beta2,\none on Linux and one on Windows. The hardware is identical. The\nconfigurate files are identical. They are being fed identical streams\nof data modifications (primarily inserts, very few deletes). We've been\nrunni...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org \n> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Lee, \n> Patricia S.\n> Sent: 23 September 2005 17:46\n> To: pgsql-hackers@postgresql.org; psql-novice@postgresql.org\n> Subject: [HACKERS] PgAdmin3 1.2.2...
[ { "msg_contents": "I sent this from the wrong address last time so it did not go to the list,\nI apologize to anyone who may be getting it again...\n\nOn Fri, 23 Sep 2005, Tom Lane wrote:\n\n> Jeremy Drake <pgsql@jdrake.com> writes:\n> > 2) The lo_*64, in order to be convenient from the client end, have\n> > fu...
[ { "msg_contents": "Generally, when you read from a set of subfiles, the OS will cache the\nreads to some degree, so the disk-seek jitter is not always that bad. On\na highly fragmented disk drive, you might also jump all over the place\nreading serially from a single subfile. Of course, every situation is\ndif...
[ { "msg_contents": "Following item in HISTORY:\n\n * Add support for 3 and 4-byte UTF8 characters (John Hansen)\n Previously only one and two-byte UTF8 characters were supported.\n This is particularly important for support for some Chinese\n characters.\n\nis wrong since 3-byte UTF-8 chara...
[ { "msg_contents": "From: Dann Corbit <DCorbit@connx.com>\nSent: Sep 23, 2005 5:38 PM\nSubject: RE: [HACKERS] [PERFORM] Releasing memory during External sorting?\n\n>_C Unleashed_ also explains how to use a callback function to perform\n>arbitrary radix sorts (you simply need a method that returns the\n>[buckets...
[ { "msg_contents": "I asked some gcc experts at Red Hat about the new variable-may-be-used-\nuninitialized warnings that gcc 4.x reports. These occur in cases\nlike\n\n\tint\ti, j;\n\t...\n\tfoo(&i, &j);\n\t// use i and j\n\nI had thought that gcc was being stricter about the possibility that the\ncalled functi...
[ { "msg_contents": "Hi,\n\nOn CVS tip, whenever I do \\x output, it dies with an internal error in\nglibc on free. If you run it under valgrind, it complains about these\nlines of code:\n\n700 { \n701 char *my_cell = pg_local_malloc(cell_w[i] + 1);\n702\n703 [Inv write 1 by...
[ { "msg_contents": "Per http://lnk.nu/developer.postgresql.org/43b.c:\n\n * The number of distinct relations tracked is limited by a configuration\n * variable (MaxFSMRelations). When this would be exceeded, we discard the\n * least recently used relation. A doubly-linked list with move-to-front\n * behavior k...
[ { "msg_contents": "I have a client with a database that contains 4000 relations according\nto vacuum verbose, and \\d in psql is painfully slow. In particular...\n\n -> Seq Scan on pg_class c (cost=0.00..2343.09 rows=6124 width=73) (actual time=0.325..22100.840 rows=16856 loops=1)\n Filter: (((relki...
[ { "msg_contents": "Would it be difficult to vacuum as part of a dump? The reasoning behind\nthis is that you have to read the table to do the dump anyway, so it\nwould be a good time to be able to piggy-back other operations that need\nto read the entire table on top. I know vacuuming of indexes complicates\nth...
[ { "msg_contents": "Inserting into a time field with limited precision rounds off, which\nis good except for this case:\n\nregression=# select '23:59:59.9'::time(0);\n time \n----------\n 24:00:00\n(1 row)\n\nThis is bad because:\n\nregression=# select '24:00:00'::time(0);\nERROR: date/time field value out ...
[ { "msg_contents": "Hi,\n\nI basically have a functional version for aligned output, examples at\nthe bottom of this email. It handles multiline data values and\nmultiline headers. However, there are some areas where I could use some\ninput.\n\n1. To be able to control the spacing, psql now has to be very carefu...
[ { "msg_contents": " \tHello,\n\nI have a very old postgres 6.4 installation. I'm trying to connect to it \nfrom a fresh, up-to-date Debian-host, but I'm constantly getting (from DBI \nand PHP as well) this error message:\n\n# ./update_dns.pl\nDBI connect('dbname=dns;host=sql;authtype=password','dns',...) failed...
[ { "msg_contents": "Common problem with inheritance is that references work ONLY with top table\nand are not propagated to children.\n\nIs it possible to write triggers (like utils/adt/ri_triggers.c) which will\nact on INSERT/UPDATE/DELETE and check/cascade/restrict properly ?\n\npg_attribute, pg_inherits inheri...
[ { "msg_contents": "Hello pgsql-hackers,\n\nWhen I try to execute the next SQL statement, sever was crashed:\n\n DELETE FROM ma_data WHERE id in (-1,212803,..... );\n ... - is 500k text like id separated by \",\". Its about 100000 values.\n\n Run from pgplsql function, like EXECUTE st;.\n \npostgresql-2005-09-25...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org \n> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Tom Lane\n> Sent: 26 September 2005 15:47\n> To: Андрей Репко\n> Cc: pgsql-hackers@postgresql.org\n> Subject: Re: [HACKERS] Server process exited with une...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: Tom Lane [mailto:tgl@sss.pgh.pa.us] \n> Sent: 26 September 2005 16:01\n> To: Dave Page\n> Cc: Андрей Репко; pgsql-hackers@postgresql.org\n> Subject: Re: [HACKERS] Server process exited with unexpected \n> status 128. \n> \n> \"Dave Page\" <dpage@vale...
[ { "msg_contents": "Here are the open items for 8.1:\n\n\n PostgreSQL 8.1 Open Items\n =========================\n\nCurrent version at http://candle.pha.pa.us/cgi-bin/pgopenitems or\nfrom http://www.postgresql.org/developer/beta.\n\nChanges\n-------\nWi...
[ { "msg_contents": "Folks,\n\nI've run into something that concerns me. It's pretty much an 8.2\nissue, but I'm hoping to stimulate some discussion on it. It's\nPostgreSQL's log files. Right now, they're (sometimes just barely ;)\nhuman-readable, but they take significant effort to parse. For\nexample, pqa, ...
[ { "msg_contents": "\n\n> -----Original Message-----\n> From: Ron Peacetree [mailto:rjpeace@earthlink.net]\n> Sent: Saturday, September 24, 2005 3:31 AM\n> To: Dann Corbit; pgsql-hackers@postgresql.org; pgsql-\n> performance@postgresql.org\n> Subject: RE: [HACKERS] [PERFORM] Releasing memory during External\nsor...
[ { "msg_contents": ">From: Ron Peacetree <rjpeace@earthlink.net>\n>Sent: Sep 24, 2005 6:30 AM\n>Subject: Re: [HACKERS] [PERFORM] Releasing memory during External sorting?\n>\n>... the amount of IO done is the most\n>important of the things that you should be optimizing for in\n>choosing an external sorting algor...
[ { "msg_contents": "Is there any particular reason why psql doesn't re-run a query that\nfailed due to disconnect from the server after re-connecting? I've\nthought maybe it's because it might somehow be dangerous, but I can't\nthink of any case where that's actually true.\n-- \nJim C. Nasby, Sr. Engineering Con...
[ { "msg_contents": "> Changes\n> -------\n> Win32 signal handling patch (Magnus)\n\nUnless someone else steps up to doing this one, please remove it from\nthe list. I will not have time to dig into this patch before 8.1.\n\n//Magnus\n", "msg_date": "Mon, 26 Sep 2005 22:34:09 +0200", "msg_from": "\"Magnus...
[ { "msg_contents": "\n\n> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-\n> owner@postgresql.org] On Behalf Of Ron Peacetree\n> Sent: Monday, September 26, 2005 10:47 AM\n> To: pgsql-hackers@postgresql.org; pgsql-performance@postgresql.org\n> Subject: [HACKERS] [PER...
[ { "msg_contents": "I had originally been planning to back-port this fix:\nhttp://archives.postgresql.org/pgsql-committers/2005-08/msg00213.php\nas far as 7.2. I've completed the back-port as far as 7.3, but found\nthat 7.2 would be significantly more work because the API of\nheap_fetch() would need to change f...
[ { "msg_contents": "On Mon, 2005-09-26 at 17:27 -0500, Jim C. Nasby wrote:\n> If a database is created with a 64 bit version of initdb, would a 32bit\n> backend be able to talk to it? Likewise, would a backend compiled by a\n> different compiler be able to?\n> \n> If there was some kind of incompatability, would...
[ { "msg_contents": "I looked at the recently noted problem that pgxs builds only work\nif the installation paths recorded in Makefile.global are accurate;\nwhich pretty much breaks our claim to supporting relocatable\ninstallations.\n\nWhat I propose we do about this is change the path setup section\nof Makefile...
[ { "msg_contents": ">From: Dann Corbit <DCorbit@connx.com>\n>Sent: Sep 26, 2005 5:13 PM\n>To: Ron Peacetree <rjpeace@earthlink.net>, pgsql-hackers@postgresql.org, \n>\tpgsql-performance@postgresql.org\n>Subject: RE: [HACKERS] [PERFORM] A Better External Sort?\n>\n>I think that the btrees are going to be O(n*log(...
[ { "msg_contents": "\"Qingqing Zhou\" <zhouqq@cs.toronto.edu> writes:\n> There are several places in both backend and tools that forget to check the \n> return value of malloc(). For example(8.0.1),\n\n> backend/port/dynloader/beos.c/pg_dlopen()\n\n\tDead port, probably not worth fixing.\n\n> backend/boo...
[ { "msg_contents": "SECOND ATTEMPT AT POST. Web mailer appears to have\neaten first one. I apologize in advance if anyone gets two\nversions of this post.\n=r\n\n>From: Tom Lane <tgl@sss.pgh.pa.us>\n>Sent: Sep 26, 2005 9:42 PM\n>Subject: Re: [HACKERS] [PERFORM] A Better External Sort? \n>\n>So far, you've blit...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org \n> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Tom Lane\n> Sent: 27 September 2005 01:13\n> To: Peter Eisentraut\n> Cc: pgsql-hackers@postgresql.org\n> Subject: [HACKERS] Making pgxs builds work with a...
[ { "msg_contents": "> > The other open issue in this area was that on Windows, \n> pg_config needs \n> > to return space-free path names to avoid breaking the \n> makefiles. It \n> > was suggested that this could be handled by passing \n> pg_config's result \n> > path names through GetShortPathName() on that pl...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: Magnus Hagander [mailto:mha@sollentuna.net] \n> Sent: 27 September 2005 08:58\n> To: Dave Page; Tom Lane; Peter Eisentraut\n> Cc: pgsql-hackers@postgresql.org\n> Subject: RE: [HACKERS] Making pgxs builds work with a \n> relocated installation\n> \n> ...
[ { "msg_contents": "> > > > The other open issue in this area was that on Windows,\n> > > pg_config needs\n> > > > to return space-free path names to avoid breaking the\n> > > makefiles. It\n> > > > was suggested that this could be handled by passing\n> > > pg_config's result\n> > > > path names through GetShor...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: Magnus Hagander [mailto:mha@sollentuna.net] \n> Sent: 27 September 2005 09:19\n> To: Dave Page; Tom Lane; Peter Eisentraut\n> Cc: pgsql-hackers@postgresql.org\n> Subject: RE: [HACKERS] Making pgxs builds work with a \n> relocated installation\n> \n> ...
[ { "msg_contents": "Hi All,\n\nCan anyone please tell/point me where I can get the postgresql system layout\n(I've an interest to contribute). I would also like to know the files\ninvolved for performing each task ( for eg when doing a select operation\nwhat is exactly happening in postgres along with the files)...
[ { "msg_contents": "Hello pgsql-hackers,\n\n Two tables t1 and t2.\n t2 has fk (no action) to t1.\n Two triggers on t1 before delete, delete all fk on t2, and on t2\n after delete update t1.\n\n When we do delete on t1, we have situation when at t1 updates record\n that deleting. Of course logic is not correct, ...
[ { "msg_contents": "\nHello,\n\nI've posted before a patch that enables prepared queries in plperl, and\nnow, after a while, as it seems working as expected, I'd like to ask if it\nwould be a reasonable thing to commit in into -devel? The patch against\nthe latest cvs is at http://www.karasik.eu.org/misc/plperl....
[ { "msg_contents": "> > > Changes\n> > > -------\n> > > Win32 signal handling patch (Magnus)\n> > \n> > Unless someone else steps up to doing this one, please \n> remove it from \n> > the list. I will not have time to dig into this patch before 8.1.\n> \n> OK, what should the TODO item be?\n\nA link to the mail ...
[ { "msg_contents": "I can't help wondering how a couple thousand context switches per\nsecond would affect the attempt to load disk info into the L1 and\nL2 caches. That's pretty much the low end of what I see when the\nserver is under any significant load.\n\n\n", "msg_date": "Tue, 27 Sep 2005 10:21:37 -05...
[ { "msg_contents": ">From: Josh Berkus <josh@agliodbs.com>\n>ent: Sep 27, 2005 12:15 PM\n>To: Ron Peacetree <rjpeace@earthlink.net> \n>Subject: Re: [HACKERS] [PERFORM] A Better External Sort?\n>\n>I've somehow missed part of this thread, which is a shame since this is \n>an area of primary concern for me.\n>\n>Y...
[ { "msg_contents": "Let table A be inherited by A1, A2, A3.\n\n \n\nHow to select from A records where actual relations are A1, A2 ?\n\n \n\nI found a way somewhere, it sounds like SELECT : WHERE tableoid IN (a1.oid,\na2.oid),\n\nbut tableoid checks actually do seq scan.\n\n \n\nLike: SELECT * FROM sometable WH...
[ { "msg_contents": "While testing the recent pgxs patch, I noticed that you can build and\ninstall contrib with PGXS:\n\tcd contrib\n\tgmake USE_PGXS=1 all\n\tgmake USE_PGXS=1 install\nIt seems that it ought to work to run installcheck too:\n\tgmake USE_PGXS=1 installcheck\nbut this does not quite work because t...
[ { "msg_contents": "Attached is a fully-worked-out patch to make SERIAL column default\nexpressions refer to the target sequence with a \"regclass\" literal\ninstead of a \"text\" literal. Since the regclass literal is actually\njust an OID, it is impervious to renamings and schema changes of\nthe target sequen...
[ { "msg_contents": "Hi all,\n\nWe have enhanced pgbench so that it accepts a series of SQL commands\nin a file(see attached patches against 8.0.3). This would make it\npossible to test various sets of SQL commands. In the file it is\nallowed to use a \"meta command\". Currently only \"\\setrandom\" meta\ncomman...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org \n> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Marc \n> G. Fournier\n> Sent: 28 September 2005 00:50\n> To: Tom Lane\n> Cc: Bruce Momjian; PostgreSQL-development; Neil Conway\n> Subject: Re: [HACKERS] ...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: Peter Eisentraut [mailto:peter_e@gmx.net] \n> Sent: 28 September 2005 06:37\n> To: Tom Lane\n> Cc: Magnus Hagander; Dave Page; pgsql-hackers@postgresql.org\n> Subject: Re: [HACKERS] Making pgxs builds work with a \n> relocated installation\n> \n> Tom...
[ { "msg_contents": "\nHi,\n\nI'm not sure whether I've stumbled over a bug or a feature, so I'm\ncurious if someone might explain that. The statement below declares\na stored procedure:\n\nCREATE LANGUAGE PLPGSQL;\nDROP TABLE memleak_test;\nCREATE TABLE memleak_test (id serial);\n\nCREATE OR REPLACE FUNCTION mem...
[ { "msg_contents": "> -----Original Message-----\n> From: Tom Lane [mailto:tgl@sss.pgh.pa.us] \n> Sent: 27 September 2005 18:57\n> To: Magnus Hagander\n> Cc: Dave Page; Peter Eisentraut; pgsql-hackers@postgresql.org\n> Subject: Re: [HACKERS] Making pgxs builds work with a \n> relocated installation \n> \n> \"Mag...
[ { "msg_contents": ">From: \"Jeffrey W. Baker\" <jwbaker@acm.org>\n>Sent: Sep 27, 2005 1:26 PM\n>To: Ron Peacetree <rjpeace@earthlink.net>\n>Subject: Re: [HACKERS] [PERFORM] A Better External Sort?\n>\n>On Tue, 2005-09-27 at 13:15 -0400, Ron Peacetree wrote:\n>\n>>That Btree can be used to generate a physical re...
[ { "msg_contents": "I have added a section to the top of the WAL docs explaining caching and\nreliability issues:\n\n\thttp://candle.pha.pa.us/main/writings/pgsql/sgml/reliability.html\n\nI also renamed the chapter \"Reilability\" rather than \"WAL.\"\n\n-- \n Bruce Momjian | http://cand...
[ { "msg_contents": "Hi,\nconsider this function:\n \nCREATE OR REPLACE FUNCTION FIND_USER_SOCKET_BYNAME (\n IN IN_USERNAME VARCHAR,\n OUT OUT_SOCKET_ADDRESS INTEGER)\nAS\n$BODY$\nBEGIN\n select socket_address from userdata where fullname = in_username into\n out_socket_address;\n\n if ou...
[ { "msg_contents": "In the interest of efficiency and \"not reinventing the wheel\", does anyone know\nwhere I can find C or C++ source code for a Btree variant with the following\nproperties:\n\nA= Data elements (RIDs) are only stored in the leaves, Keys (actually\nKeyPrefixes; see \"D\" below) and Node pointer...
[ { "msg_contents": "If I've done this correctly, there should not be anywhere near\nthe number of context switches we currently see while sorting.\n\nEach unscheduled context switch represents something unexpected\noccuring or things not being where they are needed when they are\nneeded. Reducing such circumsta...
[ { "msg_contents": "Here is the open item list:\n\n> \n> PostgreSQL 8.1 Open Items\n> =========================\n> \n> Current version at http://candle.pha.pa.us/cgi-bin/pgopenitems or\n> from http://www.postgresql.org/developer/beta.\n> \n> Bugs\n> -...
[ { "msg_contents": "Here's a test case for a pg_total_relation_size() failure:\n\ntest=> CREATE TABLE foo (id integer);\nCREATE TABLE\ntest=> SELECT oid, relfilenode FROM pg_class WHERE relname = 'foo';\n oid | relfilenode \n-------+-------------\n 26235 | 26235\n(1 row)\n\ntest=> SELECT pg_total_relatio...
[ { "msg_contents": ">From: \"Jeffrey W. Baker\" <jwbaker@acm.org>\n>Sent: Sep 29, 2005 12:27 AM\n>To: Ron Peacetree <rjpeace@earthlink.net>\n>Cc: pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org\n>Subject: Re: [HACKERS] [PERFORM] A Better External Sort?\n>\n>You are engaging in a length and verbose...
[ { "msg_contents": "Hi,\nI've installed PostgreSQL 8.1-beta2 as a service on my Windows-XP box. \nIt runs fine but I get repeated messages like this in the log:\n\n 2005-09-29 00:41:09 FATAL: could not duplicate socket 1880 for use \nin backend: error code 10038\n\nand for each message printed, a new postgres...
[ { "msg_contents": "> Hi,\n> I've installed PostgreSQL 8.1-beta2 as a service on my \n> Windows-XP box. \n> It runs fine but I get repeated messages like this in the log:\n> \n> 2005-09-29 00:41:09 FATAL: could not duplicate socket \n> 1880 for use in backend: error code 10038\n> \n> and for each message pri...
[ { "msg_contents": "Hi, I'm testing constraint exclusion on PostgreSQL 8.1 beta 1 on windows with\nthe GEOIP countries database and I have a few questions:\n\n1. Can I say that an index created on the \"parent\" table is a \"global\" index,\nan index that spans over data in all derived tables?\n2. Can I say that...
[ { "msg_contents": "Can I see the scripts that build the releases? I've just tried to run \"make \ndist\" but the INSTALL and HISTORY files weren't built, so I wonder how that \nis done and I would like that to be moved to the makefiles so that the \nprocess is controlled from one place. Also, the INSTALL file...
[ { "msg_contents": " \nAm trying to port a mysql statement to postgres.\n\nPlease help me in finding the error in this,\n\n\nCREATE SEQUENCE ai_id;\nCREATE TABLE badusers (\n id int DEFAULT nextval('ai_id') NOT NULL,\n UserName varchar(30),\n Date datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,\n Reason va...
[ { "msg_contents": "\n> In my original example, a sequential scan of the 1TB of 2KB \n> or 4KB records, => 250M or 500M records of data, being sorted \n> on a binary value key will take ~1000x more time than reading \n> in the ~1GB Btree I described that used a Key+RID (plus node \n> pointers) representation of ...
[ { "msg_contents": "I think this question may be more appropriate for\npgsql-novice@postgresql.org.\n\nAnyrate for the below. Sounds like you maybe already have a table or\nsequence called ai_id;\n\nTry doing a DROP SEQUENCE ai_id;\n\nFirst\n\nAlso if you plan to use this sequence only for this table it would b...
[ { "msg_contents": "Daniel,\n\n>From what I've researched, the concepts and practices seem to fall\n> under one of two abstract categorizations: fail-over (ok...\n> high-availability), and parallel execution (high-performance... sure).\n> While some consider the implementation of only one of these to qualify\n> ...
[ { "msg_contents": "A recent pgbench commit causes build failures due to an undefined\nreference to strndup(), at least on FreeBSD and UnixWare:\n\nhttp://pgbuildfarm.org/cgi-bin/show_log.pl?nm=echidna&dt=2005-09-29%2014:30:01\nhttp://pgbuildfarm.org/cgi-bin/show_log.pl?nm=firefly&dt=2005-09-29%2014:27:00\n\nI d...
[ { "msg_contents": "If I were to be nosy and poke around in this, what patches of code would\nI be interested in?\n\n> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-\n> owner@postgresql.org] On Behalf Of Josh Berkus\n> Sent: Thursday, September 29, 2005 11:28 AM\n> ...
[ { "msg_contents": "Hmm. Bummer.\n\nAnyway. The netstat indicates that the pipe() call works. The order is\npretty much:\n\nparent: create socket pair, connected to each other. \nparent: Duplicate socket [this is what fails]\nparent: close own copy of socket\nchild: recreate socket from structure [this is never ...
[ { "msg_contents": "\nWe are basically on hold until we can resolve these items. We need a\nbeta3, but some of these items might require an initdb (ALTER SCHEMA\nRENAME and ROLES), so until we resolve them, we can't go for beta3 and\ncan't get to an RC candidate. I know Tom is busy right now, but I know\nwe wi...
[ { "msg_contents": "Hi!\n\nOn almost all Debian platforms the horology test for 8.0.3 fails.\nSometimes it works on a platform, sometimes not, I did not yet find a\npattern, but most often it fails with something like\n\n*** ./expected/horology.out Sun Jul 11 04:57:20 2004\n--- ./results/horology.out Th...
[ { "msg_contents": ">From: Pailloncy Jean-Gerard <jg@rilk.com>\n>Sent: Sep 29, 2005 7:11 AM\n>Subject: Re: [HACKERS] [PERFORM] A Better External Sort?\n>>>Jeff Baker:\n>>>Your main example seems to focus on a large table where a key \n>>>column has constrained values. This case is interesting in\n>>>proportion...
[ { "msg_contents": ">From: Zeugswetter Andreas DAZ SD <ZeugswetterA@spardat.at>\n>Sent: Sep 29, 2005 9:28 AM\n>Subject: RE: [HACKERS] [PERFORM] A Better External Sort?\n>\n>>In my original example, a sequential scan of the 1TB of 2KB \n>>or 4KB records, => 250M or 500M records of data, being sorted \n>>on a bina...
[ { "msg_contents": ">From: Josh Berkus <josh@agliodbs.com>\n>Sent: Sep 29, 2005 12:54 PM\n>Subject: Re: [HACKERS] [PERFORM] A Better External Sort?\n>\n>The biggest single area where I see PostgreSQL external\n>sort sucking is on index creation on large tables. For\n>example, for free version of TPCH, it takes...
[ { "msg_contents": "> > 2. It happens while the postmaster is idle. If I leave it \n> idle for a \n> > while and then come back, I'll have a whole bunch of new \n> processes in \n> > my task-manager and zombies in tcpview.\n> \n> Hmm ... how many processes? Did you enable autovacuum \n> perchance? If so, does ...
[ { "msg_contents": "> >IIRC, the win32 installer will enable autovacuum by default. \n> And yes, \n> >autovacuum was my first thought as well after Thomas last \n> mail - that \n> >would be a good explanation to why it happens when the postmaster is \n> >idle.\n> > \n> >\n> I used the win32 installer defaults ...
[ { "msg_contents": "> >Right. Please try turning it off and see if the problem goes away.\n> > \n> >\n> No, wait! It does *not* go away. Do I need to do anything \n> more than setting this in my postgresql.conf file:\n> \n> autovacuum = false # enable autovacuum subprocess?\n> \n> and restart the ser...
[ { "msg_contents": "Looks like there more unprotable code in the recent changes to pgbench\n:-(\n\nRegards, Dave.\n\n> -----Original Message-----\n> From: pgbuildfarm-web@hosting-two.commandprompt.com \n> [mailto:pgbuildfarm-web@hosting-two.commandprompt.com] \n> Sent: 30 September 2005 02:17\n> To: pgbuildfarm-...
[ { "msg_contents": "> > If it's two zombies per minute, then I bet it's the stat \n> collector and \n> > stat bufferer. They are restarted by the postmaster if not \n> found to \n> > be running.\n> \n> That would make some sense, because the stat processes need \n> to set up new sockets (for the pipe between th...
[ { "msg_contents": "> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-\n> owner@postgresql.org] On Behalf Of PFC\n> Sent: Thursday, September 29, 2005 9:10 AM\n> To: rjpeace@earthlink.net\n> Cc: Pg Hackers; pgsql-performance@postgresql.org\n> Subject: Re: [HACKERS] [P...
[ { "msg_contents": "That 11MBps was your =bulk load= speed. If just loading a table\nis this slow, then there are issues with basic physical IO, not just\nIO during sort operations.\n\nAs I said, the obvious candidates are inefficient physical layout\nand/or flawed IO code.\n\nUntil the basic IO issues are addr...
[ { "msg_contents": "Back in 2003 Bruce Momjian proposed adding a flag (-I) to psql to force\nit into \"interactive\" mode. (See\nhttp://archives.postgresql.org/pgsql-hackers/2003-11/msg00013.php for\nthe thread.) The proposal was rejected because there was no proven need\nfor it at that time. I'd like to raise...
[ { "msg_contents": "I see the following routines that seem to be related to sorting.\n\nIf I were to examine these routines to consider ways to improve it, what\nroutines should I key in on? I am guessing that tuplesort.c is the hub\nof activity for database sorting.\n\nDirectory of U:\\postgresql-snapshot\\src...
[ { "msg_contents": "http://archives.postgresql.org/pgsql-bugs/2005-02/msg00135.php\n\nI think it may have been a bit early to disable pthread python support\n(http://archives.postgresql.org/pgsql-hackers/2005-09/msg01136.php), as\nPython was working fine on buildfarm member platypus. Maybe it's only an\nissue wi...
[ { "msg_contents": "25MBps should not be a CPU bound limit for IO, nor should it be\nan OS limit. It should be something ~100x (Single channel RAM)\nto ~200x (dual channel RAM) that.\n\nFor an IO rate of 25MBps to be pegging the CPU at 100%, the CPU\nis suffering some combination of\nA= lot's of cache misses (\...
[ { "msg_contents": "I have perused the tuple sort stuff.\n\nThe good:\nThe documentation of the sort algorithm from Knuth's TAOCP was\nbeautifully done. Everyone who writes an algorithm should credit the\noriginal source like this, and also where it deviates. That was done\nvery nicely.\n\nThe bad:\nWith rando...
[ { "msg_contents": "I've noticed that row count estimates for expression indexes appear\nto rely on default_statistics_target rather than on a column's\nactual statistics target. That is, if I use ALTER TABLE SET\nSTATISTICS to increase a column's statistics target and then run\nANALYZE, then estimates for non-...
[ { "msg_contents": "Judy definitely rates a WOW!!\n\n> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-\n> owner@postgresql.org] On Behalf Of Gregory Maxwell\n> Sent: Friday, September 30, 2005 7:07 PM\n> To: Ron Peacetree\n> Cc: Jeffrey W. Baker; pgsql-hackers@postgr...
[ { "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: Friday, September 30, 2005 11:02 PM\n> To: Jeffrey W. Baker\n> Cc: Luke Lonergan; Josh Berkus; Ron Peacetree; pgsql-\n> hackers@postgresql.or...
[ { "msg_contents": "\n\n\n-----Original Message-----\nFrom: pgsql-hackers-owner@postgresql.org on behalf of Bruce Momjian\nSent: Sat 10/1/2005 1:16 AM\nTo: Jim C. Nasby\nCc: Joshua D. Drake; Tony Caduto; pgsql-hackers@postgresql.org\nSubject: Re: [HACKERS] Found small issue with OUT params\n \n> fix pgxs for spa...
[ { "msg_contents": "*blink* Tapes?! I thought that was a typo...\nIf our sort is code based on sorting tapes, we've made a mistake. HDs\nare not tapes, and Polyphase Merge Sort and it's brethren are not the\nbest choices for HD based sorts.\n\nUseful references to this point:\nKnuth, Vol 3 section 5.4.9, (star...
[ { "msg_contents": "Bruce Momjian <pgman@candle.pha.pa.us> writes:\n> Hold, I think I see an idea here. We have two cases, those for SERIAL\n> and those for manual nextval() in DEFAULT. For SERIAL, we can easily\n> map to a nextval(::regclass) call on pg_dump reload. For manual\n> nextval, it will appear in t...
[ { "msg_contents": "As I posted earlier, I'm looking for code to base a prototype on now.\nI'll test it outside pg to make sure it is bug free and performs as\npromised before I hand it off to the core pg developers.\n\nSomeone else is going to have to merge it into the pg code base\nsince I don't know the code ...
[ { "msg_contents": "You have not said anything about what HW, OS version, and pg version\nused here, but even at that can't you see that something Smells Wrong?\n\nThe most common CPUs currently shipping have clock rates of ~2-3GHz\nand have 8B-16B internal pathways. SPARCs and other like CPUs are\nclocked slow...
[ { "msg_contents": "> -----Original Message-----\n> From: pgsql-performance-owner@postgresql.org\n> [mailto:pgsql-performance-owner@postgresql.org]On Behalf Of Jim C. Nasby\n> Sent: Friday, September 30, 2005 4:49 PM\n> Subject: Re: [PERFORM] [HACKERS] Query in SQL statement\n \n> I suggest ditching the CamelCas...
[ { "msg_contents": "After initializing a cluster with initdb -D data --no-locale as the user jd.\nI created a table named foo in the template1 database.\n\ncreate table foo(bar text, baz bigserial);\n\nWhen executing pg_dumpall:\n\nbin/pg_dumpall -U jd -p5500\n\nLooks as it should. However:\n\n[jd@jd pgsqldev]$ ...
[ { "msg_contents": "The following patch implements a fairly light set of timing statements\naimed at understanding external sort performance. There is no attempt to\nalter the algorithms.\n\nEach major point in the algorithms is marked as shown in this example:\n\npostgres=# set debug_sort=true;\nSET\n\npostgres...
[ { "msg_contents": "Hi.\n\nTo allow indexes to be inherited so unique, foreign keys and such works \nproperly with inheritance has been on the todo for quite some time. I \nthought that most probably it is a very non trivial thing, perhaps \ncompletely rethinking how indexes are done. Or perhaps it is not a \nfe...