threads
listlengths
1
275
[ { "msg_contents": "I am using postgresql to be the central database for a variety of tools for\nour testing infrastructure. We have web tools and CLI tools that require access\nto machine configuration and other states for automation. We have one tool that\nuses a table that looks like this:\n\nsystest_live=# ...
[ { "msg_contents": " version \n\n------------------------------------------------------------------------\n PostgreSQL 8.1.3 on i686-pc-linux-gnu, compiled by GCC gcc (GCC)\n3.3.6\n(1 row)\n\n\n-- The order of fields around the \"=\" in the WHERE cond...
[ { "msg_contents": "Hi,\n\nI've got a somewhat puzzling performance problem here.\n\nI'm trying to do a few tests with PostgreSQL 8.1.3 under Solaris\n(an OS I'm sort of a newbie in).\n\nThe machine is a X4100 and the OS is Solaris 10 1/06 fresh install\naccording to manual. It's got two SAS disks in RAID 1, 4GB...
[ { "msg_contents": "Hi, reading the archives i cant find a clear answer about softupdates in \nfreebsd, is it recommended to enable it for the data directory?\n\n---\nmiguel\n", "msg_date": "Mon, 03 Apr 2006 18:58:28 -0600", "msg_from": "Miguel <mmiranda@123.com.sv>", "msg_from_op": true, "msg_su...
[ { "msg_contents": "I was wondering if anyone on the list has a successful installation of\npgmemcache running\nthat uses LISTEN/NOTIFY to signal a successfully completed transaction,\ni.e., to get around the fact\nthat TRIGGERS are transaction unaware. Or perhaps any other\ninformation regarding a successful\n...
[ { "msg_contents": "I have a table with 1 live row that I found has 115000 dead rows in it ( \nfrom a testing run ). I'm trying to VACUUM FULL the table and it has \nrun for over 18 hours without completion. Considering the hardware on \nthis box and the fact that performance seems reasonable in all other \nas...
[ { "msg_contents": "I have relatively small tables (toode and rid) in fast server.\nBoth tables are indexed on toode field.\n\nFollowing query takes long time to run.\ntoode field type is char(20). It is difficult to change this field type.\n\nAny idea how to speed up this query ?\n\nUPDATE firma1.rid SET toode=...
[ { "msg_contents": "Wondering if\n\nUpdate firma1.rid set toode=null where toode is not null and not\nexists(select 1 from firma1.toode where toode=rid.toode); \n\nWould be faster... Problem appears to be the seqscan of seqscan... No?\n\n> -----Original Message-----\n> From: pgsql-performance-owner@postgresql.or...
[ { "msg_contents": "Explain analyze would be nice ;-) \n\n> -----Original Message-----\n> From: pgsql-performance-owner@postgresql.org \n> [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Andrus\n> Sent: Tuesday, April 04, 2006 3:37 PM\n> To: pgsql-performance@postgresql.org\n> Subject: [PERFORM] Que...
[ { "msg_contents": "Greetings -\n \nI am testing a Sun Microsystems Sun Fire T2000 demo server at our\ncompany. I want to know if anyone here has any experience with this\nhardware and postgresql 8.1.3. I installed the copy of postgresql 8.1.3\nfrom blastwave.org onto this demo box and loaded our production d...
[ { "msg_contents": "I am not sure about this. I mean I have postgresql 8.1.3 running on my\nWindows XP P4 HT laptop that I use for testing my webapps. When I hit\nthis pgsql on this laptop with a large query I can see the load spike up\nreally high on both of my virtual processors. Whatever, pgsql is doing\ni...
[ { "msg_contents": "Luke (or anyone else who may be following this thread)\n\nDo you think bizgres might be a good choice of database server for the\nUltrasparc T1 based T2000? I have downloaded the source code but I was\nhoping to find out if the potential performance gains were worth the\neffort to compile a...
[ { "msg_contents": "I am evaluating this SunFire T2000 as a replacement for an Intel P3 1Ghz\npostgresql server. This intel server runs a retail reporting database\non postgresql 8.1.3. I need to realize significant performance gains on\nT2000 server to justify the expense. So I need to tune the postgresql\ns...
[ { "msg_contents": "Ok that is beginning to become clear to me. Now I need to determine if\nthis server is worth the investment for us. Maybe it is not a speed\ndaemon but to be honest the licensing costs of an SMP aware RDBMS is\noutside our budget. When postgresql starts does it start up a super\nserver pro...
[ { "msg_contents": "Hi,\n\nI have a problem with the choice of index made by the query planner.\n\nMy table looks like this:\n\nCREATE TABLE t\n(\n p1 varchar not null,\n p2 varchar not null,\n p3 varchar not null,\n i1 integer,\n i2 integer,\n i3 integer,\n i4 integer,\n i5 integer,\n d1 date,\n d2 da...
[ { "msg_contents": "Hello,\nI am doing some test with differents values for the parameter maintenance_work_mem in order to\nameliorate the time for the creation of index and and the use of vacuum and analyse.\nI read in the doc that this parameter is just for create index, vacuum and analyse and foreign key .\nB...
[ { "msg_contents": "Because I plan to develop a rather large (for us anyway) data warehouse\nwith PostgreSQL. I am looking for the right hardware that can handle\nqueries on a database that might grow to over a 100 gigabytes. Right\nnow our decision support system based on postgresql 8.1.3 stores retail\nsales...
[ { "msg_contents": "> > On 3/22/06 5:56 AM, \"Spiegelberg, Greg\" <gspiegelberg@cranel.com> wrote:\n> >\n> > > Has anyone tested PostgreSQL 8.1.x compiled with Intel's Linux C/C++\n> > > compiler?\n> >\n> > We used to compile 8.0 with icc and 7.x before that. We found very good\n> > performance gains for Intel ...
[ { "msg_contents": "Hi,\n\nI am working on Web Based application using Perl and Apache.\nI have to show to the users some query results by pages.\nSome time the result can be over 1000 rows (but can be more).\nThe question is how to make this.\n\nThe one way is to use OFFSET and LIMIT. That's OK but every time t...
[ { "msg_contents": "Hello\n\nI have a sql statement that takes 108489.780 ms with 8.0.7 in a\nRHEL4/amd64linux server with 2xAMD Opteron(tm) Processor 275 2.00GHz /\n8GB RAM and only 4193.588 ms with 7.4.12 in a RHEL3/386linux server with\n2xIntel(R) Xeon(TM) CPU 2.40GHz / 4GB RAM.\n\nSome information:\n\n- Ther...
[ { "msg_contents": "I have a web server with PostgreSQL and RHEL. It hosts a search\nengine, and each time some one makes a query, it uses the HDD Raid\narray. The DB is not very big, it is less than a GB. I plan to add\nmore RAM anyway.\n\nWhat I'd like to do is find out how to keep the whole DB in RAM so\nthat...
[ { "msg_contents": "Bing-bong, passenger announcement.. the panic train is now pulling into\nplatform 8.1.3. Bing-bong. =)\n\nOK, having moved from our quad-xeon to an 8-CPU IBM pSeries 650\n(8x1.45GHz POWER4 instead of 4 x 3GHz Xeon), our query times have shot\nup and our website is next to unusable. The IBM is...
[ { "msg_contents": "Hi,\n\nFirst of all, the reason I'm posting on the PostgreSQL Performance \nlist is we have a performance issue with one of our applications and \nit's related to the speed at which PostgreSQL can do counts. But it's \nalso related to the data structure we've designed to develop our \ncom...
[ { "msg_contents": "Hello!\n\n \n\nKindly go through the following ,\n\n \n\n \n\nI wanted to know whether, the command line arguments(function arguments)\n------ $1 $2 $3 -- can be used as in the following , like, ----\n\n \n\n \n\nCREATE TYPE TT\nAS(something,something,.......................................
[ { "msg_contents": "It'd be helpful if posted with the EXPLAIN of the slow running queries on\nthe respective table.\n\ncool.\nL.\n\n\nOn 4/9/06, Doron Baranes <doron.baranes@dbnet.co.il> wrote:\n>\n> Hi\n>\n>\n>\n> I am new at postgres and I'm having performance issues.\n>\n> I am running on postgres 7.4.6 on ...
[ { "msg_contents": "Hello,\n\nwe have some performance problems with postgres 8.0.4, more precisely\nwith vacuuming 'large' database with a lot of deleted rows.\n\nWe had a 3.2 GB database, consisting mainly from 4 large tables, two of\nthem (say table A and B) having about 14.000.000 of rows and 1 GB of\nsize e...
[ { "msg_contents": "I have a slow sql:\nSELECT * FROM mytable WHERE id IN (1,3,5,7,....3k here...);\nmytable is about 10k rows.\n\nif don't use the \"IN\" clause, it will cost 0,11 second, otherwise it\nwill cost 2.x second\nI guess pg use linear search to deal with IN clause, is there any way\nto let pg use oth...
[ { "msg_contents": "Hello,\n\nI have difficulty in fetching the records from the database.\nDatabase table contains more than 1 GB data.\nFor fetching the records it is taking more the 1 hour and that's why it is\nslowing down the performance.\nplease provide some help regarding improving the performance and how...
[ { "msg_contents": "Hi \n\nI'm currently upgrading a Posgresql 7.3.2 database to a\n8.1.<something-good>\n\nI'd run pg_dump | gzip > sqldump.gz on the old system. That took about\n30 hours and gave me an 90GB zipped file. Running \ncat sqldump.gz | gunzip | psql \ninto the 8.1 database seems to take about the s...
[ { "msg_contents": "\nHi\n\nI'm currently upgrading a Posgresql 7.3.2 database to a\n8.1.<something-good>\n\nI'd run pg_dump | gzip > sqldump.gz on the old system. That took about\n30 hours and gave me an 90GB zipped file. Running\ncat sqldump.gz | gunzip | psql\ninto the 8.1 database seems to take about the sa...
[ { "msg_contents": "Hi,\n\nI Attached here a file with details about the tables, the queries and\nthe \nExplain analyze plans.\nHope this can be helpful to analyze my problem\n\n10x\nDoron\n\n-----Original Message-----\nFrom: Ragnar [mailto:gnari@hive.is] \nSent: Sunday, April 09, 2006 2:37 PM\nTo: Doron Baranes...
[ { "msg_contents": "Hi,\n\nI want to optimize something like this.\n\n- My items table:\ncode int -- can take one of 100 values\nproperty varchar(250) -- can take one of 5000 values\nparam01 char(10) -- can take one of 10 values\nparam02 char(10) -- can take one of 10 values\n...\n[ 20 sim...
[ { "msg_contents": "I have a query that is intended to select from multiple \"small tables\" \nto get a limited subset of \"incidentid\" and then join with a \"very \nlarge\" table. One of the operations will require a sequential scan, but \nthe planner is doing the scan on the very large table before joining t...
[ { "msg_contents": "Hi,\n\n \n\nI'm trying to evaluate PostgreSQL as a database that will have to store\na high volume of data and access that data frequently. One of the\nfeatures on our wish list is to be able to use stored procedures to\naccess the data and I was wondering if it is usual for stored procedures...
[ { "msg_contents": "Hi,\n\n I think this is an old question, but I want to know if it really is well worth to not create some foreign keys an deal with the referential integrity at application-level?????\n Specifically, the system we are developing is a server/cliente architecture that the server is the databa...
[ { "msg_contents": "Mark, \n\n>If you can upgrade to 8.1.(3), then the planner can consider paths that\n\n>use *both* the indexes on srcobj and dstobj (which would probably be\nthe \n>business!).\n\nYes, 8.1.3 resolved this issue. Thanks.\n\nHowever I am still getting seq scans on indexes for other queries\n\nFo...
[ { "msg_contents": "Thanks Mark, \n\n>Hmm - that first query needs to do a sort, so you might want to\nexperiment with the sort_mem parameter. Could you show us output from\nexplain analyze for >both the above queries?\n\nNot too concerned about the sort, more about the query performance with\nseq scan as the ta...
[ { "msg_contents": "Adding -performance back in\n\n-----Original Message-----\nFrom: Oscar Picasso [mailto:oscgoogle@yahoo.com]\nSent: Wednesday, April 12, 2006 5:51 PM\nTo: Jim Nasby\nSubject: Re: [PERFORM] Better index stategy for many fields with few values\n\n\nI would like to try it.\n\nHowever in an other ...
[ { "msg_contents": "Hi\n\nWhen I update a table that has 20 columns and the where clause includes\n16 of the columns (this is a data warehousing type update on aggregate\nfields),\n\nThe bitmap scan is not used by the optimizer. The table is indexed on 3\nof the 20 fields. The update takes really long to finish ...
[ { "msg_contents": "Doing my first write heavy database.\nWhat settings will help improve inserts?\nOnly a handfull of connections, but each doing up to 30 inserts/second.\nPlan to have 2 to 3 clients which most of the time will not run at the \nsame time, but ocasionaly it's possible two of them may bump into e...
[ { "msg_contents": "Greetings,\n\nI have 395M pg_dump from a PostgreSQL 7.4.2 database.\nThis dump is from one of our customer's servers. There is\na web-based administration UI which has been reported to\nbe extremely slow and unusable.\n\nTo see what's going on with their data I have grabbed a\ncopy of their ...
[ { "msg_contents": "Hello, postgresql 7.4.8 on SuSE Linux here.\n\nI have a table called DMO with a column called ORA_RIF defined as \n\"timestamp without time zone\" ;\n\nI created an index on this table based on this column only.\n\nIf I run a query against a text literal the index is used:\n\n > explain selec...
[ { "msg_contents": "laterooms=# explain analyze select allocation0_.\"ID\" as y1_, \nallocation0_.\"RoomID\" as y2_, allocation0_.\"StatusID\" as y4_, \nallocation0_.\"Price\" as y3_, allocation0_.\"Number\" as y5_, \nallocation0_.\"Date\" as y6_ from \"Allocation\" allocation0_ where \n(allocation0_.\"Date\" be...
[ { "msg_contents": "Hi, Oscar,\n\nPlease reply to the list and not privately, so others can learn from\nyour replies, and possibly have better Ideas than me.\n\nOscar Picasso wrote:\n\n> I cannot group the columns logically. Any column may or may not appear\n> in a query.\n\nThat's suboptimal.\n\n> Summrarizing ...
[ { "msg_contents": "Hello, postgresql 7.4.8 on SuSE Linux here.\n\nI have a table called DMO with a column called ORA_RIF defined as\n\"timestamp without time zone\" ;\n\nI created an index on this table based on this column only.\n\nIf I run a query against a text literal the index is used:\n\n> explain select ...
[ { "msg_contents": "Hi Markus,\n\nMarkus Schaber <schabi@logix-tt.com> wrote:\n\n>Hi, Oscar,\n>\n>Please reply to the list and not privately, so others can learn from\n>your replies, and possibly have better Ideas than me.\n\nThat was my intention. I made a mistake.\n\n>Oscar Picasso wrote:\n>\n>> I cannot group...
[ { "msg_contents": "You need to run EXPLAIN ANALYZE. Also, what's random_page_cost set to? And the output of \\d chkpfw_tr_dy_dimension. The cost for that index scan looks way too high.\n\nAnd please reply-all so that the list is included.\n\n> -----Original Message-----\n> From: Sriram Dandapani [mailto:sdandap...
[ { "msg_contents": "While working on determining a good stripe size for a database, I \nrealized it would be handy to know what the average request size is. \nGetting this info is a simple matter of joining pg_stat_all_tables \nand pg_statio_all_tables and doing some math, but there's one issue \nI've found;...
[ { "msg_contents": "Adding -performance back in...\n\n> From: Steve Poe [mailto:steve.poe@gmail.com]\n> Jim,\n> \n> I could be way off, but doesn't from pg_statio_user_tables \n> contain this\n> information?\n\nhttp://www.postgresql.org/docs/8.1/interactive/monitoring-stats.html#MONITORING-STATS-VIEWS states:\n\...
[ { "msg_contents": "Hi Jim\n\nThe problem is fixed. The destination table that was being updated had 3\nseparate indexes. I combined them to a multi-column index and the effect\nwas amazing.\nThanks for your input\n\nSriram\n\n-----Original Message-----\nFrom: Jim Nasby [mailto:jnasby@pervasive.com] \nSent: Thur...
[ { "msg_contents": "Hi everyone,\n\nI've seen my pg_toast tables are becoming bigger and bigger. After googling I would like to modify my max_fsm_pages parameter to prevent that kind of problem. So I'm wondering if changing this parameter is enough and after that how can I reduce the size of these tables? By doi...
[ { "msg_contents": "I have this query, where PG (8.1.2) prefers Merge Join over Hash Join\nover Nested Loop. However, this order turns out to increase in\nperformance. I was hoping someone might be able to shed some light on\nwhy PG chooses the plans in this order, and what I might do to\ninfluence it otherwis...
[ { "msg_contents": "Since my first post in this series, data has been successfully exported\nfrom the proprietary db (in CSV format) and imported into postgres\n(PostgreSQL 8.1.3 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.4\n20050721 (Red Hat 3.4.4-2)) using \nCOPY. The tablespace holding the tables+ind...
[ { "msg_contents": "Hi\n\n \n\nI have a cursor that fetches 150K rows and updates or inserts a table\nwith 150K rows.\n\n \n\nIt takes several minutes for the process to complete (about 15 minutes).\nThe select by itself (without cursor) gets all rows in 15 seconds.\n\n \n\nIs there a way to optimize the cursor ...
[ { "msg_contents": "create temporary table c_chkpfw_hr_tr_updates as\n\n select * from c_chkpfw_hr_tr a\n\n where exists(select 1 from\nchkpfw_tr_hr_dimension b\n\n WHERE a.firstoccurrence =\nb.firstoccurrence\n\n ...
[ { "msg_contents": "Explain analyze on the select statement that is the basis for temp table\ndata takes forever. I turned off enable_seqscan but it did not have an\neffect\n\n \n\n________________________________\n\nFrom: pgsql-performance-owner@postgresql.org\n[mailto:pgsql-performance-owner@postgresql.org] On...
[ { "msg_contents": "Explain output. I tried explain analyze but pgadmin froze after 10\nminutes.\n\n\nQUERY PLAN\n\"Seq Scan on c_chkpfw_hr_tr a (cost=0.00..225975659.89 rows=11000\nwidth=136)\"\n\" Filter: (subplan)\"\n\" SubPlan\"\n\" -> Bitmap Heap Scan on chkpfw_tr_hr_dimension b\n(cost=1474.64..10271...
[ { "msg_contents": "Got an explain analyze output..Here it is\n\n\n\"Seq Scan on c_chkpfw_hr_tr a (cost=0.00..225975659.89 rows=11000\nwidth=136) (actual time=2.345..648070.474 rows=22001 loops=1)\"\n\" Filter: (subplan)\"\n\" SubPlan\"\n\" -> Bitmap Heap Scan on chkpfw_tr_hr_dimension b\n(cost=1474.64..1...
[ { "msg_contents": ">This should be fixed by the changes I made recently in\nchoose_bitmap_and\n>--- it wasn't being aggressive about pruning overlapping AND conditions\nwhen a sub-OR was involved. It's possible the new coding is >*too*\naggressive, and will reject indexes that it'd be profitable to include;\nb...
[ { "msg_contents": "> > For now, I only could get good performance with bacula and \n> postgresql \n> > when disabling fsync...\n> \n> \n> Isn't that less safe?\n\nMost definitly.\n\nFWIW, I'm getting pretty good speeds with Bacula and PostgreSQL on a\nreasonably small db (file table about 40 million rows, filen...
[ { "msg_contents": "For the purpose of the application I need to establish some form of\nserialization, therefore I use FOR UPDATE. The query, inside the\nfunction, is like this:\n\npulitzer2=# explain analyze select id FROM messages JOIN\nticketing_codes_played ON id = message_id WHERE service_id = 1102 AND\nre...
[ { "msg_contents": "Hi!\n\n I am having trouble with like statements on one of my tables.\n\n I already tried a vacuum and analyze but with no success.\n\n The database is PostgreSQL Database Server 8.1.3 on i686-pc-mingw32\n\nI get the following explain and I am troubled by the very high\n\"startup_cost\" .....
[ { "msg_contents": "Hi,\n\ni remember something that you need a special index with locales<>\"C\".\n\nYou nned a different operator class for this index smth. like:\nCREATE INDEX idx_image_title\n ON image\n USING btree\n (title varchar_pattern_ops);\n\nYou can find the details here:\nhttp://www.postgresql.or...
[ { "msg_contents": "Thx Tom\n\nI guess I have to abandon the bulk update. The columns in the where\nclause comprise 80% of the table columns..So indexing all may not help.\nThe target table will have on average 60-180 million rows.\n\nI will attempt the in instead of exist and let you know the result\n\n-----Ori...
[ { "msg_contents": "Hi\n\nApologies if this has already been raised...\n\nPostgreSQL 8.1.3 and prior versions. Vacuum done.\n\nAssuming a single table with columns named c1 to cn and a requirement to\nselect from a particular position in multiple column order. \n\nThe column values in my simple example below den...
[ { "msg_contents": "Hi all,\n\nI've been struggling with some performance issues with certain\nSQL queries. I was prepping a long-ish overview of my problem\nto submit, but I think I'll start out with a simple case of the\nproblem first, hopefully answers I receive will help me solve\nmy initial issue.\n\nConsi...
[ { "msg_contents": "> > Bacula already serializes access to the database (they have \n> to support \n> > mysql/myisam), so this shouldn't help.\n> \n> Ouch, that hurts.\n> \n> To support mysql, they break performance for _every other_ \n> database system?\n\nActually, it probably helps on SQLite as well. And con...
[ { "msg_contents": "Greetings,\n\nI'd like to introduce a new readahead framework of the linux kernel:\nhttp://www.ussg.iu.edu/hypermail/linux/kernel/0603.2/1021.html\n\nHOW IT WORKS\n\nIn adaptive readahead, the context based method may be of particular\ninterest to postgresql users. It works by peeking into th...
[ { "msg_contents": "Hi,\n\nI am running on postgres 7.4.6.\nI did a vacuum analyze on the database but there was no change.\nI Attached here a file with details about the tables, the queries and\nthe Explain analyze plans.\nHope this can be helpful to analyze my problem\n\n10x\nDoron", "msg_date": "Thu, 20 A...
[ { "msg_contents": "Ok. But that means I need a trigger on the original column to update the\nnew column on each insert/update and that overhead.\n\n-----Original Message-----\nFrom: Ruben Rubio Rey [mailto:ruben@rentalia.com] \nSent: Thursday, April 20, 2006 12:49 PM\nTo: Doron Baranes; pgsql-performance@postgr...
[ { "msg_contents": "Hi,\n\n \n\nI was just wondering whether anyone has had success with storing more\nthan 1TB of data with PostgreSQL and how they have found the\nperformance.\n\n \n\nWe need a database that can store in excess of this amount and still\nshow good performance. We will probably be implementing s...
[ { "msg_contents": "I have copied the database from production server to my laptop (pg_dump,\netc...) to do some testing.\n\nWhile testing I have found out that one particular query is beeing much\nslower on my machine than on the server (it's not just because my laptop\nis much slower than the server), and foun...
[ { "msg_contents": "Hi again :)\n\nThis is a follow-up to the mega thread which made a Friday night more \ninteresting [1] - the summary is various people thought there was some \nissue with shared memory access on AIX.\n\nI then installed Debian (kernel 2.6.11) on the 8-CPU p650 (native - no \nLPAR) and saw jus...
[ { "msg_contents": "I'm new to PG and I'm testing default PG settings \nfor now.\n\nI have PG 8.1.3. installed with autovacuum=on.\n\nMy test table has 15830 records with 190 fields.\nI have different fields types (date, numeric, varchar,\ninteger, smallint,...).\n\nI decided to evaluate PG because I need to use...
[ { "msg_contents": "I'm preparing for an upgrade from PostgreSQL 7.4.5 to 8.1.3, and I \nnoticed a potential performance issue.\n\nI have two servers, a dual proc Dell with raid 5 running PostgreSQL \n7.4, and a quad proc Dell with a storage array running PostgreSQL \n8.1. Both servers have identical postgres...
[ { "msg_contents": "We're going to get one for evaluation next week (equipped with dual\n2Gbit HBA:s and 2x14 disks, iirc). Anyone with experience from them,\nperformance wise?\n\nRegards,\nMikael\n", "msg_date": "Thu, 20 Apr 2006 20:00:03 +0200", "msg_from": "\"Mikael Carneholm\" <Mikael.Carneholm@Wirel...
[ { "msg_contents": "Hi,\n\nWe had a database issue today that caused us to have to restore to \nour most recent backup. We are using PITR so we have 3120 WAL files \nthat need to be applied to the database.\n\nAfter 45 minutes, it has restored only 230 WAL files. At this rate, \nit's going to take about 10 ho...
[ { "msg_contents": "Greetings,\n\nI'd like to introduce a new readahead framework for the linux kernel:\nhttp://www.ussg.iu.edu/hypermail/linux/kernel/0603.2/1021.html\n\nHOW IT WORKS\n\nIn adaptive readahead, the context based method may be of particular\ninterest to postgresql users. It works by peeking into t...
[ { "msg_contents": "Hi,\n\nI more or less often come about the problem of aggregating a\nchild table counting it's different states. The cleanest solution\nI've come up with so far is:\n\nBEGIN;\nCREATE TABLE parent (\n\tid int not null,\n \tname text not null,\n\tUNIQUE(id)\n);\n\nCREATE TABLE child (\n\tname ...
[ { "msg_contents": "Hello ,\n \nI have a problem of performance with a query. I use PostgreSQL 8.1.3.\n \nThe distribution of Linux is Red Hat Enterprise Linux ES release 4 (Nahant Update 2) and the server is a bi-processor Xeon 2.4GHz with 1 Go of Ram and the size of the database files is about 60 Go.\n \nThe p...
[ { "msg_contents": "Hi\n\nI need to set security for row level but not based on Database user's\nlogin. It should be based on the user table login. For the particular\nuser I need to allow only the particular records to access insert,\nupdate delete and select.\n\nLet me explain clearly\n\nFor example think we a...
[ { "msg_contents": "We are experiencing gradually worsening performance in PostgreSQL 7.4.7, on \na system with the following specs:\nLinux OS (Fedora Core 1, 2.4 kernal)\nFlash file system (2 Gig, about 80% full)\n256 Meg RAM\n566 MHz Celeron CPU\n\nWe use Orbit 2.9.8 to access PostGres. The database contains 6...
[ { "msg_contents": "Your numbers seem quite ok considering the number of disks. We also get\na 256Mb battery backed cache module with it, so I'm looking forward to\ntesting the write performance (first using ext3, then xfs). If I get the\nenough time to test it, I'll test both raid 0+1 and raid 5\nconfigurations...
[ { "msg_contents": "Hi List\nI have maybe an easy question but i do not find an answer, i have this\nSQL query:\n\nSELECT geom,group,production_facs FROM south_america\n\t\tWHERE municipio = ''\n\t\t\tOR municipio = 'ACRE'\n\t\t\tOR municipio = 'ADJUNTAS'\n\t\t\tOR municipio = 'AGUADA'\n\nThe performance of this...
[ { "msg_contents": "Hi,\n\nI'm just getting familiar with EXPLAIN ANALYZE output, so I'd like to get\nsome help to identify which one of the following queries would be better:\n\nteste=# EXPLAIN ANALYZE SELECT aa.avaliacao_id, MAX(aa.avaliacao_versao) AS\navaliacao_versao, a.avaliacao_nome, aa.editar\nteste-# FR...
[ { "msg_contents": "I'm preparing for an upgrade from PostgreSQL 7.4.5 to 8.1.3, and I \nnoticed a potential performance issue.\n\nI have two servers, a dual proc Dell with raid 5 running PostgreSQL \n7.4, and a quad proc Dell with a storage array running PostgreSQL \n8.1. Both servers have identical postgres...
[ { "msg_contents": "I have a table of ~ 41 000 rows with an index on the result of a function\napplied to a certain text column (the function basically removes \"neutral\"\nor common words like \"the\",\"on\",\"a\", etc. from the string).\n\nI then execute a query with a where clause on this function result with...
[ { "msg_contents": "> If I'm reading the original post correctly, the biggest issue is \n> likely to be that the 14 disks on each 2Gbit fibre channel will be \n> throttled to 200Mb/s by the channel , when in fact you could expect \n> (in RAID 10\n> arrangement) to get about 7 * 70 Mb/s = 490 Mb/s.\n\n> The two c...
[ { "msg_contents": "Hi\n\n \n\nI have queries that use like operators and regex patterns to determine\nif an ip address is internal or external (this is against a table with\nsay 100 million distinct ip addresses).\n\n \n\nDoes the inet data type offer comparison/search performance benefits\nover plain text for ...
[ { "msg_contents": "Hi all,\n\n I have the following running on postgresql version 7.4.2:\n\nCREATE SEQUENCE agenda_user_group_id_seq\nMINVALUE 1\nMAXVALUE 9223372036854775807\nCYCLE\nINCREMENT 1\nSTART 1;\n\nCREATE TABLE AGENDA_USERS_GROUPS\n(\n AGENDA_USER_GROUP_ID INT8\n CONSTRAINT ...
[ { "msg_contents": "Hello,\nThe performance comparison saga of the last month continues (see list archive).\nAfter some time experimenting on windows, the conclusion is clear:\n\nwindows is likely crap for databases other than MS-SQL.\n\nI guess that MS-SQL uses lot of undocumented api calls, may run in kernel\n...
[ { "msg_contents": "Fellow PostgreSQLers,\n\nThis post is longish and has a bit of code, but here's my question up- \nfront: Why are batch queries in my PL/pgSQL functions no faster than \niterating over a loop and executing a series of queries for each \niteration of the loop? Are batch queries or array or se...
[ { "msg_contents": "For the query\n\n \n\n \n\nSelect col1 from table1\n\nWhere col1 like '172.%'\n\n \n\nThe table has 133 million unique ip addresses. Col1 is indexed.\n\n \n\nThe optimizer is using a sequential scan\n\n \n\nThis is the explain analyze output\n\n \n\n\"Seq Scan on table1 (cost=0.00..2529284.80...
[ { "msg_contents": "\n\tHere is a simple test case for this strange behaviour :\n\nannonces=> CREATE TABLE test.current (id INTEGER PRIMARY KEY, description \nTEXT);\nINFO: CREATE TABLE / PRIMARY KEY creera un index implicite \n<<current_pkey>> pour la table <<current>>\nCREATE TABLE\n\nannonces=> CREATE TABL...
[ { "msg_contents": "\nI've been given the task of making some hardware recommendations for\nthe next round of server purchases. The machines to be purchased\nwill be running FreeBSD & PostgreSQL.\n\nWhere I'm stuck is in deciding whether we want to go with dual-core\npentiums with 2M cache, or with HT pentiums ...
[ { "msg_contents": "The col is a varchar. I am currently testing with the inet data type(and\nalso the ipv4 pgfoundry data type).\n\nDue to time constraints, I am trying to minimize code changes.\n\nWhat kind of index do I need to create to enable efficient range scans\n(e.g anything between 172.16.x.x thru 172....
[ { "msg_contents": "Using an index on col1 with the operator class varchar_pattern_ops , I\nwas able to get a 3 second response time. That will work for me.\nI used a like '172.%' and an extra pattern matching condition to\nrestrict\nBetween 172.16.x.x and 172.31.x.x\n\nThanks for the input..I will also test the...
[ { "msg_contents": "As others have noted, the current price/performance \"sweet spot\" for DB servers is 2S 2C AMD CPUs. These CPUs are also the highest performing x86 compatible solution for pg.\n\nIf you must go Intel for some reason, then wait until the new NGMA CPU's (Conroe, Merom, Woodcrest) come out and ...
[ { "msg_contents": "Hi all,\nwe encounter issues when deleting from a table based on id (primary key). On\ncertain 'id', it took forever to delete and the i/o is 100% busy.\nTable scenario has around 1400 entries. It is the parent of 3 other table.\n Table \"public.scenario\"\n ...
[ { "msg_contents": "I've had intermittent \"freeze and reboot\" and, worse, just plain freeze problems with the Core Duo's I've been testing. I have not been able to narrow it down so I do not know if it is a platform issue or a CPU issue. It appears to be HW, not SW, related since I have experienced the probl...