threads
listlengths
1
275
[ { "msg_contents": "Hello all,\n\nI've been struggling with some performance questions regarding our\nPostgres databases. Here's the background:\n\nWe run 4 ~25-30Gb databases which cache information from eBay. These\ndatabases have had performance issues since before I joined the company.\nThe databases have go...
[ { "msg_contents": "> 4) Much of my reading of the PG docs and list archives seems to suggest\nthat much of performance tuning is done at the query level - you have to\nknow how to ask for information in an efficient way.\n\nPerformance does not exist in a vacuum (ho ho, PostgreSQL joke). The\nperson writing th...
[ { "msg_contents": "Hi,\n\nI was called to find out why one of our PostgreSQL servers has not a\nsatisfatory response time. The server has only two SCSI disks configurated\nas a RAID1 software.\n\nWhile collecting performance data I discovered very bad numbers in the I/O\nsubsystem and I would like to know if Iï...
[ { "msg_contents": "[nospam@hardgeus.com - Thu at 06:37:12PM -0600]\n> As my dataset has gotten larger I have had to throw more metal at the\n> problem, but I have also had to rethink my table and query design. Just\n> because your data set grows linearly does NOT mean that the performance of\n> your query is g...
[ { "msg_contents": "[Chris - Fri at 02:32:05PM +1100]\n> Not really. A bad query is a bad query (eg missing a join element). It \n> won't show up for 3000 rows, but will very quickly if you increase that \n> by a reasonable amount. Even as simple as a missing index on a join \n> column won't show up for a small ...
[ { "msg_contents": "Does anyone have any performance experience with the Dell Perc 5i\ncontrollers in RAID 10/RAID 5?\n\nThanks,\n\nAlex\n\nDoes anyone have any performance experience with the Dell Perc 5i controllers in RAID 10/RAID 5?Thanks,Alex", "msg_date": "Fri, 1 Dec 2006 11:34:33 -0500", "msg_from...
[ { "msg_contents": "Hello Performance,\n\nYesterday, with help from the admin list, we took care of a problem we \nwere having with creating tables/views/indexes following a server \noverheat & crash (an index on pg_attribute was corrupted, causing the \ncreate to hang and go through the roof on memory usage unt...
[ { "msg_contents": "Hello..\n\nI have a low performance problem with regexp.\n\nHere are the details:\n\nasterisk=> explain analyze SELECT * FROM destlist WHERE '0039051248787' ~ \nprefix AND id_ent='-2' AND dir=0 ORDER by length(prefix) DESC;\n QUERY P...
[ { "msg_contents": "Hi,\n\nI am struggling with the performance of a JBoss based J2EE application\nwith CMP 2.1. beans and using PostgreSQL as database back-end.\n\nBecause JBoss is largely responsible for the SQL queries that are send\nto the back-end , I would like to see the queries that are actually\nreceive...
[ { "msg_contents": "The following left outer join plan puzzles me:\n\nEXPLAIN ANALYZE SELECT * from t28 LEFT OUTER JOIN (t1 JOIN t11 ON\n(t11.o = '<http://example.org>' AND t11.s = t1.o)) ON t28.s = t1.s\nWHERE t28.o = '\"spec\"';\n\nt28, t1, and t11 all have indexed columns named 's' and 'o' that contain 'text'...
[ { "msg_contents": "I am trying to optimize queries on one of the large table we have by\npartitioning it. To test it I created a sample script. When I use Explain\nAnalyze on one of the queries the query planer shows sequence scan on all\nthe child partitions instead of only one child containing the required da...
[ { "msg_contents": "I have always been frustrated by the wildly erratic performance of our \npostgresql 8 server. We run aprogram that does heavy data importing via a \nheuristics-based import program. Sometime records being imported would just \nfly by, sometimes they would crawl. The import program imports rec...
[ { "msg_contents": "Hi List,\n\nWe've been doing some benchmarks lately (one of them made it to the \nPostgreSQL frontpage) with postgresql 8.2 dev (cvs checkout of 3 june \n2006). But we prefer of course to run a more production-like version and \ninstalled postgresql 8.2rc1.\n\nAs it turns out after a dump/res...
[ { "msg_contents": "Hi\n\n \n\nWe are migrating our Postgres 7.3.4 application to postgres 8.1.5 and also moving it to a server with a much larger hardware configuration as well. The server will have the following specification.\n\n \n\n- 4 physical CPUs (hyperthreaded to 8)\n\n- 32 GB RAM\n\n- x86_64 archite...
[ { "msg_contents": "How can I move pg_xlog to another drive on Windows? In Linux I can use a\nsymlink, but how do I that on windows?\n\n-- \nGroeten,\n\nJoost Kraaijeveld\nAskesis B.V.\nMolukkenstraat 14\n6524NB Nijmegen\ntel: 024-3888063 / 06-51855277\nfax: 024-3608416\nweb: www.askesis.nl\n", "msg_date": "...
[ { "msg_contents": "Hi all, I've run into an issue with a Pg 7.4.6 to 8.1.5 upgrade along \nwith hardware upgrade. \nI moved the database from a 2x 3.0ghz Xeon (512kb w/HT) to a 2x Opteron \n250. The database is in\nmemory on a tmpfs partition. (the application can rebuild the db during \ntotal system failure)\...
[ { "msg_contents": "Hi. I have a performance problem with this simple query:\n\nSELECT collect_time FROM n_traffic JOIN n_logins USING (login_id)\nWHERE n_logins.account_id = '1655' ORDER BY collect_time LIMIT 1;\n----------------------------------------\nLimit (cost=0.00..2026.57 rows=1 width=8) (actual\ntime=...
[ { "msg_contents": "Thanks to all for the feedback on this issue.. After reviewing your comments, Im thinking of changing to the following values\n\n \n\nshared_buffers = 786432 - If Ive done my math right, then this is 6GB which is 25% of 24GB ( I want to preserve the other 8GB for OS and App )\n\n \n\neffec...
[ { "msg_contents": "Hi,\n\nI have to refactoring a 'DELETE FROM x WHERE y IN (...)' because IN got\nto much parameters. => 'stack depth limit exceeded'\nI don't want to increase just the parameter for max_stack_depth. It is\nbetter to refactoring because the number of arguments to IN may increase\nin the future....
[ { "msg_contents": "Hello,\n\nIs there a relation between database size and PostGreSQL restart duration ?\nIf true, i'm looking for a law predicting how much time is required to \nrestart PostGreSQL, depending on the DB size.\n\nDoes anyone now the behavior of restart time ?\n\nThanks\n\n-- \n-- Jean Arnaud\n\n"...
[ { "msg_contents": "I am wanting some ideas about improving the performance of ORDER BY in\nour use. I have a DB on the order of 500,000 rows and 50 columns.\nThe results are always sorted with ORDER BY. Sometimes, the users end up\nwith a search that matches most of the rows. In that case, I have a\nLIMIT 50...
[ { "msg_contents": "I wanted to post a follow up to the list regarding a high \nshared_buffers value on OS X 10.4.8.\n\nThanks to Tom's help we successfully compiled PostgreSQL 8.1.5 using \n64-bit on OS X Server 10.4.8 (You can find info. for this on pgports)\n\nshared_buffers can now be set as high as shmmax...
[ { "msg_contents": "We're using 8.1 - I thought such a construct was safe in pg 8.1:\n\n select max(indexed_value) from huge_table;\n\nwhile earlier we had to use:\n\n select indexed_value from huge_table order by indexed_value desc limit 1;\n\nseems like I was wrong:\n\n\nmydb=> explain analyze select indexed_v...
[ { "msg_contents": "[Tobias Brox - Wed at 04:01:56AM +0100]\n> We're using 8.1 - I thought such a construct was safe in pg 8.1:\n> \n> select max(indexed_value) from huge_table;\n> \n> while earlier we had to use:\n> \n> select indexed_value from huge_table order by indexed_value desc limit 1;\n> \n> seems lik...
[ { "msg_contents": "Does PostgreSQL lock the entire row in a table if I update only 1\ncolumn?\n\n\n-- \nGroeten,\n\nJoost Kraaijeveld\nAskesis B.V.\nMolukkenstraat 14\n6524NB Nijmegen\ntel: 024-3888063 / 06-51855277\nfax: 024-3608416\nweb: www.askesis.nl\n", "msg_date": "Wed, 06 Dec 2006 08:04:12 +0100", ...
[ { "msg_contents": "All tests are with bonnie++ 1.03a\n\nMain components of system:\n16 WD Raptor 150GB 10000 RPM drives all in a RAID 10\nARECA 1280 PCI-Express RAID adapter with 1GB BB Cache (Thanks for the \nrecommendation, Ron!)\n32 GB RAM\nDual Intel 5160 Xeon Woodcrest 3.0 GHz processors\nOS: SUSE Linux 1...
[ { "msg_contents": "Hi,\n I have a \"product\" table having 350 records. It takes approx 1.8 seconds to get all records from this table. I copies this table to a \"product_temp\" table and run the same query to select all records; and it took 10ms(much faster).\n I did \"VACUUM FULL\" on \"product\" table but ...
[ { "msg_contents": "Hello\n\nWe are having some problems with an UPDATE ... FROM sql-statement and\npg-8.1.4. It takes ages to finish. The problem is the Seq Scan of the\ntable 'mail', this table is over 6GB without indexes, and when we send\nthousands of this type of statement, the server has a very high iowait...
[ { "msg_contents": "Joshua D. Drake wrote:\n> I agree. I have many people that want to purchase a SAN because someone\n> told them that is what they need... Yet they can spend 20% of the cost\n> on two external arrays and get incredible performance...\n>\n> We are seeing great numbers from the following config:\...
[ { "msg_contents": "\n Hello,\n\n We're planning new server or two for PostgreSQL and I'm wondering Intel\nCore 2 (Woodcrest for servers?) or Opteron is faster for PostgreSQL now?\n\n When I look through hardware sites Core 2 wins. But I believe those tests\nmostly are being done in 32 bits. Does the picture ...
[ { "msg_contents": "\n\n\n\n\n07/12/2006 04:31\n\nSQL_CALC_FOUND_ROWS in POSTGRESQL\n\nIn mysqln i m using the command SQL_CALC_FOUND_ROWS in follow sintax.\nSELECT SQL_CALC_FOUND_ROWS name, email, tel FROM mytable WHERE name\n<> '' LIMIT 0, 10\nto have the recorset data.\nand\nSELECT FOUND_ROWS();\nto have the ...
[ { "msg_contents": "\nI'm gearing up to do some serious investigation into performance for\nPostgreSQL with regard to our application. I have two issues that I've\nquestions about, and I'll address them in two seperate emails.\n\nThis email regards the tuning of work_mem.\n\nI'm planning on going through all of...
[ { "msg_contents": "\nI'm gearing up to do some serious investigation into performance for\nPostgreSQL with regard to our application. I have two issues that I've\nquestions about, and I'll address them in two seperate emails.\n\nThis one regards tuning shared_buffers.\n\nI believe I have a good way to monitor ...
[ { "msg_contents": "arthurbellis@gmail.com writes:\n> If anyone knows what may cause this problem, or has any other ideas, I\n> would be grateful.\n\nSubmit the command \"VACUUM ANALYZE VERBOSE locations;\" on both\nservers, and post the output of that. That might help us tell for\nsure whether the table is blo...
[ { "msg_contents": "Hi,\n\nI have written my own 'large object'-like feature using the following table:\n\n----\nCREATE TABLE blob\n(\n id bigint NOT NULL,\n pageno integer NOT NULL,\n data bytea,\n CONSTRAINT blob_pkey PRIMARY KEY (id, pageno)\n)\nWITHOUT OIDS;\nALTER TABLE blob ALTER COLUMN data SET STORAGE EX...
[ { "msg_contents": "Hi yall,\n\nalthough I've worked with databases for more than 7 years now, I'm\npetty new to PostgreSQL.\n\nI have an application using SQLite3 as an embedded SQL solution\nbecause it's simple and it can handle the load that *most* of my\nclients have.\n\nBecause of that '*most*' part, becaus...
[ { "msg_contents": "Hello,\n\nHow to get Postgresql Threshold value ?. Any commands available ?. \n\nRegards, Ravi\nDISCLAIMER \nThe contents of this e-mail and any attachment(s) are confidential and intended for the \n\nnamed recipient(s) only. It shall not attach any liability on the originator or HCL or its ...
[ { "msg_contents": "Thank you very much for your reply. \n\nThis is not working in Postgresql 8.1.4. Its throwing some error. \n\nBTW, how to fetch the total disk space that is alloted to DB in postgresql\n?. Any commands available ?. \n\nRegards, Ravi\n\n\n\n\n-----Original Message-----\nFrom: Kaloyan Iliev [ma...
[ { "msg_contents": "Thanks. \n\nI am using Postgres 8.1.4 in windows 2000 and i don't get the proper\nresponse for threshold.\n\n---------\n\npg_database_size(name) - is giving the current space used by DB. But I want\nlike \"Total space utilized by DB\" and \"Free space\". \n\nRegards, Ravi\n\n\n-----Original M...
[ { "msg_contents": "Hello!\n\nIn our JAVA application we do multiple inserts to a table by data from a \nHash Map. Due to poor database access implemention - done by another \ncompany (we got the job to enhance the software) - we cannot use prepared \nstatements. (We are not allowed to change code at database...
[ { "msg_contents": "Hi all,\n\nI'd like to get suggestions from all you out there for\na new Postgresql server that will replace an existing one.\n\nMy performance analysis shows very *low* iowaits,\nand very high loads at times of peak system activity.\nThe average concurrent processes number is 3/4, with peaks...
[ { "msg_contents": "Hi list !\n\nI am running a query to update the boolean field of a table based on\nanother table's fields.\n\nThe query is (changed names for readability):\nUPDATE t1\nSET booleanfield = (t2.field1 IN ('some', 'other') AND t2.field2 = 'Y')\nFROM t2\nWHERE t1.uid = t2.uid\n\nt2.uid is the PRIM...
[ { "msg_contents": "Hi,\n\nOur application is using Postgres 7.4 and I'd like to understand the root\ncause of this problem:\n\nTo speed up overall insert time, our application will write thousands of\nrows, one by one, into a temp table (same structure as a permanent table),\nthen do a bulk insert from the temp...
[ { "msg_contents": "Hi,\n\n I have a query that uses an IN clause and it seems in perform great\nwhen there is more than two values in it but if there is only one it is\nreally slow. Also if I change the query to use an = instead of IN in the\ncase of only one value it is still slow. Possibly I need to reindex ...
[ { "msg_contents": "I've currently got this table:\n\n,----\n| n=# \\d nanpa\n| Table \"public.nanpa\"\n| Column | Type | Modifiers \n| ------------+--------------+-----------\n| state | character(2) | \n| npa | character(3) | not null\n| nxx | character(3) | not null\...
[ { "msg_contents": "Hi, everybody!\n\nRunning the same query on pg 8.2 through EXPLAIN ANALYZE takes 4x-10x time as running it without it.\nIs it ok?\n\n\nExample:\n\ntesting=> select count(*) from auth_user;\n count \n---------\n 2575675\n(1 row)\n\nTime: 1450,829 ms\ntesting=> explain analyze select count(*)...
[ { "msg_contents": "I have the opportunity to benchmark a system is based on Supermicro 6015B-8V. \nIt has 2x Quad Xeon E5320 1.86GHZ, 4GB DDR2 533, 1x 73GB 10k SCSI.\n\nhttp://www.supermicro.com/products/system/1U/6015/SYS-6015B-8V.cfm\n\nWe can add more RAM and drives for testing purposes. Can someone suggest...
[ { "msg_contents": "Hello,\nI am trying to make partitions:\n\nCREATE SEQUENCE data_seq;\nCREATE TABLE data (\n identyf bigint,\n name varchar,\n added timestamp default now()\n);\n\n/*********************************************/\nCREATE TABLE data_a (CHECK (name LIKE varchar 'a%')\n) ...
[ { "msg_contents": "I'm writing a webmail-type application that is meant to be used in a\ncorporate environment. The core of my system is a Postgres database\nthat is used as a message header cache. The two (relevant) tables\nbeing used are pasted into the end of this message. My problem is\nthat, as the mess...
[ { "msg_contents": "I have a table similar to this:\n\nCREATE TABLE event_resources (\n event_resource_id serial NOT NULL,\n event_id integer NOT NULL,\n resource_id integer NOT NULL,\n start_date timestamptz NOT NULL,\n end_date timestamptz NOT NULL,\n\tCONSTRAINT event_resources_pkey PRIMARY KEY...
[ { "msg_contents": "Hi all,\n\nA vacuum full command logs the message:\n... LOG: transaction ID wrap limit is 1073822617, limited by database \"A\"\n\nSometimes ago, the vacuum full logged:\n... LOG: transaction ID wrap limit is 2147484148, limited by database \"A\"\n\nWhat causes that difference of the limit ...
[ { "msg_contents": "I have a database that has 3 tables with a relatively small number of\nrecords in each. (see schema/counts below). These 3 tables are loaded\nwhen the db is created and there are never any updates or deletes on the\n3 tables. This database does have many other tables.\n\nds_tables 132 rows,...
[ { "msg_contents": "I have the following query which performs extremely slow:\nselect min(nlogid) as start_nlogid,\n max(nlogid) as end_nlogid,\n min(dtCreateDate) as start_transaction_timestamp,\n max(dtCreateDate) as end_transaction_timestamp\nfrom activity_log_facts \nwhere nlogid > ( select...
[ { "msg_contents": "HI,\n \nI've looking around the log files of my server and lately they indicate that I should consider increase the check_point segments because they're beeing reading too often and also recommend increasing the max_fsm_pages over 169728...\n \nthose are the config values present in the postg...
[ { "msg_contents": "I have a question about the following. The table has an index on (clicked at time zone 'PST'). I am using postgres 8.1.3\n\nActually, I think I answered my own question already. But I want to confirm - Is the GROUP BY faster because it doesn't have to sort results, whereas DISTINCT must pr...
[ { "msg_contents": "Hi,\n\nhas anyone here had any good/bad experiences clustering & load balancing \na PostgreSQL server on Redhat (ES)?\n\ni have two identical servers with plenty of memory plus a nice disc \narray. the solution should have both redundancy and performance. BTW: \nit's a back end to a web based...
[ { "msg_contents": "Hi,\nWe have a database with one table of 10,000,000 tuples and 4 tables with 5,000,000 tuples.\nWhile in SQL Server it takes 3 minutes to restore this complete database, in PostgreSQL it takes more than 2 hours.\nThe Backup takes 6 minutes in SQLServer and 13 minutes (which is not a problem)...
[ { "msg_contents": "I created a 10GB partition for pg_xlog and ran out of disk space today\nduring a long running update. My checkpoint_segments is set to 12, but\nthere are 622 files in pg_xlog. What size should the pg_xlog partition\nbe? \n\nPostmaster is currently not starting up (critical for my organizat...
[ { "msg_contents": "Hey Everyone,\n\nI am having a bit of trouble with a web host, and was wondering as what\nyou would class as a high level of traffic to a database (queries per\nsecond) to an average server running postgres in a shared hosting\nenvironment (very modern servers).\n\nMany Thanks in Advance,\nOl...
[ { "msg_contents": "Hi List(s);\n\nI'm wanting to find more details per the following methods, can someone \nexplain to me exactly what each of these methods is, how its implemented in \npostgres or point me to some docs or README's that explain these methods?\n\nSome of 'em are obviously no-brainers but I'm wri...
[ { "msg_contents": "Hi All,\n\nA friend has asked me about creating a unique table for individual users \nthat sign up for his site. (In essence, each user who signs up would \nessentially get a set of CREATE TABLE {users,friends,movies,eats}_<id> ( \n... ); statements executed, the idea being to reduce the num...
[ { "msg_contents": "how can i get the disk usage for each table? can i do it via SQL? \n\n\n\nThanks,\n\nMailing-Lists\n", "msg_date": "Thu, 28 Dec 2006 10:42:52 +0800", "msg_from": "JM <jerome@gmanmi.tv>", "msg_from_op": true, "msg_subject": "Need Help" }, { "msg_contents": "\n--- JM <je...
[ { "msg_contents": "I don't want to violate any license agreement by discussing performance, \nso I'll refer to a large, commercial PostgreSQL-compatible DBMS only as \nBigDBMS here.\n\nI'm trying to convince my employer to replace BigDBMS with PostgreSQL \nfor at least some of our Java applications. As a proof...
[ { "msg_contents": "Good day,\n\nI have been reading about the configuration of postgresql, but I have a \nserver who does not give me the performance that should. The tables are \nindexed and made vacuum regularly, i monitor with top, ps and \npg_stat_activity and when i checked was slow without a heavy load ov...
[ { "msg_contents": "Good day,\n\nI have been reading about the configuration of postgresql, but I have a\nserver who does not give me the performance that should. The tables are\nindexed and made vacuum regularly, i monitor with top, ps and\npg_stat_activity and when i checked was slow without a heavy load overa...
[ { "msg_contents": "\nHi\n\nI have a simple query which uses 32ms on 7.4.14 and 1015ms on 8.2.0.\nI guess 7.4.14 creates a better execution plan than 8.2.0 for this query but\ni don't know how to get it to select a better one.\nExplain analyse output will be found near the end of the e-mail.\n\n(I have simplifie...
[ { "msg_contents": "I'm using pg_dump/pg_restore to quickly copy databases between servers. But my server keeps crashing when I run pg_restore:\n\n glibc detected *** double free or corruption (!prev): 0x0a00b1a0\n\nPostgres: 8.1.4\n Linux: 2.6.12-1.1381_FC3\n glibc: 2.3.6-0.fc3.1\n\nServer: Dell\n CPU...
[ { "msg_contents": "Hi all,\n\n In a previous post, Ron Peacetree suggested to check what work_mem\nneeds a query needs. How that can be done?\n\nThanks all\n-- \nArnau\n", "msg_date": "Tue, 02 Jan 2007 10:55:18 +0100", "msg_from": "Arnau <arnaulist@andromeiberica.com>", "msg_from_op": true, "m...
[ { "msg_contents": "I'm curious what parameters you guys typically *always* adjust on new\nPostgreSQL installs. \n\nI am working with a database that contains several large tables (10-20\nmillion) and many smaller tables (hundreds of rows). My system has 2 GB\nof RAM currently, although I will be upping it to ...
[ { "msg_contents": "Hello, we recently migrated our system from 8.1.x to 8.2 and when \nrunning dumps have noticed an extreme decrease in speed where the dump \nis concerned (by more than a factor of 2). I was wondering if someone \nmight offer some suggestions as to what may be causing the problem. How \nimp...
[ { "msg_contents": "Hmm... This gets stranger and stranger. When connecting to the \ndatabase with the psql client in 8.2's bin directory and using commands \nsuch as \\d the client hangs, or takes an extremely long time. If we \nconnect to the same 8.2 database with a psql client from 8.1.4, both \nremotely ...
[ { "msg_contents": "I am sure that this has been discussed before, but I can't seem to find\nany recent posts. (I am running PostgreSQL 8.2)\n\nI have always ran PostgreSQL on Linux in the past, but the company I am\ncurrently working for uses Windows on all of their servers. I don't\nhave the luxury right now ...
[ { "msg_contents": "Well, once again I'm hosed because there's no way to tell the optimizer the cost for a user-defined function. I know this issue has already been raised (by me!) several times, but I have to remind everyone about this. I frequently must rewrite my SQL to work around this problem.\n\nHere is ...
[ { "msg_contents": "I'm building an e-mail service that has two requirements: It should\nindex messages on the fly to have lightening search results, and it\nshould be able to handle large amounts of space. The server is going\nto be dedicated only for e-mail with 250GB of storage in Raid-5. I'd\nlike to know ho...
[ { "msg_contents": "Hello,\n \nI am looking at upgrading from 8.1.2 to 8.2.0, and I've found a query which\nruns a lot slower. Here is the query:\n \nselect type, currency_id, instrument_id, sum(amount) as total_amount from\nom_transaction \nwhere \nstrategy_id in\n('BASKET1','BASKET2','BASKET3','BASKET4','BASK...
[ { "msg_contents": "Hi all,\n\n I'm not sure if this question fits in the topic of this list.\n\n I'm interested in partitioning and it's the first time I'd use it.\nThere is an issue I don't know how you handle it. Lets say I'm\ninterested in store monthly based statistical data like the example of\nhttp://...
[ { "msg_contents": "Take a look at the set of partitioning functions I wrote shortly after\nthe 8.1 release:\n\nhttp://www.studenter.hb.se/~arch/files/part_functions.sql\n\nYou could probably work something out using those functions (as-is, or\nas inspiration) together with pgAgent\n(http://www.pgadmin.org/docs/...
[ { "msg_contents": "Greetings,\n\nI've been running Postgresql for many years now and have been more than \nhappy with its performance and stability. One of those things I've never \nquite understood was vacuuming. So I've been running 8.1.4 for a while \nand enabled 'autovacuum' when I first insalled 8.1.4 .....
[ { "msg_contents": "Hi there, we've partioned a table (using 8.2) by day due to the 50TB of\ndata (500k row size, 100G rows) we expect to store it in a year.\nOur performance on inserts and selects against the master table is\ndisappointing, 10x slower (with ony 1 partition constraint) than we get by\ngoing to...
[ { "msg_contents": "I'd like to optimize my postgres configuration for optimal \nperformance under typical load. Unfortunately, as I understand \nthings, that implies that I have to have a way to repeat the same \nload each time I try out new settings, so that I can fairly compare. \nIt's difficult for me to...
[ { "msg_contents": "This is a query migrated from postgres. In postgres it runs about 10,000 times *slower* than on informix on somewhat newer hardware. The problem is entirely due to the planner. This PostgreSQL 8.1.4 on linux, 2 gigs of ram.\n\nThe table:\n Table \"reporting.bill_rpt_work\"\n Colu...
[ { "msg_contents": "Forget abount \"IN\". Its horribly slow.\n\ntry :\n\nselect w.appid,\n w.rate,\n w.is_subscribed,\n sum(w.hits) AS Hits,\n sum(w.sius) AS IUs,\n sum(w.total_amnt) AS Total,\n sum(w.hits) * w.rate AS ByHits,\n sum(w.sius) * w.rate AS BYIUS\n from bill...
[ { "msg_contents": "GFS2, OFCS2, lustre, CXFS, GPFS, Veritas and what else there is..\n\n..has someone experience with any of those? Is it bearable to run PG on \nthem from a performance point of view? I guess not, but any positive \nreports?\n\nThanks\n\n-- \nRegards,\nHannes Dorbath\n", "msg_date": "Tue, 0...
[ { "msg_contents": " Yes it does:\n\nSET EXPLAIN ON;\n\nIt writes the file to sqexplain.out\n\n-----Original Message-----\nFrom: pgsql-performance-owner@postgresql.org\n[mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Tom Lane\nSent: Tuesday, January 09, 2007 9:13 AM\nTo: Gregory S. Williamson\nCc: ...
[ { "msg_contents": "I am developing an application that has very predictable database\noperations:\n -inserts several thousand rows into 3 tables every 5 minutes. (table\n contain around 10 million rows each)\n -truncates and rebuilds aggregate tables of this data every 5 minutes.\n (several thousand rows ea...
[ { "msg_contents": "I have a table of messages with paths and inserted dates (among other\nthings), like so:\n\nCREATE TABLE Messages (\n msgkey BIGSERIAL PRIMARY KEY,\n path TEXT NOT NULL,\n inserted TIMESTAMP WITHOUT TIMEZONE DEFAULT NOW()\n);\n\nI run a query to determine which days actually saw emai...
[ { "msg_contents": "Actually, as I recently discovered, GROUP BY is faster than DISTINCT. It's just due to how they are implemented, so don't go looking for any deep reason :) The thread \"GROUP BY vs DISTINCT\" from 2006-12-20 discusses it. DISTINCT sorts the results to find the unique rows, but GROUP BY use...
[ { "msg_contents": "I have a query made by joining two subqueries where the outer query\nperforming the join takes significantly longer to run than the two\nsubqueries. \n\nThe first subquery runs in 600ms. The seconds subquery runs in 700ms. \nBut the outer query takes 240 seconds to run! Both of the two\nsu...
[ { "msg_contents": "Hi all,\n\n I've got a doubt about how to create an index and a primary key. Lets \nsay I have the following table:\n\n CREATE TABLE blacklist\n (\n telephone VARCHAR(15),\n customer_id INT4\n CONSTRAINT fk_blacklist_customerid REFERENCES\n ...
[ { "msg_contents": "Hello all!\nRunning a vac on an 8.2 client connecting to an 8.2 database (following \nexample was for a 14 row static table) - vacuums will sit (for lack of a \nbetter word) for anywhere from ten to twenty minutes before taking a \nlock out on the table and doing work there. Once the vacuum d...
[ { "msg_contents": "Hi,\n\nI know that the problem with the following SQL is the \"LOG.CODCEP =\nENDE.CODCEP||CODLOG\" condition, but what can I\ndo to improve the performance?\n\nIs there a type of index that could help or is there another way to build\nthis SQL?\n\nThank you in advance!\n\nexplain analyze\nSEL...
[ { "msg_contents": "We have a table with a timestamp attribute (event_time) and a state flag\nwhich usually changes value around the event_time (it goes to 4). Now\nwe have more than two years of events in the database, and around 5k of\nfuture events.\n\nIt is important to frequently pick out \"overdue events\...
[ { "msg_contents": "Can anybody help me out\n\nI just wanted to knw what will be the configuraion settings for partitioning\ntable so as to make inserts faster on the partitioned tables.\n\n\n-- \nRegards\nGauri\n\nCan anybody help me out \n \nI just wanted to knw what will be the configuraion settings for parti...
[ { "msg_contents": "Hello - \n\nI have a fairly large table (3 million records), and am fetching 10,000 non-contigous records doing a simple select on an indexed column ie \n\nselect grades from large_table where teacher_id = X\n\nThis is a test database, so the number of records is always 10,000 and i have 300 ...
[ { "msg_contents": "Hello\n\nI am going to separate physical locations of tables and their indexes, by moving indexes to a \ndifferent volume, through use of tablespaces.\n\nAs the data are going to be split, I am considering where pg_xlog should go. It is a general well \nknown advise to keep pg_xlog on a diffe...
[ { "msg_contents": "Hello All,\n\nI am using the latest 8.2 source that I compiled with Sun Studio 11 and \ntested it on Solaris 10 11/06 against an app server. I find that the CPU \nutilization was higher than I expected and started digging through it.\n\nAparently the top CPU usage comes from the following sta...
[ { "msg_contents": "12345678901234567890123456789012345678901234567890123456789012345678901234567890\n00000000001111111111222222222233333333334444444444555555555566666666667777777777\nI have been trying to change a many parameters on server versions\n7.4.15, 8.1.4, 8.2.0 and 8.2.1. I still hope a have managed to...
[ { "msg_contents": "(now with a more sensible subject)\n\nI have been trying to change a many parameters on server versions\n7.4.15, 8.1.4, 8.2.0 and 8.2.1. I still hope a have managed to keep\nmy head straigth and that i do not present to much faulty information.\n\nThe cost estimates generated by the different...
[ { "msg_contents": "\nDid anybody get a chance to look at this? Is it expected behavior?\nEveryone seemed so incredulous, I hoped maybe this exposed a bug\nthat would be fixed in a near release.\n\n\n-----Original Message-----\nFrom: Adam Rich [mailto:adam.r@sbcglobal.net] \nSent: Sunday, January 07, 2007 11:53...
[ { "msg_contents": "Adam,\n\nThis optimization would require teaching the planner to use an index for\nMAX/MIN when available. It seems like an OK thing to do to me.\n\n- Luke\n\n> -----Original Message-----\n> From: pgsql-performance-owner@postgresql.org \n> [mailto:pgsql-performance-owner@postgresql.org] On B...