threads
listlengths
1
275
[ { "msg_contents": "Jean-Michel Pourᅵ<jm@poure.com> wrote:\n \n> [no postgresql.conf changes except]\n> shared_buffer 24M.\n \nThat's part of your problem. (Well, that's understating it; we don't\nhave any real evidence that you have any performance problems *not*\nresulting from failure to do normal configur...
[ { "msg_contents": "Hi, I have a question about a db-wide vacuum that I am running that is\ntaking a much longer time than normal. We switched over to our warm standby\nserver today -- which is virtually identical to the source db server -- and\nI initiated a \"vacuum analyze verbose\". Normally this process wou...
[ { "msg_contents": "If I run \" dd if=/dev/zero bs=1024k of=file count=1000 \" iostat shows me:\n\nDevice: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn\nsda 671.50 88.00 113496.00 176 226992\n\n\nHowever postgres 8.3.7 doing a bulk data write (a slony slave, doi...
[ { "msg_contents": "Dear all,\n\nI am migrating a large PhpBB forum to Drupal. \n\nWhat memory monitoring tool would you recommend? \nI never used one before in PostgreSQL.\n\nThe only figures I read are those from VACUUM VERBOSE ANALYSE to make\nsure I have enough shared memory for indexes.\n\nWhat more complex...
[ { "msg_contents": ">\n> ---------- Forwarded message ----------\n> From: Joseph S <jks@selectacast.net>\n> To: Greg Smith <gsmith@gregsmith.com>, pgsql-performance@postgresql.org\n> Date: Fri, 28 Aug 2009 10:25:10 -0400\n> Subject: Re: What exactly is postgres doing during INSERT/UPDATE ?\n> Greg Smith wrote:\n...
[ { "msg_contents": "Hi all;\n\nWe have a table that's > 2billion rows big and growing fast. We've setup \nmonthly partitions for it. Upon running the first of many select * from \nbigTable insert into partition statements (330million rows per month) the \nentire box eventually goes out to lunch.\n\nAny thoughts...
[ { "msg_contents": "Hi:\n\nLooks like after postgres db server reboot, first query is very slow\n(10+mins). After the system cache built, query is pretty fast.\nNow the question is how to speed up the first query slow issue?\n\nAny pointers?\n\nThanks\nwei\n\nHi:Looks like after postgres db server reboot, first ...
[ { "msg_contents": "Hi all;\n\nI cant figure out why we're scanning all of our partitions.\n\nWe setup our tables like this:\n\n\nBase Table:\n\nCREATE TABLE url_hits (\n id integer NOT NULL,\n content_type_id integer,\n file_extension_id integer,\n \"time\" integer,\n bytes integer NOT NULL,\n ...
[ { "msg_contents": "\nI've got a table set up with an XML field that I would like to search on with\n2.5 million records. The xml are serialized objects from my application\nwhich are too complex to break out into separate tables. I'm trying to run a\nquery similar to this:\n\n\tSELECT serialized_object as outV...
[ { "msg_contents": "Hello,\nI'm using postgresql 8.1.5. Sorry if this is not the right area to ask this. I already have command string turned on at the postgresql.conf , and am currently trying to troubleshoot some connection problem at a server that is causing performance issues. Apart from \"<IDLE>\" and the s...
[ { "msg_contents": "[Sorry if you receive multiple copies of this message.] \n[Please feel free to forward the message to others who may be\ninterested.] \n\nHi, \n\nWe are a computer systems research group at the Computer Science\ndepartment at Rutgers University, and are conducting research on\nsimplifying the...
[ { "msg_contents": "With postgresql-8.3.6, I have many partitions inheriting a table. SELECT \nmin() on the parent performs a Seq Scan, but SELECT min() on a child uses \nthe index. Is this another case where the planner is not aware enough to \ncome up with the best plan? I tried creating an index on the ...
[ { "msg_contents": "Would love to get some advice on how to change my conf settings / setup\nto get better I/O performance.\n\n \n\nServer Specs:\n\n \n\n2x Intel Xeon Quad Core (@2 Ghz - Clovertown,L5335)\n\n4GB RAM\n\n4x Seagate 73GB SAS HDD 10k RPM - in RAID ( stripped and mirrored )\n\n \n\nFreeBSD 6.4\n\nAp...
[ { "msg_contents": "I am new to PostgreSQL and I am evaluating it for use as a data\nwarehouse. I am really struggling to get a simple query to perform\nwell. I have put the appropriate indexes on the table (at least they\nare appropriate from my use with several other RDBMS's). However, the\nquery doesn't pe...
[ { "msg_contents": "\n\nSo as I understand, what you need is an online database program able to\nperform ETL tasks, that works in the cloud. \n\nThere are a few companies out there able to perform what you are asking.\nWhat I could propose is a company called Talend. With Talend On Demand. \n\nThis solution is b...
[ { "msg_contents": "Hi list,\n\nI've been running this simple delete since yesterday afternoon :\n> db=# explain delete from message where datetime < '2009-03-03';\n> Seq Scan on message (cost=0.00..34131.95 rows=133158 width=6)\n> Filter: (datetime < '2009-03-03 00:00:00'::timestamp without time zone)\n\nT...
[ { "msg_contents": "Does the planner know how to use indices to optimize these queries?\n\nFor reference, I was having SEVERE performance problems with the\nfollowing comparison in an SQL statement where \"mask\" was an integer:\n\n\"select ... from .... where ...... and (permission & mask = permission)\"\n\nThi...
[ { "msg_contents": "Hi All,\n\nI compile PostgreSQL-8.4.0 with icc and --enable profiling option. I \nran command psql and create table and make a select then I quit psql \nand go to .../data/gprof folder there are some folders named with \nnumbers (I think they are query ids); all of them are empty. How can ...
[ { "msg_contents": "Hello,\n\ncould you help me with joined query from partitioned table, please? I \nhave a table \"data\" with partitions by period_id\n\nCREATE TABLE data\n(\n period_id smallint NOT NULL DEFAULT 0,\n store_id smallint NOT NULL DEFAULT 0,\n product_id integer NOT NULL DEFAULT 0,\n s_pcs r...
[ { "msg_contents": "\"pgsql-performance-owner@postgresql.org\" wrote:\n> On Sat, Sep 5, 2009 at 8:19 PM, Karl Denninger<karl@denninger.net> wrote:\n> > There was a previous thread and I referenced it. I don't have the \n> other one\n> > in my email system any more to follow up to it.\n> >\n> > I give up; the...
[ { "msg_contents": "Hello,\n\nI have a following query (autogenerated by Django)\n\nSELECT activity_activityevent.id, activity_activityevent.user_id, activity_activityevent.added_on\nFROM activity_activityevent \nWHERE activity_activityevent.user_id IN (\n SELECT U0.user_id \n FROM profile U0 \n INNER JOIN...
[ { "msg_contents": "Folks,\n\nFor those of you who can't attend in person, we'll be streaming audio\nand video and having a chat for tonight's SFPUG meeting on how the\nplanner uses statistics.\n\nVideo:\n\nhttp://media.postgresql.org/sfpug/streaming\n\nChat:\n\nirc://irc.freenode.net/sfpug\n\nCheers,\nDavid.\n-...
[ { "msg_contents": "Hi all I have a large table (>2billion rows) that's partitioned by date based \non an epoch int value. We're running a select max(id) where id is the PK. I \nhave a PK index on each of the partitions, no indexes at all on the base \ntable.\n\nIf I hit a partition table directly I get an inde...
[ { "msg_contents": "Hi,\n\nI am running PostgreSQL-8.4.0 on a SMP Server which has 32 processors \n(32X2=64 cores). I am working on database parallelism and I need to do \nprofiling in order to find the relevant parts to parallelize. I wrote \n15 queries which are performing select, sort, join, and aggregate ...
[ { "msg_contents": "In the following query, We are seeing a sub-optimal plan being chosen. The\nfollowing results are after running the query several times (after each\nchange).\n\ndev1=# select version();\n version\n-----------------------------------------------...
[ { "msg_contents": "Is it faster to use a Stored Proc that returns a Type or has Out Parameters\nthen a View? Views are easier to maintain I feel. I remember testing this\naround 8.0 days and the view seemed slower with a lot of data.\n\nIs it faster to use a Stored Proc that returns a Type or has Out Paramete...
[ { "msg_contents": "Hey folks,\n\nEarlier in the week I wrote a Munin plugin that takes the \"await\" and\n\"average queue length\" fields from \"iostat -x\" and graphs them.\n\nThis seems rather odd to me :\n\nhttp://picasaweb.google.ca/alan.mckay/Work#5380253477470243954\n\nThat is Qlen. And await looks simi...
[ { "msg_contents": "Hi,\n\nWe have a very large, partitioned, table that we often need to query\nfrom new connections, but frequently with similar queries. We have\nconstraint exclusion on to take advantage of the partitioning. This also\nmakes query planning more expensive. As a result, the CPU is fully\nloaded...
[ { "msg_contents": "Hi,\n\nI am running a relativ complex query on pg 8.3.5 and have (possible) \nwrong query plan.\nMy select :\n\nexplain analyze select d.ids from a_doc d join a_sklad s on \n(d.ids=s.ids_doc) join a_nomen n on (n.ids=s.ids_num) join a_nom_gr \nnmgr on (nmgr.ids=n.ids_grupa) join a_ga...
[ { "msg_contents": "Hi!\n\nYesterday I Clustered one big table (# CLUSTER kredyty USING kredyty_pkey;)\nand today one query is extremely slow.\n\nquery:\nSELECT telekredytid FROM kredytyag \nWHERE TRUE \nAND kredytyag.id = 3064776\nAND NOT EXISTS\n (\n SELECT 1 FROM\n (\n SELECT * FROM kr...
[ { "msg_contents": "Hi!\n\nYesterday I Clustered one big table (# CLUSTER kredyty USING kredyty_pkey;)\nand today one query is extremely slow.\n\nquery:\nSELECT telekredytid FROM kredytyag \nWHERE TRUE \nAND kredytyag.id = 3064776\nAND NOT EXISTS\n (\n SELECT 1 FROM\n (\n SELECT * FROM kr...
[ { "msg_contents": "Users,\n\nPlease read the following two documents before posting your performance\nquery here:\n\nhttp://wiki.postgresql.org/wiki/Guide_to_reporting_problems\nhttp://wiki.postgresql.org/wiki/SlowQueryQuestions\n\nThis will help other users to troubleshoot your problems far more rapidly.\n\n--...
[ { "msg_contents": "Problem occurs when running (in production) Postgres 8.3.7 64-bit (from RPM) \non Ubuntu 8.04.2, on an Amazon EC2 (xen) \"Large\" instance (8GB RAM), with \nthe DB on a 50GB EC2 block device.\nProblem does not occur when running (in staging/pre-production) Postgres \n8.3.5 32-bit (from RPM) o...
[ { "msg_contents": "In this linux mag article (http://www.linux-mag.com/cache/7516/1.html)\nthe author describes a performance problem\nbrought on by using the noapic boot time kernel option. Has anyone\ninvestigated whether postgres performs better\nwith/without the noapic option?\n", "msg_date": "Mon, 14 ...
[ { "msg_contents": "Hello\nI have a database where I daily create a table.\nEvery day it is being inserted with ~3mln rows and each of them is being\nupdated two times.The process lasts ~24 hours so the db load is the same at\nall the time. total size of the table is ~3GB.\n\nMy current vacuum settings are:\naut...
[ { "msg_contents": "Hello all..\nI'm using PostgreSQL 8.3..\nHow can I get information about the hardware utilization:\n - CPU usage.\n - Disk space.\n - Memory allocation.\nthank you.\n", "msg_date": "Tue, 15 Sep 2009 02:27:41 -0700 (PDT)", "msg_from": "std pik <stdpik@gmail.com>", ...
[ { "msg_contents": "\nHello,\n\nIn the same context that my previous thread on this mailing list (the\ndatabase holding 500k articles of a french daily newspaper), we now\nneed to handle the users' comments on the articles (1 million for now,\nquickly growing).\n\nIn our context, we'll have three kind of que...
[ { "msg_contents": "Is there a rule of thumb for the extra load that will be put on a\nsystem when statement stats are turned on?\n\nAnd if so, where does that extra load go? Disk? CPU? RAM?\n\n-- \n“Don't eat anything you've ever seen advertised on TV”\n - Michael Pollan, author of \"In Defense of ...
[ { "msg_contents": "Hi All,\n\nI have a large quantity of temporal data, 6 billion rows, which I would\nlike to put into a table so I can exploit SQL datetime queries. Each row\nrepresents a geophysical observation at a particular time and place. The\ndata is effectively read-only - i.e. very infrequent updates ...
[ { "msg_contents": "Hi,\n\nIs there any downsides of using BETWEEN two identical values ?\n\n(Postgres 8.3.6, Debian Linux 2.6.18-6-amd64)\n\n\nThe problem is in this index:\nCREATE INDEX ibds_contratacao_fatura1\n ON bds_contratacao_fatura USING btree (fat_referencia);\n\n\"fat_referencia\" is a field that t...
[ { "msg_contents": "Hi all,\n\non our PostgreSQL 8.3.1 (CentOS 5.3 64-bit) two different query plans\nfor one of our (weird) queries are generated. One of the query plans\nseems to be good (and is used most of the time). The other one is bad -\nthe query takes about 2 minutes and the database process, which is\n...
[ { "msg_contents": "Hi all,\n\nWe're using Postgresql 8.3.7 on Debian. We are seeing a very strange performance situation with our application which I am \nhoping that someone can shed light on.\n\nOur tests find that our application runs quite well on 8.3.7 initially. The test consists of database creation fo...
[ { "msg_contents": "Hi everybody.\n\nI'm having an issues with wrong plan for query in PostgreSQL (version \n8.3). EXPLAIN ANALYZE shows that there're a lot of places where \nplanner estimates row count totally wrong, like 1 instead of 12000+.\ndefault_statistics_target variable is set to 100, and I tried to r...
[ { "msg_contents": "\n\nHello,\n\nI am trying to index a field in my database of size about 16K rows, but i m\ngetting this error.\n\n\" Index row requires 9324 bytes maximum size is 8191 \"\n\nCan anyone please guide me how to remove this error....\n\nAlso, average time to search for a query in a table is taki...
[ { "msg_contents": "Hi everybody.\n\nI'm having an issues with wrong plan for query in PostgreSQL (version \n8.3). EXPLAIN ANALYZE shows that there're a lot of places where \nplanner estimates row count totally wrong, like 1 instead of 12000+.\ndefault_statistics_target variable is set to 100, and I tried to r...
[ { "msg_contents": "Hey folks,\n\nWe are looking to optimize the query I was talking about last week\nwhich is killing our system.\n\nWe have explain and analyze which tell us about the cost of a query\ntime-wise, but what does one use to determine (and trace / predict?)\nmemory consumption?\n\nthanks,\n-Alan\n\...
[ { "msg_contents": "I'm looking at running session servers in ram. All the data is\nthrow-away data, so my plan is to have a copy of the empty db on the\nhard drive ready to go, and have a script that just copies it into ram\nand starts the db there. We're currently IO write bound with\nfsync=off using a 15k5 ...
[ { "msg_contents": "Dear all\n\n I am having a problem of high cpu loads in my postgres server during peak\ntime. Following are the\ndetails of my setup (details as per the postgres wiki) .\n\n** PostgreSQL version\n o Run \"select pg_version();\" in psql or PgAdmin III and provide the\nfull, exact outp...
[ { "msg_contents": "Hey Everyone,\n So, I have a nice postgreSQL server (8.4) up and running our \ndatabase. I even managed to get master->slave going without trouble \nusing the excellent skytools.. however, I want to maximize speed and the \nhot updates where possible, so, I am wanting to prune unused index...
[ { "msg_contents": "Hello postgres wizards,\n\nWe recently upgraded from 8.1.5 to 8.4\nWe have a query (slow_query.sql) which took about 9s on 8.1.5\nOn 8.4, the same query takes 17.7 minutes.\n\nThe code which generated this query is written to support the\ncalculation of arbitrary arithmetic expressions across...
[ { "msg_contents": "Hello-\n\nI've discovered that lookups on one column in one instance of my \ndatabase performs badly.\n\nThe table has columns 'email' and 'key', both of type 'character \nvarying(255)', and both with btree indices. The table has ~ 500k \nrows, and no rows of either column are blank or nu...
[ { "msg_contents": "Hi.\n\nI have a transaction running at the database for around 20 hours .. still\nisn't done. But during the last hours it has come to the point where it\nreally hurts performance of \"other queries\".\n\nGiven pg_stat_activity output there seems to be no locks interfering but\nthe overall cp...
[ { "msg_contents": "Hi ,\n\nI have one table my_test table . with on index created on one column .\n\n\nI have turned off the sequential scans .\n\nNow when ever i do refresh on this table or press F5 , It increase the\nsequential scans count and\nSequential tuple read count .\n\nPls help me to understand what ...
[ { "msg_contents": "Is there any practical limit to the number of shared buffers PG 8.3.7 \ncan handle before more becomes counter-productive? I remember the \nbuffer management algorithm used to get unhappy with too many buffers \nand past a certain point performance dropped with extra memory \npitched at Postg...
[ { "msg_contents": "Hi,\nI have a big performance problem in my SQL select query:\n\n========================================\nselect * from event where user_id in\n(500,499,498,497,496,495,494,493,492,491,490,489,488,487,486,485,484,483,482,481,480,479,478,477,476,475,474,473,472,471,470,469,468,467,466,465,464...
[ { "msg_contents": "Hi all..\nplease, how can i tune postgres performance?\n\nThanks.\n", "msg_date": "Sun, 27 Sep 2009 23:13:40 -0700 (PDT)", "msg_from": "std pik <stdpik@gmail.com>", "msg_from_op": true, "msg_subject": "Postgres performance" }, { "msg_contents": "std pik wrote:\n> Hi al...
[ { "msg_contents": "Hello,\n\nI am using PostgreSQL 8.3.7 and I am experiencing an issue similar to \nthe one I've already described some time ago:\nhttp://archives.postgresql.org/pgsql-performance/2009-02/msg00261.php\n\nAgain, adding a LIMIT clause to a query, which is normally executing \nvery fast thanks to ...
[ { "msg_contents": "I need to retrieve the most recent prices per products from a price list table:\n\nCREATE TABLE listini_anagrafici\n(\n id character varying(36) NOT NULL,\n articolo character varying(18),\n listino character varying(5),\n data_ent date,\n data_fin date,\n prezzo double precision,\n ul...
[ { "msg_contents": "I need to retrieve the most recent prices per products from a price list table:\n\nCREATE TABLE listini_anagrafici\n(\n id character varying(36) NOT NULL,\n articolo character varying(18),\n listino character varying(5),\n data_ent date,\n data_fin date,\n prezzo double precision,\n ul...
[ { "msg_contents": "Hi,\n\nI tried to profile postgresql queries with OProfile but I could not do.\nOProfile version: 0.9.5\nPostgreSQL version: 8.4.0\nOS: CentOS 5\n\nI compiled OProfile with \"./configure --with-kernel-support\", \"make\" \nand \"make install\"; also I created a user and a group both named as...
[ { "msg_contents": "Hi,\nI have a pretty small database on my home computer (~25Gb). I have three\n250Gb HDDs.\n\nMy setup was 1 HDD for OS (Windows XP) and the other 2 HDD in RAID 0 for\npostgre database.\nWill I see any performance improvement if I instead have 1 HDD for OS, 1 HDD\nfor pg_xlog and 1HDD for th...
[ { "msg_contents": "I'm attempting to implement full-text search and am torn between two techniques:\n\n1) Create multiple GIN indexes on columns I'm going to search against and UNION the results\nor\n2) Create one concatenated column GIN index consisting of the columns that will be searched.\n\nIs there any per...
[ { "msg_contents": "\nEpisode umpteen of the ongoing saga with my GiST indexes.\n\nFor some reason, GiST uses loads of CPU. I have a query that runs entirely \nout of cache, and it takes ages. This much I have tried to fix and failed \nso far.\n\nWhat I would now like to do is to tell postgres about it, so that ...
[ { "msg_contents": "Hello,\n\nwe're currently facing long running insert statements with durations ~15sec (far\ntoo long...) and I've no idea what's the reason for this issue.\n\nAn \"explain analyze\" of the insert statement tells me:\n############ SNIP #########################################################\...
[ { "msg_contents": "In some docs i read that shared buffer must be increased based on the\nmaximum dataset size. For my scenario the dataset size is relative small\nless then a Gb, but database# handled by a server is nearly 200db per\nserver and average connection# to server will be >500 (approx 5/per each\nDB...
[ { "msg_contents": "Hi everyone,\n What is the best Linux flavor for server which runs postgres alone.\nThe postgres must handle greater number of database around 200+. Performance\non speed is the vital factor.\nIs it FreeBSD, CentOS, Fedora, Redhat xxx??\n\n-Arvind S\n\nHi everyone,      What is the best ...
[ { "msg_contents": "Hello all,\n\nI'm looking for your general thoughts on CPU brand and HP disk controllers for a PostgreSQL server running Linux. The workload is all over the place sometimes OLTP, sometimes huge/long report transactions, sometimes tons of inserts and warehouse so I'm looking for overall good ...
[ { "msg_contents": " Hello everyone,\n\n I'm using PostgreSQL 8.3.8 running on a server with 2 Xeon CPUs, 4GB\n RAM, 4+2 disks in RAID 5 and CentOS 5.3. There's only one database\n which dumped with pgdump takes ~0.5GB.\n\n There are ~100 tables in the database and one of them (tableOne) always\n contains only a...
[ { "msg_contents": "[I got no response on -general for a few days so I'm trying here]\n\nWhen we upgraded from linux-2.6.24 to linux-2.6.27, our pg_dump\nduration increased by 20% from 5 hours to 6. My first attempt at\nresolution was to boot with elevator=deadline. However that's\nactually the default IO sche...
[ { "msg_contents": "All:\n\nWe have a web-application which is growing ... fast. We're currently\nrunning on (1) quad-core Xeon 2.0Ghz with a RAID-1 setup, and 8GB of RAM.\n\nOur application collects a lot of sensor data, which means that we have 1\ntable which has about 8 million rows, and we're adding about 2...
[ { "msg_contents": "\nmnw21-modmine-r13features-copy=# select count(*) from project;\n count\n-------\n 10\n(1 row)\n\nmnw21-modmine-r13features-copy=# select count(*) from intermineobject;\n count\n----------\n 26344616\n(1 row)\n\nmnw21-modmine-r13features-copy=# \\d intermineobject;\nTable \"public.in...
[ { "msg_contents": "Hi Team,\n\nThis question may have asked many times previously also, but I could not\nfind a solution for this in any post. any help on the following will be\ngreatly appreciated.\n\nWe have a PG DB with PostGIS functions. There are around 100 tables in the\nDB and almost all the tables conta...
[ { "msg_contents": "Hi ,\nI want to imporve the performance for inserting of huge data in my table .\nI have only one idex in table .\n\nFirst question - i want to know the role played by\n\n #fsync = on and\n #synchronous_commit = on\n\nThey are commented by default in 8.4 .\nWhen made like this :-\nfsync...
[ { "msg_contents": "Hi everyone,\n\nI am looking for a way to dump+restore a subset of a database (on another\nserver), using both selection and projection of the source tables (for\nsimplicity assume a single table).\nI understand that pg_dump will not let me do this. One way I considered is\ncreating a view wi...
[ { "msg_contents": "Hi ,\n\nI want to insert multiple Rows in one shot to improve my performance .\n\n From C# code I am using ADO .net to connect to postgres .\nCurrently i am pasting the code which is not of postgres but in my dev\nenvironment similar things i am doing with Postgres.\n\nMySqlConnection mySql ...
[ { "msg_contents": "HiI have a database and ~150 clients non-stop writing to this database quite\nbig pieces of text.\nI have a performacne problem so I tried to increase log level, so I could\nsee which queries take most time.\nMy postgresql.conf (Log section) is:\n\nlog_destination = 'stderr'\nlogging_collecto...
[ { "msg_contents": "We have been using partitioning for some time with great success. Up \nuntil now our usage has not included ordering and now that we are trying \nto use an ORDER BY against an indexed column a rather significant \nshortcoming seems to be kicking in.\n\nParent table (have cut all but 4 column...
[ { "msg_contents": "Hey all, it's been a bit however I'm running into some issues with my\nconcurrent index\n\n\nAlways get this error during a concurrent index.\n\n\n\n*2009-10-07 22:18:02 PDT admissionclsdb postgres 10.13.200.70(46706) ERROR:\ndeadlock detected*\n\n*2009-10-07 22:18:02 PDT admissionclsdb postg...
[ { "msg_contents": "Hi there\n\nWe are runing Postgres 8.3.7 on a\nWe have a problem with Explain Analyze that we haven't seen before.\n\n we run an Explain Analyze on a query.\n\n Nested Loop (cost=1256.32..2097.31 rows=198 width=1120) (actual\ntime=12.958..20.846 rows=494 loops=1)\n -> HashAggregate (cos...
[ { "msg_contents": "Hey folks,\n\nCentOS / PostgreSQL shop over here.\n\nI'm hitting 3 of my favorite lists with this, so here's hoping that\nthe BCC trick is the right way to do it :-)\n\nWe've just discovered thanks to a new Munin plugin\nhttp://blogs.amd.co.at/robe/2008/12/graphing-linux-disk-io-statistics-wi...
[ { "msg_contents": "I have a system where it would be very useful for the primary keys for\na few tables to be UUIDs (actually MD5s of files, but UUID seems to be\nthe best 128-bit type available). What is the expected performance of\nusing a UUID as a primary key which will have numerous foreign\nreferences to...
[ { "msg_contents": "I am seeking advice on what the best setup for the following would be.\n\n \n\nMy company provides a hosted web calendaring solution for school\ndistricts. For each school district we have a separate database. Each\ndatabase has 57 tables. There are a total of 649 fields in those\ntables. ...
[ { "msg_contents": "Hello All --\n\nI have implemented table partitioning in order to increase performance \nin my database-backed queuing system. My queue is partitioned by \njob_id into separate tables that all inherit from a base \"queue\" table.\n\nThings were working swimmingly until my system started ma...
[ { "msg_contents": "I have a 30,000,000 records table, counts the record number to need for 40 seconds. \nThe table has a primary key on column id;\n\nperf=# explain select count(*) from test;\n...\n-----------------------------------------\nAggregate (cost=603702.80..603702.81 rows=1 width=0)\n  -> Seq scan on ...
[ { "msg_contents": "Hi,\nWe have table 'user' and one column define status of user, currently\nthere are 2 valuse 'A' acitve and 'D' deleted.\nCurrently we define column as domain type ( status_domain with two\npossible values)\nbut I'm not sure is it good solution, maybe it is better create\nseparate table e.g...
[ { "msg_contents": "Hi\n\nI used the vacuumdb command. But in its output I cann't see VACUUM.\n\nThe last part of output is\n\nDETAIL: 0 dead row versions cannot be removed yet.\nThere were 0 unused item pointers.\n1 pages contain useful free space.\n0 pages are entirely empty.\nCPU 0.00s/0.00u sec elapsed 0.00...
[ { "msg_contents": "Hi,\n\nCan anybody highlight how to use unnest function from postgres 8.4 on\nmulti-dimensional array?\n\nBelow is the sample table structure:\n\nTable \"public.multi_array_test\"\n Column | Type | Modifiers\n---------+----------+-----------\n id | integer |\n user_id | bigint[] |\...
[ { "msg_contents": "In the below query both table has less than 1 million data. Can u tell me\nthe reason of this plan?\nwhy its takin extensive cost , seq scan and sorting?? wat is Materialize?\n\nselect 1 from service_detail\nleft join non_service_detail on non_service_detail_service_id =\nservice_detail.serv...
[ { "msg_contents": "We have performance problem with query on partitioned table when query\nuse order by and we want to use first/last rows from result set.\nMore detail description:\nWe have big table where each row is one telephone call (CDR).\nDefinitnion of this table look like this:\nCREATE TABLE accounting...
[ { "msg_contents": "Any issues, has it baked long enough, is it time for us 8.3 folks to deal\nwith the pain and upgrade?\n\nAnymore updates regarding 8.4 and slon 1.2 as well, since I usually\nbuild/upgrade both at the same time.\n\nThanks\nTory\n\nAny issues, has it baked long enough, is it time for us 8.3 fol...
[ { "msg_contents": "I'm doing \\copy from file into table. There are two files one with 7 million\nlines and the other with around 24 million and the data goes into separate\ntable. There are only three columns in each file and four in each table (the\nprimary key, id serial is the fourt). The data is about 150 ...
[ { "msg_contents": "Hi,\n\nI want to select the last contact of person via mail.\nMy sample database is build with the following shell-commands \n\n| createdb -U postgres test2\n| psql -U postgres test2 < mail_db.sql\n| mailtest.sh | psql -U postgres\n\nI call to get the answer\n\n| SELECT address, max(sent) fro...
[ { "msg_contents": "Hi,\n\nI am running performance simulation against a DB. I want to randomly pull\ndifferent records from a large table. However the table has no columns that\nhold sequential integer values (1..MAX), i.e. the columns all have \"holes\"\n(due to earlier filtering). Also PG does not have a conc...
[ { "msg_contents": "Hi\n\nThis query is doing a sequential scan on the child partitions even\nthough indexes on all constrained columns are present\n\nThe box is very lightly loaded (8 core 15K 6x300G Raid 10 disks)\n\n\n\n explain analyze\n select thedate,sent.theboxid_id,sub_box_id,box_num,sum(summcount) as\n...
[ { "msg_contents": "Hi\n\nThis query is doing a sequential scan on the child partitions even\nthough indexes on all constrained columns are present\n\nThe box is very lightly loaded (8 core 15K 6x300G Raid 10 disks)\n\n\n\n explain analyze\n select thedate,sent.theboxid_id,sub_box_id,box_num,sum(summcount) as\ne...
[ { "msg_contents": "Hi chaps,\n\nCan anyone recommend a decent server vendor in the UK?\n\nI'm looking to deploy a new machine to handle some of our non-critical data, and I'm just wondering if I can avoid the pains I've had with dell hardware recently.\n\nAlso whilst I'm asking, does anyone else find their dell...
[ { "msg_contents": "Hi ,\n\nIn my project I use Nhibernate to connect to Postgres.\nCurrently it is very slow.\n\nI have used *Yourkit* profiller to get some key informaitons.\nIn CPU profilling i have analyzed following things : -\nLet me explain one by one : -\n\n1- NHibernate.Impl.SessionImpl.DoLoad(Type, Ob...
[ { "msg_contents": "Helo everbody!\n\nI need to know how much the postgres is going to disk to get blocks and how much it is going to cache? witch is the statistic table and what is the field that indicates blocks reads from the disk and the memory cache?\n\nAnother question is, what is the best memory configura...
[ { "msg_contents": "\nHi - \n I'm stuck on a query performance issue, and I would sincerely appreciate\nany server setting/ query improvement suggestions. I am attempting to\nretrieve records stored in 20 tables that are related to a one or more\nrecords in a single table (let's call the 20 tables `data table...
[ { "msg_contents": "Folks,\n\nWe have just migrated from Oracle to PG.\n\nWe have a database that has approx 3 mil rows and one of the columns has a cardinality\nof only 0.1% (3000 unique values). \n\nWe have to issue several queries that use this low cardinality column in a WHERE clause\nas well as see this col...