threads
listlengths
1
275
[ { "msg_contents": "Ok, looks like the FreeBSD community is interested in PostgreSQL\nperformance, or at least enough to investigate it.\n\nAnyone here have experience hacking on FreeBSD?\n\n----- Forwarded message from Kris Kennaway <kris@obsecurity.org> -----\n\nX-Spam-Checker-Version: SpamAssassin 3.1.6 (2006...
[ { "msg_contents": "Hi all,\n\nDo someone already had some problem with performances using a pentium\nD (64 bits) and postgres 8.2.3 on a redhat enterprise update 2 ?\nI did the install from sources and nothing change... I have a RAID 0\nfor data and 3Gb of RAM and my inserts rate is quite low, 8333 inserts/\nse...
[ { "msg_contents": "\nAs the subject says. A quite puzzling situation: we not only upgraded the\nsoftware, but also the hardware:\n\nOld system:\n\nPG 7.4.x on Red Hat 9 (yes, it's not a mistake!!!)\nP4 HT 3GHz with 1GB of RAM and IDE hard disk (120GB, I believe)\n\nNew system:\nPG 8.2.3 on Fedora Core 4\nAt...
[ { "msg_contents": "Hi,\n\nI am sorry if it is a repeat question but I want to know if database performance will decrease if I increase the max-connections to 2000. At present it is 100.\n\nI have a requirement where the clent want 2000 simultaneous users and the only option we have now is to in crease the datab...
[ { "msg_contents": "1. The function:\n \n SELECT a.birth_date FROM (\n SELECT indiv_fkey, birth_dt as birth_date, intern_last_update::date as last_update, 'fed' as source\n \n FROM cdm.cdm_fedcustomer\n WHERE birth_dt IS NOT NULL\n AND indiv_fkey = $1\n UNION \n SELECT indiv_fkey, birthdate as birth...
[ { "msg_contents": "Question for anyone...\n\nI tried posting to the bugs, and they said this is a better question for here.\nI have to queries. One runs in about 2 seconds. The other takes upwards\nof 2 minutes. I have a temp table that is created with 2 columns. This\ntable is joined with the larger database o...
[ { "msg_contents": "Hello,\n\nI have noticed a strange performance regression and I'm at a loss as\nto what's happening. We have a fairly large database (~16 GB). The\noriginal postgres 7.4 was running on a sun v880 with 4 CPUs and 8 GB\nof ram running Solaris on local scsi discs. The new server is a sun\nOpt...
[ { "msg_contents": "Hello,\n\nI have noticed a strange performance regression and I'm at a loss as\nto what's happening. We have a fairly large database (~16 GB). The\noriginal postgres 7.4 was running on a sun v880 with 4 CPUs and 8 GB\nof ram running Solaris on local scsi discs. The new server is a sun\nOpt...
[ { "msg_contents": "I need to cross reference 2 tables. There are O(10M) A's, each has an \nordered set of 10 of the O(100K) B's associated with it. The dominant \nquery will be finding the A's and their count associated with a given \nlist of ~1k B's i.e. if 2 of the listed B's are in A's set of 10, it's \n(A,2...
[ { "msg_contents": "\nHello!\n\nI'm new to performance tuning on postgres. I've read the docs on the\nposgtres site, as well as:\n\n http://www.revsys.com/writings/postgresql-performance.html\n http://www.powerpostgresql.com/PerfList\n\nHowever, my query is really slow, and I'm not sure what the main cause\nco...
[ { "msg_contents": "Hi ,\nI want to know about hibernate left join,\nIs their any way to do left join in hibernate ?.\n\n\nPlease give me an example of hibernate left join with its maaping\n\n\nThanks & Regards\nBholu.\n\n", "msg_date": "1 Mar 2007 22:46:31 -0800", "msg_from": "hytech.qa@gmail.com", ...
[ { "msg_contents": "Hi All,\n\nI tried posting this last week but it has not come through yet, so please \nexcuse me if there is a double post.\n\nWe're having some issue's with the vacuum times within our database \nenvironment, and would like some input from the guru's out there that could \npotentially sugges...
[ { "msg_contents": "Dear All,\nI have to take backup of a database as a SQL file using the pg_dump\nutility and I have to check the disk space \nbefore taking the backup. Hence I need to estimate the size of the\npg_dump output.\nThe size given by pg_database_size procedure and the size of file\ngenerated by pg_...
[ { "msg_contents": "Not quite a performance question, but I can't seem to find a simple answer\nto this. We're using 8.1.4 and the autovacuum daemon is running every 40\nseconds cycling between 3 databases. What is the easiest way to disable the\nautovacuumer for a minute or two, do some other work, then re-en...
[ { "msg_contents": "Hi, I'm new to tuning PostgreSQL and I have a query that gets slower \nafter I run a vacuum analyze. I believe it uses a Hash Join before \nthe analyze and a Nested Loop IN Join after. It seems the Nested \nLoop IN Join estimates the correct number of rows, but underestimates \nthe amou...
[ { "msg_contents": "Hi, I'm new to tuning PostgreSQL and I have a query that gets slower \nafter I run a vacuum analyze. I believe it uses a Hash Join before \nthe analyze and a Nested Loop IN Join after. It seems the Nested \nLoop IN Join estimates the correct number of rows, but underestimates \nthe amou...
[ { "msg_contents": "Hello!!\nI have perfectly installed ebmail and Hermes 2 whith JDK\n1.4.2 ,postgreSQL\n8.1 and Tomacat 5.0.28 and all good works.\nI send messages whith ebmail and it`s writing in Postgresql but I\nhave\nsome mistakes:\n\n2007-02-02 16:41:03 [Thread-6 ] <INFO > <cecid.ebms.spa> <Found 1\nme...
[ { "msg_contents": "Hello,\n\nIs anyone aware of some test-suite for Postgresql?\n\nThanks,\nNeelam\n\nHello,Is anyone aware of some test-suite for Postgresql?Thanks,Neelam", "msg_date": "Tue, 6 Mar 2007 11:40:16 -0600", "msg_from": "\"Neelam Goyal\" <neelam.goyal@gmail.com>", "msg_from_op": true, ...
[ { "msg_contents": "Hi,\n\nI have database with a huge amount of data so i'm trying to make it as fast as possible and minimize space.\n\nOne thing i've done is join on a prepopulated date lookup table to prevent a bunch of rows with duplicate date columns. Without this I'd have about 2500 rows per hour with the...
[ { "msg_contents": "I see that one can now get compact flash to SATA connectors.\n\nIf I were to use a filesystem with noatime etc and little non-sql traffic,\ndoes the physical update pattern tend to have hot sectors that will tend to\nwear out CF?\n\nI'm wondering about a RAID5 with data on CF drives and RAID1...
[ { "msg_contents": "I think I have an issue with the planning of this query that sometimes\nruns really slow.\n\nthis is the output of the EXPLAIN ANALYZE in the SLOW case\n\nSort (cost=4105.54..4105.54 rows=2 width=28) (actual\ntime=11404.225..11404.401 rows=265 loops=1)\n Sort Key: table1.fdeventfromdate, t...
[ { "msg_contents": "Hi List,\n\nCan i find out the timestamp when last a record from a table got updated.\nDo any of the pg system tables store this info.\n\n-- \nRegards\nGauri\n\nHi List,\n \nCan i find out the timestamp when last a record from a table got updated.\nDo any of the pg system tables store this in...
[ { "msg_contents": "Hi performers,\n\nafter following this list for a while, I try to configure a database \nserver with a limited budget.\nPlanned are 2 databases\n- archiveopteryx - http://www.archiveopteryx.org/sql-schema.html\n- ERDB - https://www.chaos1.de/svn-public/repos/network-tools/ERDB/ \ntrunk/data...
[ { "msg_contents": "I am having a performance problem with a query implemented within a\nserver side function. If I use an SQL client(EMS Postgres) and manually\ngenerate the sql query I get about 100 times performance improvement\nover using the function.\n\nI've also tried using a prepared statement from my ap...
[ { "msg_contents": "\n\n\n\nHi!\n\nI have two tables with some indices on them:\n\nCREATE TABLE subscriber\n(\n  id serial NOT NULL,\n  anumber character varying(32) NOT NULL,\n  CONSTRAINT subscriber_pk PRIMARY KEY (id)\n) \n\nCREATE INDEX anumber_idx_numeric\n  ON subscriber\n  USING btree\n  (anumber::numeric...
[ { "msg_contents": "Hi,\n\nI'm running a Zope web application that obtains most of its data\nfrom a PostgreSQL 8.1 database in a virtual machine. I'm able to\nadjust the memory of this machine according to reasonable values\nand can choose between one or two (emulated) processors. The\nquestion is: How can I f...
[ { "msg_contents": "Hello,\n\n\nI have upgraded from 7.3.9 to 8.2.3 and now the application that is \nusing Postgres is really slow.\nUsing pgfouine, I was able to identify a SQL select statement that was \nrunning in 500 ms before and now that is running in more than 20 seconds !\n\nThe reason is that the execu...
[ { "msg_contents": "\nFolks !\n\nI have a batch application that writes approx. 4 million rows into a narrow\ntable. I am using JDBC addBatch/ExecuteBatch with auto commit turned off.\nBatch size is 100. So far I am seeing Postgres take roughly five times the\ntime it takes to do this in the Oracle. \n\nI have p...
[ { "msg_contents": "Howdy-\n\nI am currently using PostgreSQL to store and process a high-bandwidth\nevent stream. I do not need old events but the delete and vacuum does\nnot terminate due to the large number of events being inserted (it\njust pushes me over the tipping point of where the machine can keep up\n...
[ { "msg_contents": "Hi,\n\n \n\nPlease forgive me if I missed something (I have been searching for a definitive answer for this for 2 days).\n\n \n\nIs there any way to disable autocommit in libpq? (PG 7.4.1)\n\n \n\nThanks\n\n \n\nMike\n\n \n\n\n\n\n\n\n\n\n\n\nHi,\n \nPlease forgive me if I missed something (I...
[ { "msg_contents": "Test...please ignore \n\n \n\nThanks\n\n \n\nMike\n\n\n\n\n\n\n\n\n\n\n\nTest…please ignore \n\n\n \n\n\nThanks\n\n\n \n\n\nMike", "msg_date": "Tue, 13 Mar 2007 14:22:20 -0400", "msg_from": "\"Dengler, Michael\" <Michael_Dengler@tvworks.com>", "msg_from_op": true, "msg_subject...
[ { "msg_contents": "Hello guys,\n\nis it possible to determine dead tuples size for table?\n\n-- \nAlexey Romanchuk\n\n\n", "msg_date": "Thu, 15 Mar 2007 13:58:47 +0600", "msg_from": "Alexey Romanchuk <aromanchuk@swsoft.com>", "msg_from_op": true, "msg_subject": "Determine dead tuples size" }, ...
[ { "msg_contents": "On 3/16/07, Bob Dusek <bob@copienttech.com> wrote:\n> This may or may not be related to what you're seeing... but, when we\n> changed from Postgres 7.4.2 to 7.4.8, our batch processing slowed down\n> fairly significantly.\n>\n> Here's what we were doing:\n>\n> Step 1) Build a larg file full o...
[ { "msg_contents": "Hi all.\n\nI'm experiencing a strange behaviour with 8.1.8 (cannot do upgrades to 8.2 at\nthe moment).\n\nOn a 13+ million rows table I can do a query with results back in less than\n100 ms. Result is a set of bigint.\nBut when I encapsulate that query into an \"SQL\" function with three para...
[ { "msg_contents": "I'm running in some weird (IMHO) bahviour.\nWhen I search a table for certain text (equality est on the relelvant field)\nit takes much more time than doing the same test by adding a trailing '%' and\nusing the LIKE operator.\nWith much more I mean 1000+ times slower.\n\nThis is the table (so...
[ { "msg_contents": "I have a very slow query that I'm trying to tune. I think my \nperformance tuning is being complicated by the system's page cache.\n\nIf a run the query after the system has been busy with other tasks \nfor quite a long time then the query can take up to 8-10 minutes to \ncomplete. If I ...
[ { "msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHi,\n\nVacuum full is very slow for me . I dont know how to speed it up. It\ntakes between 60 and 90 minutes.\n\nI have set up autovacuum but I also run vacuum full once per week.\n\nThe slowest parts in the vacuum full output are :\n\nINFO: ...
[ { "msg_contents": "I've got one logging table that is over 330 million rows to store 6 \nmonths' worth of data. It consists of two integers and a 4-character \nlong string. I have one primary key which is the two integers, and \nan additional index on the second integer.\n\nI'm planning to use inheritance ...
[ { "msg_contents": "After upgrading to 8.2.3 INSERTs and UPDATEs on one of my tables became \nincredibly slow. I traced the problem to one of my triggers that calls \none of my defined functions (that is IMMUTABLE). If I inline the \nfunction instead of calling it the runtime for my test update drops from \n ...
[ { "msg_contents": "I've found that it would be helpful to be able to tell how busy my \ndedicated PG server is ( Linux 2.6 kernel, v8.0.3 currently ) before \npounding it with some OLAP-type queries. Specifically, I have a \nmulti-threaded client program that needs to run several thousand \nsequential queries....
[ { "msg_contents": "Hello\n\nI plan to buy a new development server and I wonder what will be the best HD\ncombination.\n\nI'm aware that \"best combination\" also relay on DB structure and usage.\nso lets assume, heavy duty large DB with mostly reads and heavy write\nactions from time to time ( updates / huge t...
[ { "msg_contents": "Hi,\n\nI just try to find out why a simple count(*) might last that long.\nAt first I tried explain, which rather quickly knows how many rows\nto check, but the final count is two orders of magnitude slower.\n\nMy MS_SQL server using colleague can't believe that.\n\n$ psql InfluenzaWeb -c 'ex...
[ { "msg_contents": "Hi,\n\nI recently migrated one of our large (multi-hundred GB) dbs from an \nIntel 32bit platform (Dell 1650 - running 8.1.3) to a 64bit platform \n(Dell 1950 - running 8.1.5). However I am not seeing the performance \ngains I would expect - I am suspecting that some of this is due to \ndiff...
[ { "msg_contents": "Folks,\n\nis there any constrains/problems/etc. to run several vacuum processes in\nparallel while each one is 'vaccuming' one different table?\n\nExample:\n\n vacuum -d db1 -t table1 &\n vacuum -d db1 -t table2 &\n vacuum -d db1 -t table3 &\n wait\n\n(sorry if it was already asked, but I...
[ { "msg_contents": "My company is purchasing a Sunfire x4500 to run our most I/O-bound databases, and I'd like to get some advice on configuration and tuning. We're currently looking at:\n - Solaris 10 + zfs + RAID Z\n - CentOS 4 + xfs + RAID 10\n - CentOS 4 + ext3 + RAID 10\nbut we're open to other suggestions...
[ { "msg_contents": "Hi\n\nI'm going to install a new server and I'm looking for some advice\nabout how I can help my database performing at its best. I'll be using\na redhat ES 4 on a dual core opteron with 2 SCSI 10.000rpm disks in\nRAID1.\n\nThe first question I have is, since I'd strongly prefer to use\npostg...
[ { "msg_contents": "Thanks Dimitri! That was very educational material! I'm going to think out loud here, so please correct me if you see any errors.\n\nThe section on tuning for OLTP transactions was interesting, although my OLAP workload will be predominantly bulk I/O over large datasets of mostly-sequential...
[ { "msg_contents": "I'm posting this to performance in case our workaround may be of benefit to someone with a similar issue. I'm posting to hackers because I hope we can improve our planner in this area so that a workaround is not necessary. (It might make sense to reply to one group or the other, depending o...
[ { "msg_contents": "Hi,\n\nI have two queries that are very similar, that run on the same table \nwith slightly different conditions. However, despite a similar number \nof rows returned, the query planner is insisting on a different \nordering and different join algorithm, causing a huge performance \nhit. ...
[ { "msg_contents": "I try to change my database server from the older one ie. 2Cpu Xeon 2.4 32\nbit 4Gb SDram Hdd SCSI RAID 5 and FC 3 ix86 with 7..4.7 PG to the newer one\nwith 2CPU Xeon 3.0 64 Bit 4Gb DDRram SCSI Raid5 and FC6 X64 PG 8.14 and try\nto use rather the same parameter from the previous postgresql....
[ { "msg_contents": "I try to change my database server from the older one ie. 2Cpu Xeon 2.4 32\nbit 4Gb SDram Hdd SCSI RAID 5 and FC 3 ix86 with 7..4.7 PG to the newer one\nwith 2CPU Xeon 3.0 64 Bit 4Gb DDRram SCSI Raid5 and FC6 X64 PG 8.14 and try\nto use rather the same parameter from the previous postgresql....
[ { "msg_contents": "Hi List,\n\nhow to speedup nested loop queries and by which parameters.\n-- \nRegards\nGauri\n\nHi List,\n \nhow to speedup nested loop queries and by which parameters.\n-- RegardsGauri", "msg_date": "Mon, 26 Mar 2007 17:34:39 +0530", "msg_from": "\"Gauri Kanekar\" <meetgaurikanekar@g...
[ { "msg_contents": "Hello!\n\n \n\n I have to manage an application written in java which call another module\nwritten in java which uses Postgre DBMS in a Linux environment. I'm new to\nPostgres. The problem is that for large amounts of data the application\nthrows an:\n\n org.postgresql.util.PSQLException: E...
[ { "msg_contents": "Hi,\n\nIn postgres 7.4.* I had to pass --with-java to the configure script\nfor jdbc support.\n\nDoes postgres 8.2* include it by default? If not, how do I enable it?\n\nThanks\n\nMiguel\n", "msg_date": "Tue, 27 Mar 2007 18:16:28 -0400", "msg_from": "\"Michael Dengler\" <michael.dengl...
[ { "msg_contents": "Hi Dimitri,\n\nFirst of all, thanks again for the great feedback!\n\nYes, my I/O load is mostly read operations. There are some bulk writes done in the background periodically throughout the day, but these are not as time-sensitive. I'll have to do some testing to find the best balance of r...
[ { "msg_contents": "Hi all.\n\nI would like to speed up this query:\n\nEXPLAIN ANALYZE\n SELECT\nrelid,schemaname,relname,seq_scan,seq_tup_read,idx_scan,idx_tup_fetch,n_tup_ins,n_tup_upd,n_tup_del\n FROM pg_stat_user_tables;\n\n QUERY PLAN\n----------...
[ { "msg_contents": "Greetings,\n\nWe've recently made a couple changes to our system that have resulted \nin a drastic increase in performance as well as some very confusing \nchanges to the database statistics, specifically \npg_stat_database.xact_commit. Here's the details:\n\nOS: Solaris10 x86\nServer: Su...
[ { "msg_contents": "8.0.3 - Linux 2.6.18..\nFreshly vacuumed and analyzed\n\nThis database has been humming along fine for a while now, but I've got one of those sticky queries that is taking\nmuch too long to finish.\n\nAfter some digging, I've found that the planner is choosing to apply a necessary seq scan to...
[ { "msg_contents": "Hi David,\n\nThanks for your feedback! I'm rather a newbie at this, and I do appreciate the critique.\n\nFirst, let me correct myself: The formulas for the risk of loosing data when you loose 2 and 3 disks shouldn't have included the first term (g/n). I'll give the corrected formulas and ta...
[ { "msg_contents": "Hi all.\n\nI'm running PostgreSQL v8.1.8 (under Linux Ubuntu).\n\nA function body is written as \"language sql stable\". There is just a select\nfor a search in a view with two arguments to do the search. The search is done\nwith equality comparisons.\nBoth the function call and the select al...
[ { "msg_contents": "Hello,\n\nI am looking to use PostgreSQL for storing some very simple flat data\nmostly in a single table. The amount of data will be in the hundreds\nof gigabytes range. Each row is on the order of 100-300 bytes in size;\nin other words, small enough that I am expecting disk I/O to be seek\n...
[ { "msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHi all,\ntake a look at those plans:\n\n\ntest=# explain analyze SELECT COUNT(id) FROM t_oa_2_00_card WHERE pvcp in (select id from l_pvcp where value ilike '%pi%');\n QUERY PLAN\n- ...
[ { "msg_contents": "Hi all,\n\nWhen I run multiple TPC-H queries (DBT3) on postgresql, I found the system\nis not scalable. My machine has 8GB memory, and 4 Xeon Dual Core processor\n( 8 cores in total). OS kernel is linux 2.6.9. Postgresql is 7.3.18. I \nrun multiple\nq2 queries simultaneously. The results ar...
[ { "msg_contents": "* Denis Lishtovny <d.lishtovny@chronopay.com> [070402 09:20]:\n> Hello All.\n> \n> I have a lot of tables and indexes in database. I must to determine which\n> indexes are not using or using seldon in databese . I enabled all posible\n> statistics in config but a can`t uderstand ...
[ { "msg_contents": "Sorry if anyone receives this twice; it didn't seem to go through the\nfirst time. I'll attach the query plans to another email in case they\nwere causing a size limit problem. Also here's the here's the table\ndescription:\n\n Table \"public.t1\"\n Column | Type ...
[ { "msg_contents": "and here are the query plans referenced in my last email (apologies if\nyou get these twice, they didn't seem to go through the first time,\nperhaps due to size?). I cut out the longer ones.\n\nThanks,\n\nAlex\n\npostgres 7.4\n\nEXPLAIN ANALYZE select num, c1, c2, c3, c4, c5, c6, c7, c8, c9,...
[ { "msg_contents": "Hi\n\nIs there a way to get the cache hit ratio in PostGreSQL ?\n\nCheers\n\n-- \n-- Jean Arnaud\n-- Projet SARDES\n-- INRIA Rh�ne-Alpes / LSR-IMAG\n-- http://sardes.inrialpes.fr/~jarnaud\n\n\n", "msg_date": "Tue, 03 Apr 2007 16:12:20 +0200", "msg_from": "Jean Arnaud <Jean.Arnaud@in...
[ { "msg_contents": "Hi all,\n\n In MySQL when you create a table you can define something like:\n\nCREATE TABLE `sneakers` (\n `sneaker_id` char(24) NOT NULL,\n `sneaker_time` int(10) unsigned NOT NULL default '0',\n `sneaker_user` int(10) unsigned NOT NULL default '0',\n UNIQUE KEY `sneaker_id` (`snea...
[ { "msg_contents": "We need to upgrade a postgres server. I'm not tied to these specific \nalternatives, but I'm curious to get feedback on their general \nqualities.\n\nSCSI\n dual xeon 5120, 8GB ECC\n 8*73GB SCSI 15k drives (PERC 5/i)\n (dell poweredge 2900)\n\nSATA\n dual opteron 275, 8GB ECC\n 24...
[ { "msg_contents": "Hi Thor,\n\nThor-Michael St�re wrote:\n> On 2007-04-04 Arnau wrote:\n>> Josh Berkus wrote:\n>>> Arnau,\n>>> \n>>>> Is there anything similar in PostgreSQL? The idea behind this\n>>>> is how I can do in PostgreSQL to have tables where I can query\n>>>> on them very often something like every...
[ { "msg_contents": "Hello All,\n\nI've been searching the archives for something similar, without success..\n\nWe have an application subjected do sign documents and store them\nsomewhere. The files size may vary from Kb to Mb. Delelopers are\narguing about the reasons to store files direcly on operating system\...
[ { "msg_contents": "Hi,\n\nA page may be double buffered in PG's buffer pool and in OS's buffer cache.\nOther DBMS like DB2 and Oracle has provided Direct I/O option to eliminate\ndouble buffering. I noticed there were discusses on the list. But\nI can not find similar option in PG. Does PG support direct I/O no...
[ { "msg_contents": "Hi,\n\nIve looked through the README in the contrib/adminpack dir but it doesn't\nreally say what these functions do and how to use them....\n\n\nAny help?\n\nThanks\n\nmiguel\n\nHi,Ive looked through the README in the contrib/adminpack dir but it doesn't really say what these functions do an...
[ { "msg_contents": "I have a query hitting a view that takes 0.15s on 8.1 but 6s on 8.2.3:\n\n select party_id from clan_members_v cm, clans c\n where cm.clan_id = c.id\n and c.type = 'standard'\n\nThe problem seems to be that clan_members_v contains a call to an\nexpensive function:\n\ncreate or replace...
[ { "msg_contents": "Hello All\t\t\n\n\tI sent this message to the admin list and it never got through so I\nam trying the performance list.\n\tWe moved our application to a new machine last night. It is a Dell\nPowerEdge 6950 2X Dual Core. AMD Opteron 8214 2.2Ghz. 8GB Memory. The\nmachine is running Redhat AS 4 ...
[ { "msg_contents": "We are trying to attack this problem from multiple avenues, thus I'm \nstarting a separate thread. This is with regard to the problem posted \nvia thread:\n\nhttp://archives.postgresql.org/pgsql-performance/2007-04/msg00120.php\n\nOne thing we are seeing with this move to the new hardware (a...
[ { "msg_contents": "One more anomaly between 7.4 and 8.2. DB dumped from 7.4 and loaded\nonto 8.2, both have locale set to C. 8.2 seems to prefer Seq Scans\nfor the first query while the ordering in the second query seems to\nperform worse on 8.2. I ran analyze. I've tried with the encoding\nset to UTF-8 and...
[ { "msg_contents": "Hello,\n\nI am trying to build a application to search CDs and their tracks and I\nam experiencing some performance difficulties.\n\nThe database is very simple at the moment, two tables \"cd\" and \"tracks\"\ncontain the CD-information and their respective tracks. A column\n\"cd_id\" in publ...
[ { "msg_contents": "Hi,\nI am trying to figure out how to debug a performance problem / use psql explain.\nThe table in question is:\n# \\d word_association;\n Table \"public.word_association\"\n Column | Type | Modifiers\n--------+------------------------+--------------------\n w...
[ { "msg_contents": "I have an odd performance issue on 8.2 that I'd thought I'd document\nhere. I have a workaround, but I'm if there is something that I'm not\nseeing.\n\nok, for starters:\nI have a large table that is basically organized like this:\ncreate table big\n(\n key1 int,\n key2 int,\n ts timestam...
[ { "msg_contents": "We have a query which generates a small set of rows (~1,000) which are\nto be used in a DELETE on the same table. The problem we have is that\nwe need to join on 5 different columns and it takes far too long. I\nhave a solution but I'm not sure it's the right one. Instead of joining\non 5 ...
[ { "msg_contents": "\nAnd by the subject, I mean: please provide a \"factual\" answer, as opposed\nto the more or less obvious answer which would be \"no one in their sane\nmind would even consider doing such thing\" :-)\n\n1) Would it be possible to entirely disable WAL? (something like setting a\nsymlink so...
[ { "msg_contents": "I have 2 tables (A,B) joined in a many-to-many relationship via a \njoin table (\"membership\"), where updating table A based on table B \ntakes a very long time.\n\nTables A and B have oid primary keys (a_id and b_id respectively).\nThe join table, \"membership\", has its own oid primary k...
[ { "msg_contents": "Hi,\n\nI'm using RHEL4 and wondering if I need to upgrade the php and php-pgsql\npackages when upgrading from Postgres 7.4.1 to 8.2.3.\n\nAny Help?\n\nThanks\n\nMike\n\nHi,I'm using RHEL4 and wondering if I need to upgrade the php and php-pgsql packages when upgrading from Postgres 7.4.1 to 8...
[ { "msg_contents": "We had problems again, caused by long running transactions. I'm\nmonitoring the pg_stat_activity view, checking the query_start of all\nrequests that are not idle - but this one slipped under the radar as the\napplication was running frequent queries towards the database.\n\nThat's not what ...
[ { "msg_contents": "Hello all,\n\nMy website has been having issues with our new Linux/PostgreSQL \nserver being somewhat slow. I have done tests using Apache Benchmark \nand for pages that do not connect to Postgres, the speeds are much \nfaster (334 requests/second v. 1-2 requests/second), so it seems that ...
[ { "msg_contents": "Dear All.\n\n \n\nHow to compute the frequency of predicate (e.g. Salary > $70000) in an\nSQL query from a DB's pre-defined indexes?\". I'm specifically looking at\nhow to retrieve information about indices (like number of pages at each\nlevel of index, range of attribute values etc.)\n\n \n\...
[ { "msg_contents": "Is there a pg_stat_* table or the like that will show how bloated an index is? \nI am trying to squeeze some disk space and want to track down where the worst \noffenders are before performing a global REINDEX on all tables, as the database \nis rougly 400GB on disk and this takes a very long...
[ { "msg_contents": "Consider these two very similar schemas:\n\nSchema 1:\n\n\nCREATE TABLE foo (\n id serial PRIMARY KEY,\n frobnitz character(varying 100) NOT NULL UNIQUE\n);\n\n\nCREATE TABLE bar (\n id serial PRIMARY KEY,\n foo_id int REFERENCES foo(id)\n)\n\n\nSchema 2:\n\n\nCREATE TABLE foo (\n frobni...
[ { "msg_contents": "I have performance problem with the following simple update query:\n\n UPDATE posts\n SET num_views = num_views + 1\n WHERE post_id IN (2526,5254,2572,4671,25);\n\nThe table \"posts\" is a large table with a number of foreign keys (FK).\n\nIt seems that the FK triggers for the table are...
[ { "msg_contents": "I have a table where I store email, the bodies are mostly kept in a\ntoast table. The toast table is 940 Meg in size. The whole database\nis about 1.2 Gig in size. When I back the database up using pg_dump in\ncustom output mode, I pipe the output into gzip. My backups are only\nabo...
[ { "msg_contents": "Hi, we're using Postgres 8.1.4.\n\nWe've been seeing deadlock errors of this form, sometimes as often as\nseveral times per hour:\n\nApr 17 13:39:50 postgres[53643]: [4-1] ERROR: deadlock detected\nApr 17 13:39:50 postgres[53643]: [4-2] DETAIL: Process 53643 waits for\nShareLock on transact...
[ { "msg_contents": "Hi,\n\nIs there a query I can perform (perhaps on a system table) to return all of\nthe column names (ONLY the column names) for a given DB? (I seem to\nremember doing this before but cant remember how)\n\nThanks\n\nMike\n\nHi,Is there a query I can perform (perhaps on a system table) to ret...
[ { "msg_contents": "Hi,\n\n \n\nI'm currently dealing with performance issues of postgres and looking\nfor some advice.\n\n \n\nPlatform\n\nPostgres: 7.0.2\n\nOS: FreeBSD4.4\n\nDB: size - about 50M, most frequently updated tables are of an average\nsize of 1000-2000 rows and there are not many of them, about 15 ...
[ { "msg_contents": "\nI have a table that contains a column for keywords that I expect to become\nquite large and will be used for web searches. I will either index the\ncolumn or come up with a simple hashing algorithm add the hash key to the\ntable and index that column.\n\nI am thinking the max length in the...
[ { "msg_contents": "I have two tables, staff (530 rows) and location (2.5 million rows). I \ndo a query that joins the two together, as so:\n\nSELECT s.ProprietorId, l.LocationId, s.RoleId\n\tFROM Location l\n\tINNER JOIN (\n\t\tSELECT *\n\t\tFROM Staff\n\t) s ON l.ProprietorId = s.ProprietorId\n\tWHERE s.UserI...
[ { "msg_contents": "I have investigated a bit now and found the following:\n\nWhen I perform the update the *first* time, the triggers are actually \nnot evaluated. But from the second update they are.\n\nAlso notice that the number of rows changes. Shouldn't that number of \nrows always be 2 as question_id is p...
[ { "msg_contents": "Hello everyone,\n\nThis is my first post in here, i am in need of some help...\n\nWel, i am running PostgreSQL 8.2.4, in a single node, in this machine:\n\nDell PowerEdge 1950\nIntel Xeon 2.33 (2 CPUs)\n4GB RAM\nSata HD 160GB\nDebian Distribution\n\nSome relevant parameters:\n\nIn Linux:\n -...
[ { "msg_contents": "I have two tables, staff (530 rows) and location (2.5 million rows). I \ndo a query that joins the two together, as so:\n\nSELECT s.ProprietorId, l.LocationId, s.RoleId\n FROM Location l\n INNER JOIN (\n SELECT *\n FROM Staff\n ) s ON l.ProprietorId = s.ProprietorId\n ...
[ { "msg_contents": "\nHi all,\n\nI'm a bit new to PostgreSQL and database design in general so forgive me\nfor asking stupid questions. ;-)\n\nI've setup a PostgreSQL database on a Linux machine (2 processor, 1GB\nmem) and while the database itself resides on a NetApp filer, via NFS,\nthis doesn't seem to impact...