threads
listlengths
1
275
[ { "msg_contents": "\n\n", "msg_date": "Tue, 10 Sep 2002 08:40:44 +0200", "msg_from": "Andreas Joseph Krogh <andreak@officenet.no>", "msg_from_op": true, "msg_subject": "subscribe" } ]
[ { "msg_contents": "subscribe\n", "msg_date": "Tue, 10 Sep 2002 13:31:10 +0100", "msg_from": "\"Gavin Love\" <gavin@aardvarkmedia.co.uk>", "msg_from_op": true, "msg_subject": "subscribe" } ]
[ { "msg_contents": "\n", "msg_date": "Tue, 10 Sep 2002 11:20:23 -0400", "msg_from": "Bryan White <bryan@arcamax.com>", "msg_from_op": true, "msg_subject": "subscribe" } ]
[ { "msg_contents": "subscribe\n\n", "msg_date": "Tue, 10 Sep 2002 10:07:06 -0600", "msg_from": "Jason k Larson <postgresql@candlefire.org>", "msg_from_op": true, "msg_subject": "subscribe" } ]
[ { "msg_contents": "subscribe\n\n", "msg_date": "Tue, 10 Sep 2002 10:00:22 -0700", "msg_from": "Ericson Smith <eric@did-it.com>", "msg_from_op": true, "msg_subject": "subscribe" } ]
[ { "msg_contents": "\n-- \n\nKeith Gray\nTechnical Services Manager\nHeart Consulting Services\n\n", "msg_date": "Wed, 11 Sep 2002 12:05:24 +1000", "msg_from": "Keith Gray <keith@heart.com.au>", "msg_from_op": true, "msg_subject": "subscribe" } ]
[ { "msg_contents": "subscribe\n", "msg_date": "11 Sep 2002 11:00:03 -0000", "msg_from": "nici.bertschler@berusoft.com", "msg_from_op": true, "msg_subject": "subscribe" } ]
[ { "msg_contents": "subscribe\n\n\n------------------------------------------------------------------------------\n > Khusus Pelanggan Telepon DIVRE 2, Tekan 166 untuk mendengarkan pesan Anda\n ------------------------------------------------------------------------------\n", "msg_date": "Wed, 11 Sep 2002 18...
[ { "msg_contents": "Hi everyone,\n\nThere are PostgreSQL servers around that are handling 2,000 simultaneous\nclient connections (in real life) without problems, but no-one obvious\nseems to have yet taken the time to do fine grained testing of the\nservers which can take this kind of load, to accurately model t...
[ { "msg_contents": "subscribe\n\n\n------------------------------------------------------------------------------\n > Khusus Pelanggan Telepon DIVRE 2, Tekan 166 untuk mendengarkan pesan Anda\n ------------------------------------------------------------------------------\n", "msg_date": "Sat, 14 Sep 2002 19...
[ { "msg_contents": "Hello all,\n\nSome time back I posted a query to build a site with 150GB of database. In last \ncouple of weeks, lots of things were tested at my place and there are some \nresults and again some concerns. \n\nThis is a long post. Please be patient and read thr. If we win this, I guess we \nh...
[ { "msg_contents": "According to ext3 hackers (Stephen Tweedie, Andrew Morton). ext3\ndata=journal mode is much faster than any of the other mode for\nworkloads which do a lot of syncrhonous i/o. Personally, I have seen\ndramatic improvements on moving mail queues to this mode (postfix in\nparticularly flies wit...
[ { "msg_contents": "subscribe\n-- \nsecure email with gpg http://fortytwo.ch/gpg\n\nNOTICE: subkey signature! request key 92082481 from keyserver.kjsl.com\n", "msg_date": "27 Sep 2002 11:42:22 +0200", "msg_from": "Adrian von Bidder <avbidder@fortytwo.ch>", "msg_from_op": tru...
[ { "msg_contents": "When a table is created with a primary key it generates a index.\nDos the queries on that table use that index automatically?\nDo I need to reindex that index after insertions?\n\n\n\n\n\n\n\nWhen a table is created with a primary key it \ngenerates a index.\nDos the queries on that table use...
[ { "msg_contents": "On Tue, 1 Oct 2002, Adam Siegel wrote:\n\n> I have a table that has about 200 rows in it. I have 2 other tables\n> that have about 300,000 rows each that reference the first table\n> through a foriegn key. I run a process that rebuilds these tables.\n> First I delete the rows in the large t...
[ { "msg_contents": "Relative performance question:\n\nI have 2 UPDATE queires in a function. \n\ntable_a: 117,000 records\ntable_b: 117,000 records\ntable_c: 1.5 million records\n\n #1 updates table_a, field_2 from table_b, field_1 based on a joining field_3. \nAround 110,000 updates\n#2 updates table_a, field_...
[ { "msg_contents": "\nRandy,\n\n> I'm not sure about 20 times longer but you would have index records\n> that \n> would need to be changed. Is field_3 indexed in all 3 tables? If\n> table_b \n> does not have an index on field_3 and the other tables do, I'd guess\n> that \n> would make this take longer too.\n\n...
[ { "msg_contents": "Hi,\n\nToday we concluded test for database performance. Attached are results and the \nschema, for those who have missed earlier discussion on this.\n\nWe have (almost) decided that we will partition the data across machines. The \ntheme is, after every some short interval a burst of data wi...
[ { "msg_contents": "\nsubscribe pgsql-performance\n\n-- \nBest Regards,\n \nMike Benoit\nNetNation Communication Inc.\nSystems Engineer\nTel: 604-684-6892 or 888-983-6600\n ---------------------------------------\n \n Disclaimer: Opinions expressed here are my own and not \n necessarily those of my employer\n\n"...
[ { "msg_contents": "Folks,\n\nSorry for the double-quoting here. I sent this to just Ron by\naccident. My original question is double-quoted, Ron is quoted, and my\nresponses are below. Thanks!\n\n> > Ok, I'm still confused.\n> > \n> > I'm updating a (not not indexed) field in a 117,000 row table based\n> on...
[ { "msg_contents": "\n> if i'm not mistaken, a char(n)/varchar(n) column is stored as a 32-bit\n> integer specifying the length followed by as many characters as the\n> length tells. On 32-bit Intel hardware this structure is aligned on a\n> 4-byte boundary.\n\nYes.\n\n> | opc0 char (3) no no 8 ...
[ { "msg_contents": "Hello all,\n\nI am experiencing slow db performance. I have vacuumed, analyzed, reindexed\nusing the force option and performance remains the same - dog-slow :( If I\ndrop and recreate the database, performance is normal, so this suggests a\nproblem with the indexes? I also took a look at ...
[ { "msg_contents": "Folks,\n\nI'm still having trouble with my massive data transformation procedures\ntaking forever to finish. Particularly, many of them will get about\n1/2 way through, and then I will start seeing this in the log:\n\n2002-10-08 20:37:13 DEBUG: recycled transaction log file\n0000000A000000...
[ { "msg_contents": "Bruce,\n\n> > First, an interesting wierdness from the VACUUM FULL ANALYZE:\n> > Analyzing elbs_clidesc\n> > 2002-10-08 21:08:08 DEBUG: SIInsertDataEntry: table is 70% full,\n> > signaling postmaster\n> > \n> > Huh?\n> \n> Well, you are dealing with elbs. That is the problem. ;-)\n\n<grin>...
[ { "msg_contents": "subscribe pgsql-performance\n\n", "msg_date": "Wed, 9 Oct 2002 19:32:19 UT", "msg_from": "\"Rich Scott\" <rich_scott@fastmail.fm>", "msg_from_op": true, "msg_subject": "None" } ]
[ { "msg_contents": "Hi,\n\nI am trying to optimise a complex query adding explicit joins and creating\nindices. I am going through the EXPLAIN output (~70 lines) but am fairly new\nat reading these. \n\nAre there any good rules of thumb of things one should be looking out for in\nEXPLAIN output? ie <blah> means ...
[ { "msg_contents": "Is it possible to get rid of the \"t_natts\" fields in the tuple header? Is this field only for \"alter table add/drop\" support? Then it might\npossible to get rid of it and put the \"t_natts\" field in the page header, not the tuple header, if it can be assured that when updating/inserting\...
[ { "msg_contents": "If you want to get the max (CPU) performance and use gcc, you should give the -fprofile-arcs / -fbranch-probabilties options of gcc 3.2 a try. \nFor 50 pgbench read-only runs (1 mio tuples, 40000 txs, 10 clients) I get 14.4% speedup. \n\nThen I tried it with real data from our production syst...
[ { "msg_contents": "I need to syncronize two pgsql databases runing on RedHat linux7.2.\nOne is on our LAN and other one on the internet which we connect through a dialup connection.\n\nWaruna\n\n\n\n\n\n\n\nI need to syncronize two pgsql databases runing on \nRedHat linux7.2.\nOne is on our LAN and other one on...
[ { "msg_contents": "Folks, Justin,\n\nHey, I've been tinkering with PG_autotune in an effort to make it usable on my \ninstallation. \nhttp://gborg.postgresql.org/project/pgautotune/projdisplay.php\n\nFirst off, thank you Justin for getting inspired and writing the starter \nversion. This is something that w...
[ { "msg_contents": "Heres an oddity. Why would it take more time to not find an answer than it would to find one? \nHere are my 2 queries.\nThe Cold Fusion output of the query is followed by an explain analyze.\n\nmaxTime (Records=0, Time=2223ms)\nSQL = \nselect cr.start_time as max\n\t\t\t\tfrom call_results ...
[ { "msg_contents": "Something that might be worth considering:\n\nMany of the performance problems on pgsql-general seem to be related to the fact that no analyze is performed after the creation on the tables, so\nmaybe this might be an option to fix that (in future releases): when a table has no statistics at a...
[ { "msg_contents": "Hi:\n\n Are the \"cost\" variables (e.g.\nrandom_page_cost,cpu_tuple_cost,cpu_index_tuple_cost)\nin postgresql.conf optimal for a particular set of\nplatform / hardware requirements? (i.e. the configs\nworks best for let say if you have PIII computer w/\nIDE as storage).\n\n I'm asking thi...
[ { "msg_contents": "Hi:\n\n I was testing a database when notice that it does not\nused the new index I created. So after a couple of\nVACUUM ANALYZE it tried the following test queries.\n\n**** TEST CASE #1 ***********\nloyalty=# set enable_seqscan=off;\nSET VARIABLE\nloyalty=# explain analyze select count(*) ...
[ { "msg_contents": "Hi\nI'd like to split queries into views, but I can't join them - planner \nsearch all of records instead of using index. It works very slow.\n\nHere is example:\n1) create table1(\n id1\tinteger primary key,\n ...fields...\n );\ntable1 has thousands rows >40000.\n\n2) create ind...
[ { "msg_contents": "Hi all,\n\nI have a basic doubt about indexes... in the next example:\n\n-- ====================================================\nDROP TABLE ctest;\nCREATE TABLE ctest\n ( cusid numeric(5) PRIMARY KEY NOT NULL, -- Customer ID.\n namec varchar(10) NOT NULL, -- Customer Name.\n ...
[ { "msg_contents": "\nAfter checking some docs on performance tuning, I'm trying to\nfollow Bruce Momjian (sp??) advice to set the shared_buffers\nat 25% of the amount of physical memory (1GB in our server)\nand 4% for the sort_mem.\n\nWhen I try that, I get an error message when starting postgres,\ncomplaining ...
[ { "msg_contents": "Hello Newsgroup\n\nI have trouble with postgres 7.2.3. This system works fine, but last week\nevery postmaster process exhausted my system to 100%. What can i do ? When I\ndump all databases it has 16MB. I start my system with the following\ncommand:\n\npostmaster -i -c shared_buffers=1024 -c...
[ { "msg_contents": "Hello,\n\nI have a question regarding clusters. What with all\nthe hoop-la about Oracle RAC, the question of\nclustering PostgreSQL has come up at work.\n\nNow, I know that only one system can actually update\nthe database, and in a active/passive failover\nsituation that is ok. But! If I hav...
[ { "msg_contents": "I'm looking for some advice or benchmarks comparing low end systems for a postgres installation. \n\nCurrently, I've got postgres running on the same system as the app server accessing a single fast IDE drive. The database is on the order of 1 gig, with two main tables accounting for 98% of t...
[ { "msg_contents": "Hi:\n\tNot being too versed with postgres and beta tests, is there \na place or person who would review the results of the benchmark test for 7.3?\n\nkklatt@uwm.edu\n", "msg_date": "Tue, 29 Oct 2002 08:26:37 -0600", "msg_from": "Kenny H Klatt <kklatt@alpha3.csd.uwm.edu>", "msg_fro...
[ { "msg_contents": "\nHi ,\n\nFor a particular table it was only dump and reload of the table that\nhelped in enabling index usage.\n\nI tried VACUUM ANALYZE and even recreating the indexes but it\ndid not work.\n\nwhy does the planner use the index like a miser?\nbelow are the details\n\nwas there anything bet...
[ { "msg_contents": "Does it make a performance difference if I use a char(20) or a char(36)\nas the primary key? My thought is no, but I would like to hear more\nopinions.\n\nAnd a little further off topic(since we have many database experts\nhere), does it matter on MS SQL server 7?\n\nThanks!\n\n-- \nWei Weng\...
[ { "msg_contents": "\nhi all,\n\nwill an upgrade to a dual processor machine\nnoticeably increase performance of a postgresql server?\n\nload average now often is about 4.0 - 8.5 - and I'll\nhave got to do something sooner or later...\n\nany help is appreciated...\n\n--\n\nMit freundlichem Gru�\n\nHenrik Steff...
[ { "msg_contents": "Hi,\n\n I have table with 30 columns and 30000..500000 rows. When I make \n'SELECT * FROM table' postgresql start doing something and return first \nrow after 10s (for 30k rows) and after 5min (500k rows). It looks like \nit copy whole response to temp space and after that it shows it.\n ...
[ { "msg_contents": "pgsql-performers,\n\nJust out of curiosity, anybody with any ideas on what happens to this\nquery when the limit is 59626? It's as though 59626 = infinity?\n\npganalysis=> explain analyze select * from ps2 where tstart<> '2000-1-1\n00:00:00' and time_stamp > '2000-1-1 00:00:00' order by\ntst...
[ { "msg_contents": "Heinrik,\n\n\"So, where do i find and change shmmax shmall settings ??\nWhat should I put there?\n\nWhat is a recommended value for shared buffers in postgresql.conf ?\"\n\nThere is no \"recommended value.\" You have to calculate this relatively:\n\n1) Figure out how much RAM your server ha...
[ { "msg_contents": "Hi!\n\nI've seen on this list some calculations concerning buffers and sort_mem\nsettings. Could you tell me if there is a document about such a\ncalculation? I'd like to use nearly all of my RAM for postgres.\n\nRichard.\n\n\n\n-- \n\"First they ignore you. Then they laugh at you. Then they\...
[ { "msg_contents": "\nHi all,\n\nthis is how it looks like, when my system is busy (right now!!!)\n\n50 concurrent visitors at the same time surfing through our web-pages\n\nps ax | grep postgres:\n22568 ? S 0:00 postgres: stats buffer process\n22569 ? S 0:00 postgres: stats collector pro...
[ { "msg_contents": "On 14 Nov 2002 at 10:30, Wei Weng wrote:\n\n> The term had been mentioned often enough on this mailing list. Can\n> someone enlighten me with some description or a URL where I can read on?\n> And why is it important to postgresql database performace?\n\nWhen programs request more memory than ...
[ { "msg_contents": "Hi,\n\nWhy is the sort part of my query getting so much time?\n\nI run a relative complex query and it gets about 50 sec.\nFor sorting I need another 50 sec!\n\nCan I increase the sort memory for better performance?\nHow meny memory is needet for the sort in pg.\nThe same data readet in java ...
[ { "msg_contents": "\nIs it possible to configure the digest form for this list? It's starting\nto get busy (which is relative I know, but I'm on a lot of lists and prefer\ndigest...others too?).\n\nThanks,\n\n-- \nLaurette Cisneros\nThe Database Group\n(510) 420-3137\nNextBus Information Systems, Inc.\nwww.nex...
[ { "msg_contents": "Hi all,\n\ni've a doubt about how FOR/LOOP works in plpgsql.\n\nIt seems to me that the SELECT query executed in that way is much slower\nthat the same being executed interactively in psql.\n\nIn particular it seems that it doesn't make use of indexes.\n\nDoes it have any sense or am i wrong/...
[ { "msg_contents": "Henrik,\n\n> I tested it, and it doesn't seem to change significantly\n> \n> Now I am trying the more regular vacuuming, too ... every 5 minutes\n> the most important tables are vacuumed... this, too, gives a bit\n> more performance.\n\nDisregard that last message. I just caught up with the ...
[ { "msg_contents": "Please send us an 'EXPLAIN ANALYZE' of the query.\n\nThanks\n\n\nOn Fri, 2002-11-15 at 15:51, Peter T. Brown wrote:\n> Hi--\n> \n> I have this rather long complex query that takes really long to complete\n> (please see below). It seems like I ought to improve the speed somehow.\n> I don't und...
[ { "msg_contents": "Hi All, \n\nWe are using Postgres 7.1, on Solaris 8 - hardware is a 400mhz Netra X1,\n512Mb ram, with the database on a separate partition.\n\nOur main result tables are getting really big, and we don't want to delete\nany data yet. Currently, our largest table has around 10 million rows and...
[ { "msg_contents": "Hi, \nThanks for the reply Stephen, the data is 'somewhat' realistic.....\n\nThe data in the table is actually synthetic, but the structure is the same\nas our live system, and the queries are similar to those we actually carry\nout. \n\nAs the data was synthetic there was a bit of repetitio...
[ { "msg_contents": "Hi, \n\nUnfortunately explain analyze does not work on our postgres version (7.1) ?\n\nI think I will download and compile 7.2, and try to compile in 64bit mode to\nsee if that helps improve performance.\n\nCheers\n\nNikk \n\n\n-----Original Message-----\nFrom: Tom Lane [mailto:tgl@sss.pgh.pa...
[ { "msg_contents": "Hi Charlie, \nWe do a vacuum analyze every night at midnight. I thought that perhaps the\nanalyzing was not being done correctly, so I manually did a vacuum analyze\nand the estimated row counts were way still out. \nI will look into clustering the data and see what effect that may have.\n\...
[ { "msg_contents": "Hi Tom, \n\nYes, we should upgrade to 7.2 soon, its just that as it is a live system\nrunning 24x7 we are careful about upgrading core components so we do not\ndisrupt our data collection agents too much.\n\nHere is some table info, we currently index by time then ID. Generally,\ndata will b...
[ { "msg_contents": "To whom it may concern,\n\nI am a java developer using postgres as a DB server. Me and my development team have a product comprised of about 50 tables, with about 10,000 records in the largest table. We have looked for concrete answers in books and the web for solutions to several problems ...
[ { "msg_contents": "Hello,\n\n does have IN operator in WHERE clausule any \"undocumented\" slowdown?\nI have tables:\n\nCREATE TABLE A (\n pkA int NOT NULL\n num int\n\t...\n);\n\nCREATE TABLE B (\n fkA int NOT NULL,\n\t...\n);\n\nALTER TABLE B ADD CONSTRAINT FK_B_fkB_A_pkA FOREIGN KEY...
[ { "msg_contents": "Hi, \n\nI tried a test cluster on a copy of our real data - all 10 million rows or\nso. WOW! The normal select performance improved drastically. \nSelecting 3 months worth of data was taking 146 seconds to retrieve. After\nclustering it took 7.7 seconds! We are now looking into ways we ...
[ { "msg_contents": "Hi, \n> I'm a little curious to know when the last time you had run a VACUUM\n> FULL on that table was.\n>\n>-- \n>Rod Taylor <rbt@rbt.ca>\n\nWe do a VACUUM ANALYZE every night, there is no option for FULL on our\nversion (7.1)\n\nNikk\n\n\n\n\n\nRE: [PERFORM] selects from large tables\n\n\nH...
[ { "msg_contents": "subscribe\n\n", "msg_date": "Wed, 20 Nov 2002 13:58:49 -0500 (EST)", "msg_from": "Francisco Reyes <lists@natserv.com>", "msg_from_op": true, "msg_subject": "None" }, { "msg_contents": "subscribe lists@natserv.com\n\n", "msg_date": "Thu, 21 Nov 2002 15:47:51 -0500 (...
[ { "msg_contents": "Direct Cc: would be MUCH appreciated!\n\nI'm using PostgreSQL 7.1.3\n\nMy FIRST question is:\n\nHow come I can't seem to get any of that nifty profiling output to\n/var/log/messages?\n\n[aside]\nNot in /var/log/pgsql nor in /var/lib/pgsql/data/pg.log either. Don't\ncare where it goes, so lon...
[ { "msg_contents": "Hi!\nThis is my first post to the list.\n\nI'm currently searching to improve the performances of some requests,\nand recently switched to postgresql 7.3rc1.\n\nI thought there would be in this release a kind of cache for the results\nof requests (i.e. the second time a request is asked, if t...
[ { "msg_contents": "\nHi folks,\n\nI have two options:\n3*18 GB 10,000 RPM Ultra160 Dual Channel SCSI controller + H/W Raid 5\nand \n2*36 GB 15,000 RPM Ultra320 Dual Channel SCSI and no RAID\n\nDoes anyone opinions *performance wise* the pros and cons of above \ntwo options.\n\nplease take in consideration in ...
[ { "msg_contents": "\nhello all,\n\nhow often should \"vacuum full\" usually be run ?\n\nthanks,\n\n--\n\nMit freundlichem Gru�\n\nHenrik Steffen\nGesch�ftsf�hrer\n\ntop concepts Internetmarketing GmbH\nAm Steinkamp 7 - D-21684 Stade - Germany\n--------------------------------------------------------\nhttp...
[ { "msg_contents": "There had been a great deal of discussion of how to improve the\nperformance of select/sorting on this list, what about\ninsert/delete/update?\n\nIs there any rules of thumb we need to follow? What are the parameters\nwe should tweak to whip the horse to go faster?\n\nThanks\n\n-- \nWei Weng\...
[ { "msg_contents": "\nI have seen a number of real-world situations where bundling inserts into\ntransactions made a considerable difference - sometimes as much as a 100x\nspeed-up, and not just in Postgresql databases, but also commercial\nsystems\n(my experience is in Oracle & Sybase). I've often used an idiom...
[ { "msg_contents": "So, I'm trying to create a full text index as described here:\n\nhttp://techdocs.postgresql.org/techdocs/fulltextindexing.php\n\nEverything was going mostly okay...\n\nI had to hack a quick PHP script instead of using the Perl once since I\ndidn't have a working Pg.pm, but that was a minor sp...
[ { "msg_contents": "Hi,\n\nif memory serves me right, the space requirements for this would be \nsomething like:\n\n 42 (per tuple overhead)\n 4 (size of OID?)\n 16 (substitute with the maximum length of any 'string' in your \nfulltext.sorted)\n+ -------------\n 62\n 20,000,000...
[ { "msg_contents": "Hi all,\n\nI have developed a system that is composed of 10 separate running \nprocesses. Each of the processes opens a connection to postgres with the \nC interface.\n\nWhenever any process has to process any query, it should fork and create \na new independent process (not thread). How does...
[ { "msg_contents": "\n\n> -----Original Message-----\n> From: Nicolai Tufar [mailto:ntufar@apb.com.tr] \n> Sent: 27 November 2002 14:02\n> To: pgsql-hackers@postgresql.org; PgSQL Performance ML\n> Subject: Re: [PERFORM] [HACKERS] Realtime VACUUM, was: \n> performance of insert/delete/update\n> \n> \n> I always w...
[ { "msg_contents": "In our first installment a couple of weeks ago, I was asking about low end hardware optimizations, it got into ide/scsi, memory, and drive layout issues.\n\nI've been wondering more about the IDE/SCSI difference for low end hardware, and since my dev worksatation needed more hard drive space,...
[ { "msg_contents": "[I hope job postings are kosher...]\n\nI need help optimizing a PostgreSQL application:\n\nFull-text search\n~17,000 records\nArticles (text) are about 10K long on average, ranging from 0 to 278K.\n\nI don't know if we need to throw more RAM, more hard drive, more\ncomparison RAM in postmaste...
[ { "msg_contents": "(Should probably be in [SQL] by now....)\n\nI've changed my table declarations to agree on the datatypes and only one \nsimular problem with an update-query doesn't seem to be solved.\n\n(see plan below)\n\n* the concatenation in the lbar select can't be avoided, it's just the way the \ndata ...
[ { "msg_contents": "Hi Li Li, \n\n> \n> I'm thinking about separating a table with up to millions of rows into\n> several tables with the same set of columns to speed up some complex\n> queries. \n\nI thought of doing this recently, as queries were taking so long. Instead\nof breaking the table up, we clustered...
[ { "msg_contents": "I am having some problems with user-defined functions in version 7.3. The\nplanner seems to refuse to use an index that I have created when I define an\nSQL function that should take advantage of it. The thing that is driving me\nnuts is that if I take the SQL from the function definition a...
[ { "msg_contents": "\nI have the following query:\n\nSELECT p.userid, p.year, a.country, a.province, a.city\nFROM profile p, account a \nWHERE p.userid=a.userid AND \n\t(p.year BETWEEN 1961 AND 1976) AND \n\ta.country='CA' AND \n\ta.province='BC' AND \n\tp.gender='f' AND \n\tp.userid NOT IN (SELECT b.userid FROM...
[ { "msg_contents": "I am not sure whether this is a know problem but we discovered this the\nother day.\nWe are using PostgreSQL 7.2.1 on Redhat 7.3.\n\nThe table has about over a million rows (~1.4).\n\nThe query concerned is of the form\n\nSELECT *\nFROM tblCompany\nWHERE lower(companyname) like 'company%'\nOR...
[ { "msg_contents": "I have a question about some strange behavior on what should be a rather\neasy issue.\nI am not getting the query plan that I expect given the query and the\nindexes.\n\nI have a table with the following structure:\nCREATE TABLE tblCompany(\n intCmpID serial NOT NULL,\...
[ { "msg_contents": "\nHi,\n\n\nI have got there SCSIs HDDs for the postgresql Box\ni plan to install OS on 1st , 2nd for tables and indexes and third \nfor pg_xlog.\n\nBruce Momjian's \"H/W Perf tuning\" on\nhttp://www.ca.postgresql.org/docs/momjian/hw_performance/node11.html\nrecommends 8k blocksize for the fil...
[ { "msg_contents": "Tomasz,\n\nI am under the impression that a primary key field is automically as a unique index. It seems to be correct after I verify it \nwith the page http://www.commandprompt.com/ppbook/index.lxp?lxpwrap=c13329%2ehtm#CREATINGANINDEX\n\nThanks for bringing up the question.\n\nVernon\n\n12/5...
[ { "msg_contents": "I wish to create an alter command which will allow a table to have OIDs\nadded or removed.\n\n\nThe tricky part appears to be changing the tuples themselves. I believe\nif I pull the same trick that cluster does (create new file, copy\ntuples, etc) it can be done fairly easily.\n\nFirst, set...
[ { "msg_contents": "\n\n\n> 1) Post an EXPLAIN ANALYZE statement for the above query, with limit,\n> that returns in 3-5 seconds.\n> 2) Post an EXPLAIN ANALYZE for a query that returns slowly (20-30\n> seconds).\n\nThe query:\nSELECT * FROM tblcompany WHERE lower(companyname) like 'a g m%' ORDER BY\ncompanyname;...
[ { "msg_contents": "Folks,\n\nOne of Postgres' poorest performing areas is aggregates. This is the\nunfortunate side effect of our fully extensible aggregate and type\nsystem. However, I thought that the folks on this list might have a\nfew tips on making aggregates perform faster.\n\nHere's mine: Aggregat...
[ { "msg_contents": "\nSilly question (and just because I would like to know exactly why):\n\nThis query:\nselect distinct x, y \n from table1 t \n join table2 t2\n using (col1) \norder by x;\n\nis *slower* than this query:\n\nselect disting x, y \n from table1 \n where col1 = (select col1 from table2) \nORDER...
[ { "msg_contents": "Greetings!\n\nI am trying to find a way to optimize this query and have hit a wall. The\ndatabase size is 2.9 GB and contains 1 million records. The system is a\ndual xeon 1 ghz P3 with 4 GB ram, 2 of it shared memory. Redhat linux\nkernel 2.4.18-5 ext3fs.\n\nI'm hoping I haven't hit the l...
[ { "msg_contents": "Hi\n\nI am doing a research project on real time robotics and wanted to have the postgres as a database to save measurements we aggregate when running our robots.\n\nA common operation we do is insertion and movements of measurements within tables. But it seams as if insertion and movement ti...
[ { "msg_contents": "hi\ni have a question about best harddisk configuration for postgresql\nperformance.\nof course i know that:\n- scsi is better than ide\n- 2 disks are better than 1\n- 3 disks are better than 2\n\ni know that with 3 disks one should move xlog to one drive, index files\nto second and tables to...
[ { "msg_contents": "Hi:\n\n Is the performance overhead of creating a\nmulti-column index greater than creating an individual\nindex for each column? (i.e. Is the INSERT slower for\na table with a three column index than a similar table\nwith three single column indices?).\n\n I was wondering this because acc...
[ { "msg_contents": "I'm a bit confused.\n\nIn 7.3 is it possible to use GIST without using any of the stuff in \ncontrib/? If it is, how can it be done and in which cases should it be done?\n\nThe pgsql docs about indexes keep talking about GIST here and there, but I \ncan't seem to use them on anything. And the...
[ { "msg_contents": "Folks:\n \nI had a new question from a client: is it possible to \"cap\" CPU usage\n for PostgreSQL running on Linux? They don't care if the procedure\n degrades Postgres performance, but they can't afford to have Postgres\n take up more than 30% of processor for more than 400 milliseconds\n(...
[ { "msg_contents": "Folks,\n\nI am hoping to start a thread where users post their experiences with\nvarious RAID and SCSI controllers running Postgres. When completed,\nI'll post it somewhere on Techdocs with a big disclaimer. I'll start it\noff:\n\nMYLEX AcceleRAID 170: Not supported under Linux 2.4 kernels...
[ { "msg_contents": "Wei,\n\n> I have two tables A and B where A is a huge table with thousands of\n> rows, B is a small table with only a couple of entries.\n>\n> I want to do something like\n>\n> SELECT\n> A.ID\n> A.Name\n> FROM\n> A JOIN B ON (A.ID = B.ID)\n\nYou might consider:\nSELECT A.ID\n A.Name\nFR...
[ { "msg_contents": "\nHi:\n\n How long does it take to commit a change to change\nto the database?\n\n I'm currently developing a application where\nresponse time should be fast. Today I notice the\nfollowing in my application log:\n\n [12/10/2002 16:49:52] SQL statement created\n [12/10/2002 16:49...
[ { "msg_contents": "The manual is pretty sparse on advice regarding indices. Plenty of\ngood feature documentation, but not much about when and where an index\nis appropriate (except a suggestion that multi-column indices should \nbe avoided).\n\nOf course, the ultimate arbiter of which indices are used is the\...
[ { "msg_contents": "\nJosh.....\n\n> I had a new question from a client: is it possible to \"cap\" CPU usage\n> for PostgreSQL running on Linux?\n\nI remember reading a few months ago about a virtual freebsd OS that\ndivides the memory and cpu up between different users. Although this is\nnot Linux proper (or i...