threads
listlengths
1
275
[ { "msg_contents": "Group by using CHAR columns takes abnormally big time.\n\nHow to speed it ?\n\nAndrus.\n\n8.1.4, cluster locale is en-us, db encoding is utf-8\n\nset search_path to firma2,public;\nexplain analyze SELECT\n CASE WHEN bilkaib.raha='EEK' THEN 0 ELSE bilkaib.id END,\n bilkaib.DB,\n CASE WHEN dbko...
[ { "msg_contents": ">I it seems that slowness is caused by grouping by column\n> \n> exchrate numeric(13,8)\n\nexchrate has different values in few rows.\nIt has usually value 0\nIn this sample query it is always 0.\n\nI tried not change exchrate with \n\nnullif( bilkaib.EXCHRATE,0) \n\nbut this does not up spe...
[ { "msg_contents": "I am struggeling with the following query which fetches a random subset \nof 200 questions that matches certain tags within certain languages. \nHowever, the query takes forever to evaluate, even though I have a \n\"limit 200\" appended. Any ideas on how to optimize it?\n\nQUERY: ============...
[ { "msg_contents": "explain analyze SELECT sum(1)\n FROM dok JOIN rid USING (dokumnr)\n WHERE dok.kuupaev>='2008-05-01'\n and\n ( (\n dok.doktyyp IN\n('V','G','Y','K','I','T','D','N','H','M','E','B','A','R','C','F','J','Q')\n AND CASE WHEN NOT dok.objrealt OR dok.doktyyp='I' THEN dok.yksus\nELS...
[ { "msg_contents": "I've tryied 4 times to post this message to pgsql-performance without\nsuccess... No return, even an error...\n\nBelow is my problem; a query that perform bad when using a filter almost equal.\n\nThe problem (8.2.11):\nEXPLAIN ANALYZE\nSELECT\nresource,\ncategory,\nuserid,\ntitle,\nyear,\nmon...
[ { "msg_contents": "Hi there,\n\nWe've recently started seeing some context switch storm issues on our\nprimary Postgres database, and I was wondering if anyone had\nencountered similar issues or had any ideas as to what could be\ncausing these issues.\n\nThe machine configuration is:\n\n8xIntel Xeon Harpertown ...
[ { "msg_contents": "Has anyone benchmarked this controller (PCIe/4x, 512 MB BBC)? We try to \nuse it with 8x SATA 1TB drives in RAID-5 mode under Linux, and measure \nstrange values. An individual drive is capable of delivering 91 MB/sec \nsequential read performance, and we get values ~102MB/sec out of a \n8-dr...
[ { "msg_contents": "I noticed that query\n\nSELECT dok.*\n FROM dok\nJOIN (SELECT DISTINCT dokumnr FROM temptbl ) x USING(dokumnr);\n\nis slow in 8.1.4\nI cannot use explain analyze since this query uses results from temporary \ntable temptbl which is not available.\n\nSometimes innter table returns only 1 row...
[ { "msg_contents": "\nHi. I have a problem on one of our production servers. A fairly \ncomplicated query is running, and the backend process is using 30 GB of \nRAM. The machine only has 32GB, and is understandably swapping like crazy. \nMy colleague is creating swap files as quickly as it can use them up.\n\nT...
[ { "msg_contents": "Hi. I have a longish collection of SQL statements stored in a file that I\nrun periodically via cron. Running this \"script\" takes a bit too long, even\nfor a cron job, and I would like to streamline it.\nIs there a way to tell Postgres to print out, after each SQL statement is\nexecuted, ...
[ { "msg_contents": "Hello,\n\nI'm having problems with the following bad performing select-statement\nin a trigger-function (on update before):\n\n ...\n for c in\n select id_country, sum(cost) as sum_cost\n from costs\n where id_user = p_id_user\n and id_state = 1\n and date(request) between p_...
[ { "msg_contents": "Hi,\n\nI am trying to restore a table out of a dump, and I get an 'out of\nmemory' error.\n\nThe table I want to restore is 5GB big.\n\nHere is the exact message :\n\nadmaxg@goules:/home/backup-sas$ pg_restore -F c -a -d axabas -t cabmnt \naxabas.dmp\npg_restore: [archiver (db)] Error while P...
[ { "msg_contents": "Database performance geeks,\n\nWe have a number of patches pending for 8.4 designed to improve database \nperformance in a variety of circumstances. We need as many users as possible \nto build test versions of PostgreSQL with these patches, and test how well \nthey perform, and report back ...
[ { "msg_contents": "Hi,\n\nI've discovered a peculiarity with using btrim in an index and was \nwondering if anyone has any input.\n\nMy table is like this:\n Table \"public.m_object_paper\"\n Column | Type | Modifiers\n---------------------+-----------...
[ { "msg_contents": "I have postgresql 8.3.5 installed on MacOS X / Darwin. I remember \nsetting shared memory buffer parameters and that solved the initial \nperformance problem, but after running several tests, the performance \ngoes way, way down. Restarting the server doesn't seem to help.\n\nI'm using pq...
[ { "msg_contents": "Hi All,\nI would like to ask to you, how many connections a db server can handle. \nI know the question is not so easy, and actually I don't want to known a \n\"number\" but something like:\n- up to 100 connections: small load, low entry server is enough\n- up to 200 connections: the db serve...
[ { "msg_contents": "Hi\n\nI'm trying to compare different filesystems for postgres using pgbench. \n The problem I've seen is that my IO wait is very very low. Is there a \nway I can get pgbench to do more to push that up a little?\n\n-- \nAdrian Moisey\nActing Systems Designer | CareerJunction | Your Future S...
[ { "msg_contents": "PostgreSQL 8.3.5, the system is now stable (uptime > 10 days). \nPostgreSQL stats collector uses 100% CPU forever:\n\nOn Thursday:\n\nlast pid: 29509; load averages: 2.36, 2.01, \n2.03 \nup 5+17:28:56 04:02:5...
[ { "msg_contents": "Hi,\n\nwe have a some bad queries (developers are working on that), some of\nthem run in 17 secs and that is the average but when analyzing logs i\nfound that from time to time some of them took upto 3 mins (the same\nquery that normally runs in 17secs).\n\nso my question is: how could i look...
[ { "msg_contents": "Hi,\n\nWe are trying to implement slony as a replication tool for one of our\ndatabase. The Insert and updates have increased by approximately double\nmaking some of our important script slow.\n\nThe database in concern is a warehouse and we have added additional primary\nkey to support slony...
[ { "msg_contents": "Hi all,\n\nSo after a long hiatus after running this OLTP workload at the OSDL,\nmany of you know the community has had some equipment donated by HP: a\nDL380 G5 and an MSA70 disk array. We are currently using the hardware\nto do some tuning exercises to show the effects of various GUC\npara...
[ { "msg_contents": "Hi,\n\nI am looking for some recent and hopefully genuine comparisons between\nOracle and PostgreSQL regarding their performance in large scale\napplications. Tests from real world applications would be preferable\nbut not required. Also differentiations in different areas (i.e.\ndifferent da...
[ { "msg_contents": "Here is a query on a partitioned schema that produces a very bad query plan. The tables are fully vacuumed, analyzed with stats target 40, and no bloat (created with pure inserts, no updates or deletes).\n\nI already know of at least three bugs with the query planner and partitions listed at...
[ { "msg_contents": "SQL:\n\nupdate product set sz_category_id=null where am_style_kw1 is not null \nand sz_category_id is not null\n\nquery plan:\n\n\"Seq Scan on product (cost=0.00..647053.30 rows=580224 width=1609)\"\n\" Filter: ((am_style_kw1 IS NOT NULL) AND (sz_category_id IS NOT NULL))\"\n\nInformation o...
[ { "msg_contents": "\nHello,\n\nTo improve performances, I would like to try moving the temp_tablespaces\nlocations outside of our RAID system.\nIs it a good practice ?\n\n\nThanks,\n\nMarc Mamin\n", "msg_date": "Mon, 22 Dec 2008 15:40:10 +0100", "msg_from": "\"Marc Mamin\" <M.Mamin@intershop.de>", "...
[ { "msg_contents": "Hi everyone!\nI have a very large 2-column table (about 500M records) from which I want to\nremove duplicate records.\n\nI have tried many approaches, but they all take forever.\n\nThe table's definition consists of two short TEXT columns. It is a\ntemporary table generated from a query:\n\n...
[ { "msg_contents": "(NOTE: I tried sending this email from my excite account and it appears \nto have been blocked for whatever reason. But if the message does get \ndouble posted, sorry for the inconvenience.)\n\nHey all,\n\nMerry Christmas Eve, Happy Holidays, and all that good stuff. At my \nwork, I'm tryin...
[ { "msg_contents": "Hello.\n\nI am trying to tune PostgreSQL write parameters to make writing operation\nfast on a heavy-loaded database (a lot of inserts/updates).\nAfter resetting the pg_stat_bgwriter statistics (I do it by deleting\nglobal/pgstat.stat file and restarting PostgreSQL) I monitor the following:\n...
[ { "msg_contents": "We have serveral table where the index size is much bigger than the \ntable size.\n\nExample:\n\nselect count(*) from product_price -- 2234244\n\nTable size: 400 MB\nIndex size: 600 MB\n\nAfter executing \"reindex table product_price\", index size reduced to 269MB.\n\nI believe this affects p...
[ { "msg_contents": "I have to insert rows to table with 95% primary key unique_violation.\n\nI've tested 2 examples below:\n\n1)\nBEGIN\n INSERT INTO main (name, created) VALUES (i_name, CURRENT_TIMESTAMP\nAT TIME ZONE 'GMT');\n EXCEPTION WHEN UNIQUE_VIOLATION THEN\n RETURN 'error: already exists';\n...
[ { "msg_contents": "Hi, I am re-posting my question here after trying to find a solution\nin the PHP pgsql list with no luck.\n\nI am experiencing some performance issues that I think are stemming\nfrom prepared statements. I have a pretty simple query:\n\nSELECT cl.idOffer,cl.idaffiliate ,cl.subid,cl.datetime\n...
[ { "msg_contents": "While looking at a complex query that is being poorly planned by\nPostgreSQL 8.2.9, I discovered that any non-trivial CASE...WHEN\nexpression seems to produce a selectivity estimate of 0.005. This\nalso happens on HEAD.\n\npsql (8.4devel)\nType \"help\" for help.\n\nhead=# create table tenk ...
[ { "msg_contents": "Hi list,\nI would like to ask your help in order to understand if my postgresql \nserver (ver. 8.2.9) is well configured.\nIt's a quad-proc system (32 bit) with a 6 disk 1+0 RAID array and 2 \nseparate disks for the OS and write-ahead logs with 4GB of RAM.\n\nI don't know what is the best inf...
[ { "msg_contents": "Tom Lane wrote:\n> \"Ryan Hansen\" <ryan.hansen@brightbuilders.com> writes:\n[...]\n>> but when I set the shared buffer in PG and restart\n>> the service, it fails if it's above about 8 GB.\n>\n> Fails how? And what PG version is that?\n\nThe thread seems to end here as far as the specific q...
[ { "msg_contents": "Hi,\n\nWe have recently installed slony and tsrted replication on one of our test\nmachines. When we start inserting data in to the replicated database, the\nreplication is taking properly. Over a period of time the lag increases\nbetween the two database.\n\nLooking further we found that, sl...
[ { "msg_contents": "---------- Forwarded message ----------\nFrom: jose fuenmayor <jafn82@gmail.com>\nDate: Wed, Jan 7, 2009 at 2:56 PM\nSubject: Casting issue!!\nTo: psql-admin@postgresql.org\n\n\nHi all I am trying to migrate from postgresql 8.2.x to 8.3.x, i have an\nissue with casting values when i try to p...
[ { "msg_contents": "Hello.\n\nSuppose I perform 1000 RANDOM writes into a file. These writes are saved\ninto Linux writeback buffer and are flushed to the disc asynchronously,\nthat's OK.\n\nThe question is: will physical writes be performed later in the sequence of\nphysical SECTOR position on the disc (minimiz...
[ { "msg_contents": "Ok, here some information:\n\nOS: Centos 5.x (Linux 2.6.18-53.1.21.el5 #1 SMP Tue May 20 09:34:18 EDT \n2008 i686 i686 i386 GNU/Linux)\nRAID: it's a hardware RAID controller\nThe disks are 9600rpm SATA drives\n\n(6 disk 1+0 RAID array and 2 separate disks for the OS).\n\n\nAbout iostat (on sd...
[ { "msg_contents": "Hi,\n\nI'm fiddling with a hand-made block device based benchmarking thingie,\nwhich I want to run random reads and writes of relatively small blocks\n(somewhat similar to databases). I'm much less interested in measuring\nthroughput, but rather in latency. Besides varying block sizes, I'm al...
[ { "msg_contents": "The new MLC based SSDs have better wear leveling tech and don't suffer the pauses. Intel X25-M 80 and 160 GB SSDs are both pause-free. See Anandtech's test results for details.\r\n\r\nIntel's SLC SSDs should also be good enough but they're smaller.\r\n\r\n- Luke\r\n\r\n----- Original Messag...
[ { "msg_contents": "I believe they write at 200MB/s which is outstanding for sequential BW. Not sure about the write latency, though the Anandtech benchmark results showed high detail and IIRC the write latencies were very good.\r\n\r\n- Luke\r\n\r\n----- Original Message -----\r\nFrom: david@lang.hm <david@lan...
[ { "msg_contents": "Not to mention the #1 cause of server faults in my experience: OS kernel bug causes a crash. Battery backup doesn't help you much there.\r\n\r\nFsync of log is necessary IMO.\r\n\r\nThat said, you could use a replication/backup strategy to get a consistent snapshot in the past if you don't m...
[ { "msg_contents": "Hello,\n\nI created a multicolumn index on the columns c_1,..,c_n .\nIf I do use only a true subset of these columns in a SQL query, is the \nindex still efficient?\nOr is it better to create another multicolumn index defined on this subset?\n\nThanks for any comments!\n", "msg_date": "Mo...
[ { "msg_contents": "OK, I've got a query that's running slow the first time, then fast.\nBut I can't see where the time is really being spend on the first run.\n Query and plan attached to preserve formatting.\n\nThe index scan and nested loop that feed the next layer up nested loop\nboth show very short run tim...
[ { "msg_contents": "Hi Group.\nRecently upgraded from 8.1 to 8.3 on RHEL 5 64-bit.\n\nI've noticed some performance problems that I am guessing are WAL \nrelated based on my browsing around and wondered if someone had some \nsuggestions for tuning the WAL settings. It could also help if someone \njust laughed at...
[ { "msg_contents": "So, I had a query that uses a postgis geometry index and the planner was\nunderestimating the number of rows it would return. Because of this,\nthe planner was choosing the geometry index over a compound index on the\nother columns in the WHERE clause. So, I thought, let me increase the\nst...
[ { "msg_contents": "We are currently storing a large amount of networking data. The\ndatabase size is over 50 Gigabytes. It also grows by 10 Gigabytes\nevery month.\n\nWe are looking if there is a way to speedup lookups by IP Address.\n\nThe primary key is a set of values. And the key does include IP\nAddress as...
[ { "msg_contents": "Hi,\n\nI want to store a boolean SQL condition in a column \"condition_column\" \nof my table \"myTable\".\nThis condition refers to other columns of the same table and shall use \none parameter, e.g. \"column1=4 AND colume2+column3=param\".\nEvery row has a different condition in general..\n...
[ { "msg_contents": "\nHi folks,\n\n\nI really like the idea of exclusively using views as interfaces \nto the applications (each app has its own view, tuned for the\napp's access patterns). So, in my model, of course inserts and \nupdates also happen through views, also more complex operations\ncould be triggere...
[ { "msg_contents": "Hi all,\n\nI have a view that looks like this:\n\n SELECT\n CASE\n WHEN r.assetid IS NULL THEN p.assetid\n ELSE r.assetid\n END AS assetid,\n CASE\n WHEN r.userid IS NULL THEN p.userid\n ELSE r.userid\n END AS us...
[ { "msg_contents": "sorry, I just wonder why I can't get my message delivered...\n\n-- \nÜdvözlettel,\nGábriel Ákos\n-=E-Mail :akos.gabriel@i-logic.hu|Web: http://www.i-logic.hu=-\n-=Tel/fax:+3612391618 |Mobil:+36209278894 =-\n", "msg_date": "Mon, 19 Jan 2009 18:31:26 +0100", "msg_fro...
[ { "msg_contents": "(now that my test went through, here is the question :) )\n\nDear Community,\n\nWe are using PostgreSQL proudly for quite a long time, but now we are\nfacing an interesting problem. Query plan seems to depend on how long\nthe IN() clause is.\n\nexplain analyze\nselect p.product_id \nfrom prod...
[ { "msg_contents": "Greetings,\n\nI'm experiencing a strange query plan change on a \"simple\" request, based on\nthe LIMIT parameter. I present here two tables, named _article and _comment.\nthey are part of a much larger database.\n\nIt's a tree-like database (making use of the ltree to keep the coherence),\na...
[ { "msg_contents": "Apologies if this is a FAQ, but...\n\nGiven linux's (mis)accounting/reporting of per-process memory, including\nshared memory (see for example this page: \nhttp://lwn.net/Articles/230975/) how does postgresql interpret and use\nthe information that's provided? Does it use the information as-...
[ { "msg_contents": "\nHi I am developing a database and have a couple of questions I havent \nfound an answer to yet.\n\n1) how do I find the size of an index, i.e. the size on disk?\n\n2) I have a query that is taking a long time to complete because the \ntable is about 120GB large. Its only returning 2000 rows...
[ { "msg_contents": "Hi\n\nA quick question, when pg receives data to be written to a table, does \nit cache that data in memory in case a subsequent request/query would \nneed it?\n\nAs I understand it, data is stored in pages and those pages have to be \nretrieved in order to write or read data from them. So my...
[ { "msg_contents": "Hello !\n\nI'm having a problem with a query that takes more or less 3.2 seconds to \nbe executed.\n\nThis query uses a view which encapsulates some calculations (in order to \navoid duplicating theses calculations at several places in the project).\n\nIn order to keep that post readable, I'v...
[ { "msg_contents": "Hi,\n\nI am running postgresql 8.3.5 on FreeBSD with Dual core Intel(R)\nXeon(R) CPU 3065 @ 2.33GHz, 2GB RAM and Seagate Technology -\nBarracuda 7200.10 SATA 3.0Gb/ (RAID 1).\n\nI made several benchmark test with pgbench, TPS rate is almost 40 +/- 5.\n$ pgbench -i pgbench -s 50 -U pgsql\n\n[...
[ { "msg_contents": "Hi list,\n\nClustering my indexes dramatically improves the query performance of many of\nmy queries. Also, the actual clustering takes a very long time for big\ndatabases, roughly 20 hours. I have two questions about how to improve this:\n\n1. I've tweaked maintenance_mem_max and effective_c...
[ { "msg_contents": "> I spotted a new interesting SSD review. it's a $379\n> 5.25\" drive bay device that holds up to 8 DDR2 DIMMS\n> (up to 8G per DIMM) and appears to the system as a SATA\n> drive (or a pair of SATA drives that you can RAID-0 to get\n> past the 300MB/s SATA bottleneck)\n> \n\nSounds very simil...
[ { "msg_contents": "Why not simply plug your server into a UPS and get 10-20x the performance using the same approach (with OS IO cache)?\r\n\r\nIn fact, with the server it's more robust, as you don't have to transit several intervening physical devices to get to the RAM.\r\n\r\nIf you want a file interface, dec...
[ { "msg_contents": "Hmm - I wonder what OS it runs ;-)\r\n\r\n- Luke\r\n\r\n----- Original Message -----\r\nFrom: david@lang.hm <david@lang.hm>\r\nTo: Luke Lonergan\r\nCc: glynastill@yahoo.co.uk <glynastill@yahoo.co.uk>; pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>\r\nSent: Fri Jan 23 04:5...
[ { "msg_contents": "Hey All,\n\nI previously post about the troubles I was having dumping a >1Tb (size \nwith indexes) table. The rows in the table could be very large. Using \nperl's DBD::Pg we were some how able to add these very large rows \nwithout running in to the >1Gb row bug. With everyones help I \nd...
[ { "msg_contents": "Hi\n\nI have noticed that my transaction log has quite large activity volume \n(up to 15MB per transaction), so with the amount of data I am using I \nhave manually moved the pg_xlog directory to a different disk. This \nallows me to have both the table space and transaction log on two \ndiff...
[ { "msg_contents": "Hi\n\nI just experienced a performance loss on inserts when redefining my \nindex on a table.\n\nI have a database with the following table\n\ntable:\n id1\tint\n id2\tint\n id3\tint\n id4\tint\n val1\tfloat\n ....\n tablespace dbspace\n\nthe data id distribution is hiera...
[ { "msg_contents": "So, the eternal problem with what hardware to buy. I really miss a\nhardware buying guide for database servers now that I'm about to buy\none..\nSome general guidelines mixed with ranked lists of what hardware that\nis best, shouldn't that be on the wiki?.\n\nTHis is of course very difficult...
[ { "msg_contents": "Folks,\n\nI turned on temp file logging for PostgreSQL to see if I needed to \nadjust work_mem. Oddly, it's logging file usage up to 33 times per \nexecuted query (and no, the query isn't large enough to need 33 separate \nsorts).\n\nAny idea what's going on here?\n\n--Josh\n", "msg_date...
[ { "msg_contents": "Hi,\n\nI am relatively new to PostgreSQL(8.1) and facing the following problem.\n\nWe have indexes defined on timestamp and description (create index description_idx on event using btree (description varchar_pattern_ops))\n\nEXPLAIN ANALYZE SELECT event_id, category, current_session_number, d...
[ { "msg_contents": "Hi Mark,\n\nI Rohan Pethkar wants to run some of the DBT2 tests on PostgreSQL. I have\ndownloaded latest DBT2 tarball from http://git.postgresql.org .\nI tried steps from which are there in INSTALL file. cmake CMakeLists.txt\ncommand runs fine.I tried to install DBT2 but getting following exc...
[ { "msg_contents": "[Ppsted similar note to PG General but I suppose it's more appropriate\nin this list. Apologies for cross-posting.]\n\nHi. Further to my bafflement with the \"count(*)\" queries as described\nin this thread:\n\nhttp://archives.postgresql.org/pgsql-general/2009-01/msg00804.php\n\nIt seems that...
[ { "msg_contents": "2 questions:\n\n1) Different costs for same actions. Doing an explain on 2 nearly identical\nqueries both involving the same Index scan on same table has 2 widely\ndifferent costs for same Index scan 303375872.86 vs. 12576.70\n\n2) Simple query using NOT IN (subquery)was killed after 2 hrs, ...
[ { "msg_contents": "Hi,\n \nIf I have a view like:\n \ncreate view X as (\nselect x from A\nunion all\nselect x from B)\n \nand do\n \nselect max(x) from X\n \nI get a plan like:\n \nAggregate\n Append\n Seq Scan on A\n Seq Scan on B\n \nIf A and B are indexed on x, I can get the result much faster as:\n ...
[ { "msg_contents": "Hi All,\n \nI'm in the process of tuning a query that does a sort on a huge dataset.\nWith work_mem set to 2M, i see the sort operation spilling to disk\nwriting upto 430MB and then return the first 500 rows. Our query is of\nthe sort\n \nselect co1, col2... from table where col1 like 'aa%' o...
[ { "msg_contents": "Hi,When I try to restore a database dump on PostgreSQL 8.3 that's approximately 130GB in size and takes about 1 hour, I noticed index creation makes up the bulk of that time. I'm using a very fast I/O subsystem (16 Mtron Pro 7535 SSDs using a dual 1.2Ghz IOP/4GB cache RAID controller), fast C...
[ { "msg_contents": ">david@lang.hm writes:\n>> the poster who started this thread had a query where the parsing phase\n>> took significantly longer than the planning stage.\n\n> That was an anecdote utterly unsupported by evidence.\n regards, tom lane\n\nThe issue of prepared statements ha...
[ { "msg_contents": "I'm using 8.3.5. Table ts_defects has 48M rows. Through psql: delete \nfrom ts_defects;\nResult: out of memory/Can't allocate size: 32\nI then did 10 or so deletes to get rid of the rows. Afterwards, inserts \ninto or queries on this\ntable performed significantly slower. I tried a vacuum ana...
[ { "msg_contents": "Robert Haas [robertmhaas@gmail.com] wrote:\nThanks for your response.\n\n> Does the table have triggers on it? Does it have indexes? What is the\n> result of pg_relation_size() on that table?\nNo triggers; 3 indexes\ncemdb=> select pg_relation_size('ts_defects');\n pg_relation_size\n-------...
[ { "msg_contents": "David Wilson [david.t.wilson@gmail.com] wrote:\n\n> Is this table the target of any foreign keys?\nThere are 2 \"on delete cascade\" FKs that reference this table.\n\nBrian\n\n", "msg_date": "Mon, 02 Feb 2009 12:37:04 -0800", "msg_from": "Brian Cox <brian.cox@ca.com>", "msg_from_o...
[ { "msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> It's the pending trigger list. He's got two trigger events per row,\n> which at 40 bytes apiece would approach 4GB of memory. Apparently\n> it's a 32-bit build of Postgres, so he's running out of process address\n> space.\nYes, this is a 32 bit Postgre...
[ { "msg_contents": "Hi All,\n\nI am trying to conduct DBT2 test for PostgreSQL. I am getting following\nerrors when I run client and driver separately(Instead of running\ndbt2-run-workload script). I am also attaching exact error log file for the\nsame.\n\ntid:1073875280 /home/rohan/NEW_DBT2/Installer/dbt2/src/d...
[ { "msg_contents": "Hi,\n\nI am going to get a Dell 2950 with PERC6i with\n8 * 73 15K SAS drives +\n300 GB EMC SATA SAN STORAGE,\n\nI seek suggestions from users sharing their experience with\nsimilar hardware if any. I have following specific concerns.\n\n1. On list i read that RAID10 function in PERC5 is not ...
[ { "msg_contents": "Hi,\n\nI have a need to fairly often select data where the number of\noccurrences of a character in the field is \"x\". Semantically, it's\nliterally \"SELECT something FROM table WHERE numch('/', field)=$x\".\n\nThe problem is how to do it efficiently. I see there isn't a built-in\nfunction ...
[ { "msg_contents": "Hi All,\n\nI'm getting poor performance on full text searches that return lots of \nentries from a table with about 7 million rows. I think the cause is \nrechecking the text match on all of the returned rows, even though I'm \nusing a @@ query on a gin index, which the docs say should no...
[ { "msg_contents": "Hi All,\n\nI am conductingDBT2 tests on PostgreSQL. After completing the test while\nanalyzing and creating the results I am getting following error:\n\n./dbt2-run-workload: line 514: 731 Terminated dbt2-client\n${CLIENT_COMMAND_ARGS} -p ${PORT} -o ${CDIR} >\n${CLIENT_OUTPUT_DI...
[ { "msg_contents": "It all depends at the end of a day, how crucial is that functionality\nto your app ?\nIf very, I would add to every insert/update a trigger, that would\nupdate info on other table(s) with stats per character.\n\nOther option, is to write a function in C that would parse word and\nchop it in C...
[ { "msg_contents": "I have a table, like this:\n\nCREATE TABLE transactions\n(\n transaction_id integer NOT NULL DEFAULT \nnextval('transactions_seq'::regclass),\n transaction_type integer NOT NULL,\n transaction_client_id integer NOT NULL,\n transaction_destination_id integer NOT NULL,\n transaction_o...
[ { "msg_contents": "Hey folks,\n\nI have few tables, that inherit from table X.\nThe query I perform, tries to obtain information about changes in all\ntables that inherit from X,\naside from that, I have table Y that keeps another information related\nto changes, but in bit different schema.\nAnyway, there is o...
[ { "msg_contents": "Hi\n\nI am having some problem understanding the details of a couple of \nconfiguration directives. Here is what I think I understand it so far:\n\neffective_cache_size\n\t- specifies in how many B/KB/MB will be used to cache data\n\t between pg and the OS?\n\t- what is actually cached and ...
[ { "msg_contents": "Hi:\n\nOur queries are extremely slow only after db server reboot, not after\nrestart postgres db only. The difference is about 10 mins vs. 8 secs. Not\nacceptable. I have browsed around , set the postgres db parameters as\nsuggested. Still the same.\n\nAny suggestion on how to tackle the pro...
[ { "msg_contents": "Hi ,\n\nI have a query in which two huge tables (A,B) are joined using an indexed\ncolumn and a search is made on tsvector on some column on B. Very limited\nrows of B are expected to match the query on tsvector column.\n\nWith default planner settings the query takes too long ( > 100 secs) ...
[ { "msg_contents": "Hi All,\n\nI am getting following error while conducting DBT2 tests on PostgreSQL.There\nis no error on driver side as such. After completion of test it is giving\nproblem in generating reports scripts:\nPlease find the error below:\n\nwaiting for server to shut down.... done\nserver stopped\...
[ { "msg_contents": "\nI've got an application that pulls stock information from the web and \nperforms a bunch of calculations on them. There is a \"stock\" table \nand then for convenience I've got a view called \"stock_calculations\". \nThis view is defined as a stock id column coupled with 30-some \ncal...
[ { "msg_contents": "Mark Roghelia <mroghelia@topsailtech.com> writes:\n> Unfortunately, I've recently upgraded to 8.3 and found that selecting \n> a single column from this view has now become as slow as selecting all \n> of them.\n\nWithout specifics there's really no way to answer this.\n\n\t\t\tregards, tom...
[ { "msg_contents": "Dear friends,\n\nI have explain analyze of two queries\n\nexplain analyze SELECT count(*) from general.rfis where 1=1 and\ninquiry_type = 'BUY' and receiver_uid=1320721;\n(7 ms)\nhttp://pastebin.com/m5297e03c\n\nexplain analyze SELECT count(*) from general.rfis where 1=1 and\ninquiry...
[ { "msg_contents": "Hi,\n\nIs it possible to configure autovacuum to run only\nduring certain hours ? We are forced to keep\nit off because it pops up during the peak\nquery hours.\n\nRegds\nrajesh kumar mallah.\n", "msg_date": "Wed, 11 Feb 2009 18:25:51 +0530", "msg_from": "Rajesh Kumar Mallah <mallah.r...
[ { "msg_contents": "Hello,\n\nI have a table 'foo_bar' with a column 'col1' defined as\n'col1 varchar(512)'. This column is indexed using an expression index\ndefined as\n\nCREATE INDEX ix_foo_bar_by_col1 ON foo_bar(lower(col1) col1 varchar_pattern_ops)\n\nThe\nproblem is when I try matching using ILIKE, (col1 I...
[ { "msg_contents": "Hi Guys,\n\nI'm a bit confused when the proper way to use GIST versus GIN indexes \nwith integer arrays.\n\nThe documentation states:\n\nhttp://www.postgresql.org/docs/current/static/intarray.html\n\nThe choice between GiST and GIN indexing depends on the relative \nperformance characterist...
[ { "msg_contents": "After upgrading from 8.2 to 8.3.5, the write load on our database\nserver has increased dramatically and inexplicably -- as has the CPU\nusage.\n\nHere's a Munin graph of iostat showing the sudden increase in blocks\nwritten/sec:\n\n http://purefiction.net/paste/Totals-iostatwrite1-week.png\...
[ { "msg_contents": "I have received Dell Poweredge 2950 MIII with 2 kind of\ndrives. I cant' make out the reason behind it , does it\nmake any difference in long run or in performance\nthe drives are similar in overall characteristics but does\nthe minor differences if will cause any problem ?\n\nscsi0 : LSI Log...
[ { "msg_contents": "I did some performance tests (retrieving data from DB to .NET\napplication using Npgsql driver) and I found that for command type ==\nStoredProcedure is better to first call function Prepare(). But, for\ncommand type == Text (direct query) performance is better if I do not\nrun function Pre...