threads
listlengths
1
275
[ { "msg_contents": "We have a pretty busy linux server running postgres 8.1.4, waiting to\nupgrade until 8.3 to avoid dump/restoring twice.\n\n# cat /proc/meminfo\n total: used: free: shared: buffers: cached:\nMem: 3704217600 3592069120 112148480 0 39460864 2316271616\nSwap: 2516918272 2...
[ { "msg_contents": "Hi,\n\nI am new to postgres having worked with Oracle in the past. I am interested \nin understanding Postgres's table partition functionality better. \nSpecifically, I have a third party application running against my postgres \ndatabase, but the database is becoming rather large to maintain...
[ { "msg_contents": "If I have this:\n\ncreate table foo (bar int primary key);\n\n...then in my ideal world, Postgres would be able to use that index on bar \nto help me with this:\n\nselect bar from foo order by bar desc limit 20;\n\nBut in my experience, PG8.2 is doing a full table scan on foo, then \nsorting ...
[ { "msg_contents": "Hi,\n\nI have very slow performance for a TSearch2 table. I have pasted the \nEXPLAIN ANALYZE queries below. 12 seconds is slow for almost any \npurpose. Is there any way to speed this up?\n\n# explain analyze select * FROM fulltext_article, to_tsquery \n('simple','dog') AS q WHERE idxf...
[ { "msg_contents": "I'm new in PostGreSQL and I need some help.\nI have a table with ~2 million records. Queries in this table are too slow and some are not completed.I think it must be a simple question to solve but, I'm trying without success. I'm worried because next week I will need to work with tables with ...
[ { "msg_contents": "Postgresql: 8.2.4 and 8.2.5\n\nI've run into a really strange problem. I have a query that runs much\nslower after analyze. I load the DB, then run the query and it runs in\nabout 200ms. I then analyze the DB, run the query again and it takes about\n1500ms. Before analyze it seems to choo...
[ { "msg_contents": "Greetings All,\n \nI have to authenticate against an existing (constantly modified) PostgreSQL\ndatabase under Solaris 10 (X86). While my PHP scripts are an obvious\nno-brainer, the rest of the contents need to be protected as well (images,\netc) so the http authentication is required. I a...
[ { "msg_contents": "I'd consider having a small daemon LISTENing for NOTIFYs that you send by triggers whenever the table has changed. That'll make sure it only dumps if something actually changed. And you can also implement some ratelimiting if needed.\n\n/Magnus \n\n> ------- Original Message -------\n> From: ...
[ { "msg_contents": "hi,\n\nis it recommended to run a postgresql server on a nfs-share \n(gigabit-network)? so basically i have a NAS + a database-server,\nand wonder if i should put the database on local hard-drives in the \ndb-server, or on the NAS, and mount it using NFS on the database-server.\n\ni haven't i...
[ { "msg_contents": "PGSQL 8.2.4\n\n \n\nI have noticed a slight spike in the amount of CPU usage in the last few\nweeks. I am sure it has to do with a change or two that was made to\nsome queries. What is the best way to log the SQL that is being\nexecuted? I would prefer to limit the size of the log file to ...
[ { "msg_contents": "Hi -,\nI have a very peculiar situation.\n\nI am running a postgres 7.4.6 database. It is running slow....... .\nI vacuum --analyze daily. I just did again.\nI did a vacuum full last night.\n\nBut to no avail. CPU usage and memory are normal, but the system is\ncrawling.\n\nHere is the info f...
[ { "msg_contents": "I have a situation where a query is running much slower than I would\nexpect. The ANALYZE showed that it is hashing some information which\nis rarely needed. When I set enable_hashjoin = off for the\nconnection the query run in 1/1000 the time.\n \nThis isn't a debilitating level of perform...
[ { "msg_contents": "Hi,\nAlong with my previous message (slow postgres), I notice the shared buffer\nsetting for our production database is set to 1000.\nHow much higher can I go? I don't know how much my kernel can take?\n\nI am running postgres 7.4.6 on Redhat enterprise 3 server.\n\nThanks,\nRadhika\n\n-- \n...
[ { "msg_contents": "Hi\n\nI have been having some serious performance issues when using prepared\nstatements which I can not re-produce when using a direct statement. Let\nme try to explain\n\nThe query does an order by in descending order on several columns for\nwhich an index exists. \n\nThe explain output as ...
[ { "msg_contents": "Hi List;\n\nI'm preparing to create a test suite of very complex queries that can be \nprofiled in terms of load and performance. The ultimate goal is to define a \nload/performance profile during a run of the old application code base and \nthen again with changes to the application code bas...
[ { "msg_contents": "Hi,\n\nI'm running into a problem with PostgreSQL 8.2.4 (running on 32 bit Debian Etch/2x dual core C2D/8GB mem). The thing is that I have a huge transaction that does 2 things: 1) delete about 300.000 rows from a table with about 15 million rows and 2) do some (heavy) calculations and re-ins...
[ { "msg_contents": "Hi,\n\nI have a table with some 50 millions rows in PG 8.2. The table has indexes on relevant columns. My problem is that most everything I do with this table (which are actually very basic selects) is unbearable slow. For example:\n\nselect max(payment_id) from transactions\n\nThis takes 161...
[ { "msg_contents": "> This query takes a totally unrealistic amount of time for execution (I have it running for >30 minutes now on a machine with 8GB and 4 cores@2.66Ghz, and it still isn't finished).\n\nTo correct myself, I looked at the wrong window earlier, when I typed the email the query had in fact finish...
[ { "msg_contents": "\nHi,\n\nI am trying to decide between using a temporary table or a stored proc that\nreturns a result set to solve a fairly complex problem, and was wondering if\nPostres, when it sees a stored proc reference in a SQL, is smart enough to,\nbehind the scenes, create a temporary table with the...
[ { "msg_contents": "Hi,\n\nFor some times, we have a vacuuming process on a specific table that\ngoes slower and slower. In fact, it took some 3 minutes a month ago, and\nnow it take almost 20 minutes. But, if one day it take so many time, it\nis possible that on the day after it will only take 4 minutes...\n\nI...
[ { "msg_contents": "Whenever I turn on Autovacuum on my database, I get a ton of error \nmessages like this in my Postgres log:\n\nOct 16 06:43:47 [2897]: [1-1] user=,db= ERROR: out of memory\nOct 16 06:43:47 [2897]: [1-2] user=,db= DETAIL: Failed on request \nof size 524287998.\n\nIt always fails on the s...
[ { "msg_contents": "Would it make sense to show the FSM stats for individual table vaccums as well? I'm wondering if the reason they aren't shown is because it wouldn't be useful or isn't practical, or just that it hasn't been done.\n\nBrian\n\n----- Original Message ----\nFrom: Tom Lane <tgl@sss.pgh.pa.us>\n\n...
[ { "msg_contents": "Hi everybody,\n\nsuppose you have a large table tab and two (or more) queryes like this:\n\nSELECT count(*),A FROM tab WHERE C GROUP BY A;\nSELECT count(*),B FROM tab WHERE C GROUP BY B;\n\nis there any way to get both results in a single query,\neventually through stored procedure?\nThe retr...
[ { "msg_contents": "Hello Everyone,\n\nI'm struggling to get postgres to run a particular query quickly. It seems that very early on, the planner seems to mis-estimate the number of rows returned by a join which causes it to assume that there is only 1 row as it goes up the tree. It then picks a nested loop jo...
[ { "msg_contents": "I am trying to join three quite large tables, and the query is \nunbearably slow(meaning I can't get results in more than a day of \nprocessing).\nI've tried the basic optimizations I understand, and nothing has \nimproved the execute speed.... any help with this would be greatly \nappreciate...
[ { "msg_contents": "Hi, all\n\n \n\n I am trying to improve the performance of creating index.\n\n I've set shared_buffers = 1024MB\n\n Effective_cache_size = 1024MB\n\n Work_mem = 1GB\n\n Maintenance_work_mem=512MB\n\n (I'm sure that ...
[ { "msg_contents": "Hi,\n\n I am updating a big table (90M records) with data from another rather large table (4M entries). Here is my update query:\n\n update links set target_size = \n ( select size from articles where articles.article_id = links.article_to)\n\n I have built all the indexes one might ne...
[ { "msg_contents": "Thanks for you help!\n\nGot a very different query plan this time, with a hash join between links and articles. At least now postgres is using both shared memory buffers and working mem, but its still completely IO bound, only getting in 5-6% CPU once in a while. I guess I can't squeeze more ...
[ { "msg_contents": "Thanks a lot folks,\n\nLeft the query running for 10+ hours and had to kill it. I guess there really was no need to have lots of\nshared buffers (the hope was that postgresql will cache the whole table). I ended up doing this step inside\nthe application as a pre-processing step. Can't have p...
[ { "msg_contents": "I have a client server that is dedicated to being a Postgres 8.2.4 database\nserver for many websites. This server will contain approximately 15\ndatabases each containing between 40-100 tables. Each database will have\napproximately 7 web applications pulling data from it, but there will\n...
[ { "msg_contents": "Hi, \nI think planner should use other plans than seqscan to solve querys like select * from hugetable limit 1, especially when the talbe is very large. Is it solved in newer versions or is there some open issues about it?. \nthanks\nI'm working with postgres 8.0.1, \n \n---------------...
[ { "msg_contents": "On 10/20/07, Pavel Velikhov <pvelikhov@yahoo.com> wrote:\n> Left the query running for 10+ hours and had to kill it. I guess\n there\n> really was no need to have lots of\n> shared buffers (the hope was that postgresql will cache the whole\n table). I\n> ended up doing this step inside\n> the...
[ { "msg_contents": "We vacuum only a few of our tables nightly, this one is the last one \nbecause it takes longer to run. I'll probably re-index it soon, but I \nwould appreciate any advice on how to speed up the vacuum process (and \nthe db in general).\n\nOkay, here's our system:\n postgres 8.1.4\n Linux ...
[ { "msg_contents": "Hello,\n\nI am having a strange latency problem on my instance of Postgres that\nI don't know how to investigate.\n\nI am accessing the db instance using a Java application and the\nCayenne mapping framework. Everything works fine, except when it is\ntime to delete a user account (that is a u...
[ { "msg_contents": "Hi all,\ni'm looking for correct or at least good enough solution for use of \nmultiple apaches with single postgres database. (apaches are 2.0.x, and \npostgres is 8.1.x)\n\nAt this moment i'm involved in management of a website where we have \nlarge user load on our web servers. Apaches ar...
[ { "msg_contents": "I thought I will update this to the Performance alias too about our \ntesting with PG8.3beta1 on Solaris.\n\nRegards,\nJignesh\n\n__Background_:_\nWe were using PostgreSQL 8.3beta1 testing on our latest Sun SPARC \nEnterprise T5220 Server using Solaris 10 8/07. Generally for performance \nben...
[ { "msg_contents": "I have just changed around some programs that ran too slowly (too much time\nin io-wait) and they speeded up greatly. This was not unexpected, but I\nwonder about the limitations.\n\nBy transaction, I mean a single INSERT or a few related INSERTs.\n\nWhat I used to do is roughly like this:\n\...
[ { "msg_contents": "Update on my testing 8.3beta1 on Solaris.\n\n* CLOG reads\n* Asynchronous Commit benefit\n* Hot CPU Utilization\n\nRegards,\nJignesh\n\n__Background_:_\nWe were using PostgreSQL 8.3beta1 testing on our latest Sun SPARC \nEnterprise T5220 Server using Solaris 10 8/07 and Sun Fire X4200 using \...
[ { "msg_contents": "PostgreSql version 8.2.4\n\nMemory = 8 Gig\n\nCPUs 1 dual core Zeon running at 3.0\n\n \n\nI have a problem with an update query taking over 10 hours in order to\nrun. I rebooted my server. I ran the SQL command \"analyze\". Could\nyou please help me with any suggestions? I have included...
[ { "msg_contents": "Hi List!\n\nI executed 2 equivalents queries. The first one uses a union structure. \nThe second uses a partitioned table. The tables are the same with 30 \nmillions of rows each one and the returned rows are the same.\n\nBut the union query perform faster than the partitioned query.\n\nMy qu...
[ { "msg_contents": "And I repeat - 'we fixed that and submitted a patch' - you can find it in the unapplied patches queue.\n\nThe patch isn't ready for application, but someone can quickly implement it I'd expect.\n\n- Luke\n\nMsg is shrt cuz m on ma treo\n\n -----Original Message-----\nFrom: \tHeikki Linnakanga...
[ { "msg_contents": "I just read the lead ups to this post - didn't see Tom and Greg's comments.\n\nThe approach we took was to recognize the ordering of child nodes and propagate that to the append in the special case of only one child (after CE). This is the most common use-case in 'partitioning', and so is an...
[ { "msg_contents": "Works great - plans no longer sort, but rather use indices as expected. It's in use in Greenplum now.\n\nIt's a simple approach, should easily extend from gpdb to postgres. The patch is against gpdb so someone needs to 'port' it.\n\n- Luke\n\nMsg is shrt cuz m on ma treo\n\n -----Original Me...
[ { "msg_contents": "All,\n\nWe are trying to implement partition on one tables on date basis. the\noverall cost and timming and cost of the query is increasing on the Append\nof the child table output. As shown below:\n\n*-> Append (cost=0.00..112217.92 rows=2752906 width=52) (actual time=\n2454.207..20712.021...
[ { "msg_contents": "Hi,\n\nI have a query that uses left outer join, and this seems to prevent the\nindex on the right column to be used.\n\nI couldn't really trim down the query without having the index used\nnormally.. \n\nSo, I have the following tables that join :\n\nOffer -> AdCreatedEvent -> Account -> Con...
[ { "msg_contents": "\n\nHi,\n\nI need to implement a Load Balancing solution in the PostgresSQL\ndatabase. Actually we are working with postgres 8.1 but postgres 8.2 is\nplanified to be upgrade in short.\n\nI read about it, and would like to know any experience with this.\n\nDid you ever need Load Balancing?\nWh...
[ { "msg_contents": "I have the following query that is a part of a function:\n\nselect order_details.tpv_success_id, order_details.tpv_id,\norder_details.ver_code, order_details.app_id,\n order_details.acct_id, order_details.first_name || ' ' ||\norder_details.last_name as customer_name,\n order_de...
[ { "msg_contents": "Hi list,\n\nI have the following query:\nselect t.a1, t.a2 from table1 t inner join table2 s \nusing(id) where t.pid='xyz' and s.chromosome=9 order by s.pos;\n\nWith the following output from analyze:\n\"Sort (cost=35075.03..35077.51 rows=991 width=14) (actual\ntime=33313.718..33321.935 rows...
[ { "msg_contents": "Hi All!\n\nI had a big big big table. I tried to divide it in 300 partitions with \n30M rows each one. The problem was when I used the table to insert \ninformation: the perfomance was LOW.\n\nI did some testing. I created a 300 partitioned empty table. Then, I \ninserted some rows on it and ...
[ { "msg_contents": "I have two small queries which are both very fast to evaluate \nseparately. The first query, \"Query 1\", calculates some statistics and \nthe the second query, \"Query 2\", finds a subset of relevant keys.\nWhen combined into a single query which calculates statistics from only \nthe subset ...
[ { "msg_contents": "I am trying to build a very Robust DB server that will support 1000+\nconcurrent users (all ready have seen max of 237 no pooling being\nused). I have read so many articles now that I am just saturated. I\nhave a general idea but would like feedback from others.\n\nI understand query tuning...
[ { "msg_contents": "-- For some reason, my message doesn't seem to go through the mailing\nlist, so I am trying without any attachment\n\nHi,\n\nThank you Tom and Dimitri for your precious help.\n\nSo, I applied the patch at\nhttp://archives.postgresql.org/pgsql-committers/2007-10/msg00374.php\n\nThe good news i...
[ { "msg_contents": "Hi,\n\nI have a table \"login\" with approx 600,000 tuples, a person table with \napprox 100000 tuples.\n\nWhen running\n select max(\"when\") from login where userid='userid'\n\nit takes a second or two, but when adding \"group by userid\" the planner \ndecides on using another plan, and it ...
[ { "msg_contents": "I am comparing the same query on two different PG 8.2 servers, one Linux \n(8GB RAM) and one Windows (32GB RAM). Both have similar drives and CPU's.\n\nThe Windows posgrestsql.config is pretty well tuned but it looks like \nsomeone had wiped out the Linux config so the default one was re-inst...
[ { "msg_contents": "Hello,\n\nI am new to setting up PostgreSQL machines for our operational \nenvironments and would appreciate if someone can take a look at this \nsetup; throw tomatoes if it looks too bad. We're expecting an \ninitial load of about 5 million text meta-data records to our \ndatabase; and ...
[ { "msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHello,\n\nI have the following query:\n\nexplain analyze\nSELECT\n (cast((\n SELECT cast(row(1, o.id, NULL, NULL, NULL, NULL) as something)\n FROM ONLY object o WHERE o.id = l.e\n UNION ALL\n SELECT cast(row(2, l2.id, l2.s, l2...
[ { "msg_contents": "In an 8 disk configuration where 2 are used for OS; 2 for xlog, and 4 for the database.. is this possible given Dell's possible configurations only allow 2 different RAID setups (SAS Raid1/Raid5)? I will also be contacting Dell, but does this require a more advanced RAID controller that supp...
[ { "msg_contents": "Consider:\n\nCREATE VIEW_X AS\nSELECT <query A>\nUNION ALL\nSELECT <query B>\nUNION ALL\nSELECT <query C>;\n\nversus\n\nCREATE VIEW_A AS\nSELECT <query A>;\n\nCREATE VIEW_B AS\nSELECT <query B>;\n\nCREATE VIEW_C AS\nSELECT <query B>;\n\nwhere <query A>, <query B> and <query C> are each somewh...
[ { "msg_contents": "Hello,\n\nThis question may sound dumb, but I would like to know if using\n\"MixedCase sensitive quoted\" names instead of lowercase names for\nobject names has any negative hit to the database performance.\n\nThanks!\n", "msg_date": "Sun, 4 Nov 2007 00:40:42 +0100", "msg_from": "\"Wh...
[ { "msg_contents": "\nHello all,\n\nWhat are the ideal settings for values in this postgresql.conf file??? I\nhave tried so many parameter changes but I still can not get the 8.1.4\nversion to perform as well as the 7.x version...what do others have their\npostgrsql.conf file values set to???\n\nAre there any k...
[ { "msg_contents": "For those of you considering a move to the upcoming 8.3 release, now in \nbeta, I've written some documentation on the changes made in checkpoint \nand background writer configuration in the new version:\n\nhttp://www.westnet.com/~gsmith/content/postgresql/chkp-bgw-83.htm\n\nSince the first h...
[ { "msg_contents": "Hi.\n\nWe are using a HP DL 380 G5 with 4 sas-disks at 10K rpm. The\ncontroller is a built in ciss-controller with 256 MB battery-backed\ncache. It is partitioned as raid 1+0.\n\nOur queries are mainly selects.\n\nI will get four 72 GB sas-disks at 15K rpm. Reading the archives\nsuggest raid ...
[ { "msg_contents": "Hi,\n\nI am running postgres 8.2 on RH linux.\nMy daemon downloads files and then inserts the data into preliminary\ntables, and finally calls a stored procedure which reads data from a\nview and inserts into the final table.\n\nI have a bit of a peculiar problem. (I understand this may not b...
[ { "msg_contents": "PostgreSQL:8.2.4\n\n \n\nI am collecting statistics info now on my database. I have used the\nfollowing two queries:\n\n \n\nselect * from pg_stat_all_indexes;\n\nselect * from pg_statio_all_indexes;\n\n \n\nHow can I use the information from these two queries to better optimize\nmy indexes?...
[ { "msg_contents": "PostgreSQL: 8.2.4\n\n \n\nDoes anyone have any companies they would recommend using for\nperformance tuning training of PostgreSQL for Linux? Or general DBA\ntraining?\n\n \n\nThanks,\n\n \n\nLance Campbell\n\nProject Manager/Software Architect\n\nWeb Services at Public Affairs\n\nUniversity...
[ { "msg_contents": "I have a question.\n\nConsider this scenario.\n\nTable customer (\ncustomer_id int8,\ncustomer_l_name varchar(35),\ncustomer_f_name varchar(30),\ncustomer_addr_1 varchar(100),\\\ncustomer_addr_2 varchar(100),\ncustomer_city varchar(50),\ncustomer_state char(2),\ncustomer_zip varchar(9)\n);\n\...
[ { "msg_contents": "Hello.\n\nWe are planning to move from MS SQL Server to PostgreSQL for our \nproduction system. Bot read and write performance are equally \nimportant. Writing is the bottleneck of our current MS SQL Server \nsystem.\n\nAll of our existing servers are from Dell, but I want to look at some ...
[ { "msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nI have a two relevant tables:\n\nfastgraph=# \\d object\n Table \"public.object\"\n Column | Type | Modifiers\n- --------+--------+----------------------------------------------\n id | bigint | not nu...
[ { "msg_contents": "Hi all,\n\nWhile studying a query taking forever after an ANALYZE on a never\nanalyzed database (a bad estimate causes a nested loop on a lot of\ntuples), I found the following problem:\n- without any stats (I removed the line from pg_statistic):\nccm_prod_20071106=# explain analyze select * ...
[ { "msg_contents": "Hello\n\nThis is a question about something we have seen sometimes in the last\nmonths. It happens with tables with a large amount of updates/selects\ncompared with the amount of inserts/deletes. The sizes of these tables\nare small and the amount of rows too.\n\nThe 'problem' is that perform...
[ { "msg_contents": "I have a database where I dropped all indexes on a table last night\nand built a new set of indexes. The goal is to try and let the\ndatabase have fewer indexes and use them more. I removed a bunch of\nindexes that were surviving from our 7.3 days where functionality will\nnow be covered by...
[ { "msg_contents": "Hello,\n\nI am having an issue on PostgreSQL 8.0.12. In the past we had \nperformance issues with the query planner for queries on some tables \nwhere we knew we had indexes and it was doing a sequential scan, and \nfor this reason we issue \"SET enable_seqscan = FALSE\" for some queries.\...
[ { "msg_contents": "Hi,\n\nI just read this document and thought I should share it with this list:\n\nhttp://people.freebsd.org/~kris/scaling/7.0%20Preview.pdf\n\nAmong other things (FreeBSD advocacy, mostly :) ), it contains a direct\ncomparison between MySQL and PostgreSQL on various platforms, with\nPostgreSQ...
[ { "msg_contents": "Does the amount of memory allocate to work_mem get subtracted from\nshared_buffers?\n\n \n\nExample:\n\n \n\nIf work_mem is 1M and there are 10 connections and shared_buffers is\n100M then would the total be 90 M left for shared_buffers?\n\n \n\nOr does the amount of memory allocated for work...
[ { "msg_contents": "We've had our PostgreSQL 8.1.4 installation configured to autovacuum\nsince January, but I suspect it might not be doing anything. Perhaps I\ncan determine what happens through the log files? Is there a summary of\nwhich \"when to log\" settings in postgresql.conf should be set to get at\nl...
[ { "msg_contents": "I am doing lots of INSERTs on a table that starts out empty (I did a\nTRUNCATE on it). I am not, AFAIK, doing DELETEs or UPDATEs. Autovacuum is\non. I moved logging up to debug2 level to see what was going on, and I get\nthings like this:\n\n \"vl_as\": scanned 3000 of 5296 pages, containing ...
[ { "msg_contents": "\nThis is probably a FAQ, but I can't find a good answer...\n\nSo - are there common techniques to compensate for the lack of\nclustered/covering indexes in PostgreSQL? To be more specific - here is my\ntable (simplified):\n\ntopic_id int\npost_id int\npost_text varchar(1024)\n\nThe most used...
[ { "msg_contents": "In order to get like queries to use an index with database initialized \nwith a UTF-8 character set I added a unique index to a table with a \nvarchar_pattern_ops\n\nThis table already had a unique constraint on the column so I dropped \nthe unique constraint.\n\nI can't give exact measure...
[ { "msg_contents": "(posting on pgsql-perf as I'm questioning the pertinence of the \nsettings, might not be the best place for the overall pb: apologies)\n\nPostgresql 8.1.10\nLinux Ubuntu: 2.6.17-12-server\n4GB RAM, machine is only used for this I do have less than 30 tables, 4 \nof them having between 10-40 m...
[ { "msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHi,\n\nhow hard would it be to give users the ability to\nconfigure different random_page and seq_page costs per tablespace?\n\nObviously this does not match with random_page_cost being a GUC variable\nbut nonetheless I think it'd make a nice ...
[ { "msg_contents": "hi,\n\nwe are moving one database from postgresql-7.4 to postgresql-8.2.4.\n\nwe have some cronjobs set up that vacuum the database (some tables more \noften, some tables less often). now, in pg82, there is the possibility \nof using the autovacuum.\n\nmy question is: is it recommended to use...
[ { "msg_contents": "\nHi,\n\nI am having performance problems running a number of queries\ninvolving views based on non-strict functions. I have reproduced the\nproblem with the simple test-case below which shows how the query plan\nis different depending on whether the view uses strict or non-strict\nfunctions ...
[ { "msg_contents": "Anyone know what is up with this? I have two queries here which return\nthe same results, one uses a left outer join to get some data from a\ntable which may not match a constraint, and one that uses a union to get\nthe data from each constraint and put them together. The second one\nisn't ...
[ { "msg_contents": "Hello all,\nI'm doing tests on various Database and in particular I'm running a \ncomparison between Oracle 10g and Postgres 8.1 on a dedicated server \nwith 2 processors Dual-Core AMD Opteron 2218 2.6 GHz, 4GB of memory \nand Debian GNU / Linux version 2.6.18-5. Performance is very similar ...
[ { "msg_contents": ">>> \"giuseppe-r@tiscali.it\" <giuseppe-r@tiscali.it> 11/22/07 8:09 AM >>>\n> Performance is very similar up\n> to 30 users, but from 40 onwards with Postgres fall quickly.\n \nI suggest testing with some form of connection pooling.\n\nMany database products will queue requests in those situa...
[ { "msg_contents": "\nHi,\n\nI am having a performance problem trying to query a view which is a\nUNION ALL of 2 tables. I have narrowed the problem down to my use of\nDOMAINS in the underlying table. So in the test-case below, when the\ncolumn \"a\" is of domain type foo_text, the query runs slowly using\nthe f...
[ { "msg_contents": "Hello,\n\n\nI'm having serious peformance problems with PostGreSQL and Windows Server 2003\nEnterprise Edition. The PostgreSQL Server don't starts if I set the shared\nbuffers high than\n1GB. All my programs can use only 3 GB of RAM and I have 8GB of RAM.\nWhen I try to execute a query in a t...
[ { "msg_contents": "Hi all,\n\nI read that pg_dump can run while the database is being used and makes\n\"consistent backups\".\n\nI have a huge and *heavy* selected, inserted and updated database.\nCurrently I have a cron task that disconnect the database users, make a\nbackup using pg_dump and put the database ...
[ { "msg_contents": "Hi all,\n\nI have a user who is looking to store 500+ GB of data in a database\n(and when all the indexes and metadata are factored in, it's going to\nbe more like 3-4 TB). He is wondering how well PostgreSQL scales with\nTB-sized databases and what can be done to help optimize them (mostly\n...
[ { "msg_contents": "Hola amigos, les escribo por que necesito conocer si PostgreSQL es lo\nsuficientemente robusto para manejar una plataforma transaccional de 2000 tx\nper second. necesito conocer la manera de separar mi operacion transaccional\nde la aquella que es de consulta sabiendo que existe informacion c...
[ { "msg_contents": "Is there a source comparing PostgreSQL performance (say, using\npgbench) out of the box for various Linux distributions? Alternately,\nis there an analysis anywhere of the potential gains from building a\ncustom kernel and just what customizations are most relevant to a\nPostgreSQL server?\n...
[ { "msg_contents": "Hello,\n\nI have ran into an interesting problem with 8.1 and i would like anybody\nto explain me if there's a problem with the planner or there's a problem\nwith myself. In both cases a solution is welcome. The following query:\n\nSELECT sum(qty) FROM\n\t_abi_main_pof_r ampr\n\tinner join _a...
[ { "msg_contents": "I have a query that takes about 7000 ms in average to complete the first \ntime it runs. Subsequent runs complete in only 50 ms. That is more than \na factor 100 faster! How can I make the query perform good in the first \nrun too?\n\nQuery and output from both first and second run of Explain...
[ { "msg_contents": "\nHi all.\n\nI'm wanting to write a new GiST index system, to improve performance on\nsome queries I am running. I have had quite a look through the docs and\ncode, and I'm not convinced that it is possible to do what I want. This is\nwhat I am wanting to index:\n\nCREATE INDEX range_index ON...
[ { "msg_contents": "Hi All,\n\nWe are having a table whose data we need to bucketize and show. This is\na continuously growing table (archival is a way to trim it to size).\nWe are facing 2 issues here:\n\n1. When the records in the table are in the range of 10K, it works fine\nfor some time after starting postg...
[ { "msg_contents": "Hi folks,\n\nAn apparent optimizer regression between 8.2.1 & 8.2.3 ? : \n\n\tselect pk,... from tbl where tsv @@ to_tsquery(...) order by pk limit 10 \n\ndisadvantageously uses PK index scan against a 2.5 million row (vacuum analysed) table whenever limit<=16 , leading to an increase in quer...
[ { "msg_contents": "I have a legacy system still on 7.4 (I know, I know...the upgrade is\ncoming soon).\n\nI have a fairly big spike happening once a day, every day, at the same\ntime. It happens during a checkpoint, no surprise there. I know the\nsolution to the problem (upgrade to a modern version), but what...
[ { "msg_contents": "Does anyone have any white papers or basic guides for a large RAM \nserver?\n\nWe are consolidating two databases to enable better data-mining that \ncurrently run on a 4 GB and 2 GB machine. The data issues on the 4 \nGB machine are numerous, things like \"create index\" fail and update ...
[ { "msg_contents": "How can I clear the pg_stats views without restarting PostgreSQL? I\nthought there was a function.\n\n \n\nThanks,\n\n \n\nLance Campbell\n\nProject Manager/Software Architect\n\nWeb Services at Public Affairs\n\nUniversity of Illinois\n\n217.333.0382\n\nhttp://webservices.uiuc.edu\n\n \n\n\...
[ { "msg_contents": "Can anyone explain the following odd behavior?\nI have a query that completes in about 90 ms. If I append LIMIT to the \nvery end, eg. \"LIMIT 500\" the evaluation time increases to about 800 ms.\nHow can performance get *worse* by giving the database the option to \nstop the evaluation earli...