threads listlengths 1 275 |
|---|
[
{
"msg_contents": "All good ideas, unfortunately, we can't change the inserting applicatin\ncode easily. \n\n> -----Original Message-----\n> From: Simon Riggs [mailto:simon@2ndquadrant.com] \n> Sent: Tuesday, February 07, 2006 5:09 PM\n> To: Marc Morin\n> Cc: Markus Schaber; pgsql-performance@postgresql.org\n> ... |
[
{
"msg_contents": "Postgres doesn't seem to optimize away unnecessary joins in a view\ndefinition when the view is queried in such a way that the join need not\nbe executed. In the example below, I define two tables, foo and bar,\nwith a foreign key on bar referencing foo, and a view on the natural\njoin of th... |
[
{
"msg_contents": "I'm specifically interested in the default C Locale; but if there's a \ndifference in the answer for other locales, I'd like to hear about \nthat as well.\n\nThanks in Advance,\nRon\n\n\n",
"msg_date": "Wed, 08 Feb 2006 09:11:11 -0500",
"msg_from": "Ron <rjpeace@earthlink.net>",
"... |
[
{
"msg_contents": "In an attempt to save myself some time, I thought I ask The Community \nif anyone has guidance here.\n\nHW: Intel PM (very likely to be upgraded to an AMD Turion when the \nproper HW becomes available) w/ 2GB of RAM (shortly to be 4GB) and a \n5400rpm 100GB HD (will be dual 7200rpm 160GB HD'... |
[
{
"msg_contents": "Hello\n\nWe are running an application via web that use a lot of time to perform\nsome operations. We are trying to find out if some of the sql statements\nused are the reason of the slow speed.\n\nWe have identified a sql that takes like 4-5000ms more than the second\nslowest sql in out test... |
[
{
"msg_contents": "\nHello All,\n\nI've inherited a postgresql database that I would like to refactor. It \nwas origionally designed for Postgres 7.0 on a PIII 500Mhz and some \ndesign decisions were made that don't make sense any more. Here's the \nproblem:\n\n1) The database is very large, the largest tabl... |
[
{
"msg_contents": "So I'm trying to figure out how to optimize my PG install (8.0.3) to\nget better performance without dropping one of my indexes.\n\nBasically, I have a table of 5M records with 3 columns:\n\npri_key (SERIAL)\ndata char(48)\ngroupid integer\n\nthere is an additional unique index on the data co... |
[
{
"msg_contents": "Hi Guys,\n\n \n\nApologies if this is a novice queston, but I think it is a performance one\nnevertheless. We are running a prototype of a system running on\nPHP/Postgresql on an Intel Xeon 2ghz server, 1GB RAM, 40GB hard drive, as a\ntest bench. The system will be used for tens of thousands ... |
[
{
"msg_contents": "\nDon't forget to cc: the list.\n\nJames Dey wrote:\n> Hi Richard,\n> \n> Firstly, thanks a million for the reply.\n> \n> To answer your questions:\n> 1. Are you limited by CPU, memory or disk i/o?\n> I am not limited, but would like to get the most out of the config I have in\n> order to be ... |
[
{
"msg_contents": "Subject line says it all. I'm going to be testing changes under both \nLinux and WinXP, so I'm hoping those of you that do M$ hacking will \npass along your list of suggestions and/or favorite (and hated so I \nknow what to avoid) tools.\n\nTiA,\nRon\n\n\n",
"msg_date": "Fri, 10 Feb 2006... |
[
{
"msg_contents": "Hi,\n\nI have an unique requirement. I have a feed of 2.5 - 3 million rows of data\nwhich arrives every 1/2 an hour. Each row has 2 small string values (about\n50 chars each) and 10 int values. I need searcheability and running\narbitrary queries on any of these values. This means i have to ... |
[
{
"msg_contents": "I am trying to join two tables and keep getting a sequential scan in the\nplan even though there is an index on the columns I am joining on.\nBasically this the deal ... I have two tables with docid in them which\nis what I am using for the join. \n \nClinicalDocs ... (no primary key) thoug... |
[
{
"msg_contents": "\n\nOK. I'm gonna make a couple of guesses here:\n\n1: clinicaldocuments.patientidentifier is an int8 and you're running\n7.4 or before.\n\n-- nope int4 and 8.1\n\n2: There are more rows with clinicaldocuments.patientidentifier= 123\nthan with documentversions.documentstatus = 'AC'.\n\n-- ... |
[
{
"msg_contents": "for first query\n\nQUERY PLAN\n'Limit (cost=4.69..88.47 rows=10 width=1350) (actual\ntime=32.195..32.338 rows=10 loops=1)'\n' -> Nested Loop (cost=4.69..4043.09 rows=482 width=1350) (actual\ntime=32.190..32.316 rows=10 loops=1)'\n' -> Bitmap Heap Scan on documentversions (cost=4.... |
[
{
"msg_contents": "oops\n\nQUERY PLAN\n'Hash Join (cost=899.83..4384.17 rows=482 width=1350) (actual\ntime=0.203..0.203 rows=0 loops=1)'\n' Hash Cond: (\"outer\".documentidentifier =\n\"inner\".dssdocumentidentifier)'\n' -> Seq Scan on documentversions (cost=0.00..2997.68 rows=96368\nwidth=996) (actual tim... |
[
{
"msg_contents": "ok here is real db\n\nthe first query I had seems to make no sense because it is only fast if\nI limit the rows since almost all rows have status = 'AC'\n\nsecond query\n tables both have about 10 million rows and it takes a long time as you\ncan see but this person only has approx 160 total... |
[
{
"msg_contents": "I have a question with regard to GEQO optimizer of Postgresql.\n\nFor complex queries with over 12 tables in a join, (12 is the\ndefault value), the Postgresql optimizer by default will not use the dynamic\nprogramming style optimizer. Instead, it uses genetic algorithm to compute a\nsub-opti... |
[
{
"msg_contents": "We've done a lot of testing on large DB's with a lot of \"inserts\" and\nhave a few comments.\n\nThe updates are \"treated\" as a large \"insert\" as we all know from pg's\npoint of view.\n\nWe've run into 2 classes of problems: excessing WAL checkpoints and\naffects of low correlation.\n\nWA... |
[
{
"msg_contents": "Hi all,\n\n My database has an SQL function. The result comes in 30-40 seconds when i use the SQL function. On the other hand; The result comes\n 300-400 milliseconds when i run the SQL statement. Any idea ?? My database is Postgresql 8.1.2..\n \n ... |
[
{
"msg_contents": "If you have only recently analyzed the tables in the query, close your psql session (if that's what you were using) and then restart it. I've gotten burned by asking a query using the function, which I believe is when PG creates the plan for the function, and then making significant changes t... |
[
{
"msg_contents": "ok I am retarded :) Apparently I thought I had done analyze on these\ntables but I actually had not and that was all that was needed. but\nthanks for the help.\n\n\nTim Jones\nHealthcare Project Manager\nOptio Software, Inc.\n(770) 576-3555\n\n-----Original Message-----\nFrom: Dave Dutcher [m... |
[
{
"msg_contents": "From: Michael Fuhr\n Date: 02/13/06 07:46:05\n To: Adnan DURSUN\n Cc: pgsql-performance@postgresql.org\n Subject: Re: [PERFORM] SQL Function Performance\n\n On Sun, Feb 12, 2006 at 10:25:28PM +0200, Adnan DURSUN wrote:\n >> My database has an SQL function. The result comes i... |
[
{
"msg_contents": "I've run into this issue. It basically comes down to the plan that is being used inside the function is not the same as the plan used when you issue the query manually outside of the function. Although I'm no expert on when plans are prepared and re-evaluated for functions, I know that they ... |
[
{
"msg_contents": "From: Michael Fuhr\n Date: 02/13/06 07:46:05\n To: Adnan DURSUN\n Cc: pgsql-performance@postgresql.org\n Subject: Re: [PERFORM] SQL Function Performance\n\n On Sun, Feb 12, 2006 at 10:25:28PM +0200, Adnan DURSUN wrote:\n >> My database has an SQL function. The result comes in 30-40 seco... |
[
{
"msg_contents": ">From: Mark Liberman\n>Date: 02/13/06 22:09:48\n>To: Adnan DURSUN; pgsql-performance@postgresql.org\n>Subject: RE: [PERFORM] SQL Function Performance\n\n>I've run into this issue. It basically comes down to the plan that is being used inside the function is not the same as the plan used when ... |
[
{
"msg_contents": "> in my case; both direct query and sql function gererate same execution plan. Also, execution plan belongs to the sql function better than direct sql > query plan. But, direct sql result comes less than 1 second. sql function result comes about in 50 seconds.\n\nHow are you getting at the pl... |
[
{
"msg_contents": "-------Original Message-------\n\nFrom: Mark Liberman\nDate: 02/14/06 01:46:16\nTo: Adnan DURSUN; pgsql-performance@postgresql.org\nSubject: RE: [PERFORM] SQL Function Performance\n\n>> in my case; both direct query and sql function gererate same execution plan. Also, execution plan belongs t... |
[
{
"msg_contents": "\n> Indexing the t_name.name field, I can increase speed, but only if I\n> restrict my search to something like :\n> \n> select *\n> from t_name\n> where t_name.name like 'my_search%'\n> \n> (In this case it takes generally less than 1 second)\n> \n> \n> My question : Are there algorithms or ... |
[
{
"msg_contents": "From: Michael Fuhr\nDate: 02/14/06 03:32:28\nTo: Tom Lane\nCc: Adnan DURSUN; pgsql-performance@postgresql.org\nSubject: Re: [PERFORM] SQL Function Performance\n\nOn Mon, Feb 13, 2006 at 07:57:07PM -0500, Tom Lane wrote:\n>> \"Adnan DURSUN\" <a_dursun@hotmail.com> writes:\n>> >>>> EXPLAIN ANAL... |
[
{
"msg_contents": "\nhi,\n\ni load data from files using copy method.\nFiles contain between 2 and 7 millions of rows, spread on 5 tables.\n\nFor loading all the data, it takes 40mn, and the same processing takes 17mn with Oracle.\nI think that this time can be improved by changing postgresql configuration file... |
[
{
"msg_contents": "\nthanks,\n\ni'm using postgresql 8.0.3\nthere is no primary key and no index on my tables\n\nregards\n\n-----Message d'origine-----\nDe : pgsql-performance-owner@postgresql.org\n[mailto:pgsql-performance-owner@postgresql.org]De la part de Albert\nCervera Areny\nEnvoyé : mardi 14 février 2006... |
[
{
"msg_contents": "Hello,\n\nI've error \"out of memory\" with these traces :\n\n\nTopMemoryContext: 32768 total in 3 blocks; 5152 free (1 chunks); 27616 used\nTopTransactionContext: 8192 total in 1 blocks; 8136 free (0 chunks); 56 used\nDeferredTriggerXact: 0 total in 0 blocks; 0 free (0 chunks); 0 used\nMessa... |
[
{
"msg_contents": "I am running some simple queries to benchmark Postgres 8.1 against MS Access\nand Postgres is 2 to 3 times slower that Access. \n\n \n\nHardware:\n\nDell Optiplex GX280\n\nP4 3.20 GHz\n\n3GB RAM\n\nWindows XP SP1\n\n \n\nDatabase has one table with 1.2 million rows\n\n \n\nQuery:\n\nUPDATE n... |
[
{
"msg_contents": " \nThis is the second time I'm getting out of memory error when I start a\ndatabase vacuum or try to vacuum any table. Note this machine has been\nused for data load batch purposes. \n\n=# vacuum analyze code;\nERROR: out of memory\nDETAIL: Failed on request of size 1073741820.\n\nI'm runni... |
[
{
"msg_contents": "\n30% faster !!! i will test this new version ...\n\nthanks a lot\n\n-----Message d'origine-----\nDe : pgsql-performance-owner@postgresql.org\n[mailto:pgsql-performance-owner@postgresql.org]De la part de Albert\nCervera Areny\nEnvoyé : mardi 14 février 2006 17:07\nÀ : pgsql-performance@postgr... |
[
{
"msg_contents": "Hi Guys.\n\n\nWe are running v8.1.2 on FreeBSD 5.4-RELEASE and the server is running\nwith above averege load.\n\nWhen i do top i see alot of postmaster processes in \"sbwait\" state:\n\n# uptime\n4:29PM up 23 days, 20:01, 3 users, load averages: 3.73, 1.97, 1.71\n\n# top\n82808 pgsql ... |
[
{
"msg_contents": " \nI have run pg_dump and had no errors. I also got this error when\ncreating one index but not another. When I lowered my\nmaintenance_work_mem, the create index succeeded. \n\nRegards,\n\n----\n \n Husam \n\n-----Original Message-----\nFrom: Tom Lane [mailto:tgl@sss.pgh.pa.us] \nSent: T... |
[
{
"msg_contents": "-------Original Message-------\n\nFrom: Michael Fuhr\nDate: 02/14/06 23:05:55\nTo: Adnan DURSUN\nCc: pgsql-performance@postgresql.org\nSubject: Re: [PERFORM] SQL Function Performance\n\n>On Tue, Feb 14, 2006 at 11:33:57AM +0200, Adnan DURSUN wrote:\n>> -> Nested Loop (cost=5.90..267... |
[
{
"msg_contents": "\nNo special data types. The table is pretty large one with over 15GB. The\nindex is about 1.5 GB. Here's the table structure :\n\n Column | Type | Modifiers\n-----------------+-----------------------+-----------\n county_id | numeric(5,0) | not null\n... |
[
{
"msg_contents": "Hi,\n\nI'm using Postgres 7.4. I have a web application built with php4 using\npostgres7.4\n\nI was going through /var/log/messages of my linux box ( SLES 9). I\nencountered the following messages quite a few times.\n\n>postgres[20199]: [4-1] ERROR: could not send data to client: Broken pipe... |
[
{
"msg_contents": "\ni'm using Solaris8\ni tried changing only postgresql parameters\nand time has increased of 10mn\n\ni keep in mind your idea, we will soon upgraded to solaris 10\n\nregards\n\n\tWill\n\n-----Message d'origine-----\nDe : J.K.Shah@Sun.COM [mailto:J.K.Shah@Sun.COM]\nEnvoyé : mardi 14 février 20... |
[
{
"msg_contents": "Hi!\n\nI have a question about the query optimizer and the function scan. See \nthe next case:\n\nCREATE TABLE a (id SERIAL PRIMARY KEY, userid INT4, col TEXT);\nCREATE TABLE b (id SERIAL PRIMARY KEY, userid INT4, a_id INT4 REFERENCES \na (id), col TEXT);\nCREATE INDEX idx_a_uid ON a(userid... |
[
{
"msg_contents": "\ni tested the last version version of PostgreSQL\nand for the same test :\nbefore : 40mn\nand now : 12mn :)\nfaster than Oracle (exactly what i wanted :p )\n\nthanks to everybody\n\n\tWill\n\n\n-----Message d'origine-----\nDe : pgsql-performance-owner@postgresql.org\n[mailto:pgsql-performanc... |
[
{
"msg_contents": "\nwith PostgreSQL 8.1.3, here are my parameters (it's the default configuration)\n\nwal_sync_method = fsync\nwal_buffers = 8\ncheckpoint_segments = 3\nbgwriter_lru_percent = 1.0\nbgwriter_lru_maxpages = 5\nbgwriter_all_percent = 0.333\nbgwriter_all_maxpages = 5\n\nand you think times can be i... |
[
{
"msg_contents": "Hi!\n\nI have a question about the query optimizer and the function scan. See\nthe next case:\n\nCREATE TABLE a (id SERIAL PRIMARY KEY, userid INT4, col TEXT);\nCREATE TABLE b (id SERIAL PRIMARY KEY, userid INT4, a_id INT4 REFERENCES\na (id), col TEXT);\nCREATE INDEX idx_a_uid ON a(userid);... |
[
{
"msg_contents": "\nGood morning,\n\n\n\n\nI've increased sort_mem until 2Go !!\nand the error \"out of memory\" appears again.\n\nHere the request I try to pass with her explain plan,\n\n Nested Loop (cost=2451676.23..2454714.73 rows=1001 width=34)\n -> Subquery Scan \"day\" (cost=2451676.23..2451688.73 ... |
[
{
"msg_contents": "Good morning,\n\nI try to understand how optimizer uses HashAggregate instead of GroupAggregate\nand I want to know what is exactly this two functionnality (benefits\n/inconvenients)\n\nIn my case, I've this explain plan.\n-----------------------\n Nested Loop (cost=2451676.23..2454714.73 ro... |
[
{
"msg_contents": "Platform: FreeBSD 6.0, Postgresql 8.1.2 compiled from the ports collection.\n\nNot sure if this belongs in performance or bugs..\n\nA pg_restore of my 2.5GB database was taking up to 2 hours to complete \ninstead of the expected 10-15 minutes. Checking the server it was mostly \nCPU bound. Te... |
[
{
"msg_contents": "\n\n> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-\n> owner@postgresql.org] On Behalf Of Tom Lane\n> Sent: Wednesday, February 15, 2006 5:22 PM\n> To: Ron\n> Cc: pgsql-performance@postgresql.org; pgsql-hackers@postgresql.org\n> Subject: Re: [HA... |
[
{
"msg_contents": "HI ALL,\n\n I have query for a report. Explain analyze result is below. The execution plan tells that it would use \"t_koltuk_islem_pkey\" index on table \"t_koltuk_islem\" to scan. However, there is another index on table \"t_koltuk_islem\" on column \"islem_tarihi\" that can be combined on... |
[
{
"msg_contents": "Hi,\n\nI was wondering what the plan is for the future of table partitioning in\nPostgresQL. It is pretty hard for me to implement partitioning right now\nwith its current limitation, specifically the fact that unique\nconstraints cannot be enforced across partitions and that Constraint\nExcl... |
[
{
"msg_contents": "Hi List,\n\nI would like some insight from the experts here as to how I can alter\nwhich index PostgreSQL is choosing to run a query.\n\nFirst off, I'm running an active web forum (phpBB) with sometimes\nhundreds of concurrent users. The query in question is one which pulls\nthe lists of topi... |
[
{
"msg_contents": "> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-\n> owner@postgresql.org] On Behalf Of Markus Schaber\n> Sent: Thursday, February 16, 2006 5:45 AM\n> To: pgsql-performance@postgresql.org; pgsql-hackers@postgresql.org\n> Subject: Re: [HACKERS] qso... |
[
{
"msg_contents": ">From: Tom Lane\n>Date: 02/16/06 19:29:21\n>To: Adnan DURSUN\n>Cc: pgsql-performance@postgresql.org\n>Subject: Re: [PERFORM] Why does not perform index combination\n\n>\"Adnan DURSUN\" <a_dursun@hotmail.com> writes:\n>> I have query for a report. Explain analyze result is below. The =\n>> e... |
[
{
"msg_contents": "I assume we have such?\n\nRon\n\n\n",
"msg_date": "Fri, 17 Feb 2006 11:51:26 -0500",
"msg_from": "Ron <rjpeace@earthlink.net>",
"msg_from_op": true,
"msg_subject": "Need pointers to \"standard\" pg database(s) for testing"
},
{
"msg_contents": "On Fri, 2006-02-17 at 10... |
[
{
"msg_contents": "Does anybody know if it is possible to use the statistics collected by\nPostgreSQL to do the following, and how?\n\n- view all locks held by a particular PostgreSQL session (including how to\ndetermine\n the session ID#)\n\n- determine effect of lock contention on overall database performanc... |
[
{
"msg_contents": "I have some quite huge queries, inside functions, so debugging is kind \nof hard. But I have located the query that for some reason gets 4 times \nas slow after an analyze.\n\nBefore analyze the plan for the query is this:\nNested Loop (cost=16.80..34.33 rows=1 width=28)\n Join Filter: (isc... |
[
{
"msg_contents": "\n\nThe following query runs much slower than I would have expected. I ran it \nthrough EXPLAIN ANALYZE (results included after) and I don't understand why \nthe planner is doing what it is. All of the columns from the WHERE part of \nthe query are indexed and the indexes are being used. The ... |
[
{
"msg_contents": "Here's a simplified version of the schema:\n\nTable A has an ID field, an observation date, and other stuff. There are about 20K IDs and 3K observations per ID. Table B has a matching ID field, minimum and maximum dates, a code, and other stuff, about 0-50 records per ID. For a given ID, the ... |
[
{
"msg_contents": "Hi, \n\nI'm developing a search engine using the postgresql's databas. I've\nalready doing some tunnings looking increase the perform. \n\nNow, I'd like of do a realistic test of perfom with number X of queries\nfor know the performance with many queries. \n\nWhat the corret way to do this? \... |
[
{
"msg_contents": "Hi,\n I have query where I do two inline queries (which involves grouping) and then join them with an outer join.\nThe individual queries run in 50-300 ms. However the optimizer is choosing a nested loop to join them rather than a Hash join\ncausing the complete query to take 500+ seconds.... |
[
{
"msg_contents": "hi,\ni have btree index on a text type field. i want see rows which starts with\ncertain characters on that field. so i write a query like this:\n\nSELECT * FROM mytable WHERE myfield LIKE 'john%'\n\nsince this condition is from start of the field, query planner should use\nindex to find such... |
[
{
"msg_contents": "I am running 7.4.8 and have a query that I have been running for a while\nthat has recently have experienced a slowdown. The original query\ninvolves a UNION but I have narrowed it down to this half of the query\nas being my issue. (The other half take 4 seconds).\n\nThe only issue that I h... |
[
{
"msg_contents": "Hello!\n\n \n\nThis is Chethana. I need to know how to improve the performance of\npostgresql. It is rich in features but slow in performance.\n\nPls do reply back ASAP.\n\n \n\nThank you,\n\nChethana.\n\n \n\n\n\n\n\n\n\n\n\n\nHello!\n \nThis is Chethana. I need to know how to improve t... |
[
{
"msg_contents": "Chethana, Rao (IE10) wrote:\n> Hello!\n> \n> Thank you for responding quickly. I really need ur help.\n\nPlease make sure you cc: the list - I don't read this inbox regularly.\n\n> Sir, here r the answers for ur questions, please do tell me what to do\n> next(regarding increasing performance... |
[
{
"msg_contents": "I hesitate to raise this issue again, but I've noticed something which I\nthought might be worth mentioning. I've never thought the performance\nof count(*) on a table was a significant issue, but I'm prepared to say\nthat -- for me, at least -- it is officially and totally a NON-issue.\n\nW... |
[
{
"msg_contents": "I am issing a query like this:\nSELECT *\n FROM users users\n LEFT JOIN phorum_users_base ON users.uid = phorum_users_base.user_id\n LEFT JOIN useraux ON useraux.uid = users.uid;\n\nThe joins are all on the PKs of the tables. It takes 1000ms to run on\npostgres. The identical mysql vers... |
[
{
"msg_contents": "Does this work:\n\n\"Merge Left Join (cost=0.00..2656.36 rows=6528 width=1522) (actual\ntime=0.057..123.659 rows=6528 loops=1)\"\n\" Merge Cond: (\"outer\".uid = \"inner\".uid)\"\n\" -> Merge Left Join (cost=0.00..1693.09 rows=6528 width=1264)\n(actual time=0.030..58.876 rows=6528 loops=... |
[
{
"msg_contents": "\nworkmem is set to the default, increasing it decreases performance.\n\n> Does this work:\n> \n> \"Merge Left Join (cost=0.00..2656.36 rows=6528 width=1522) (actual\n> time=0.057..123.659 rows=6528 loops=1)\"\n> \" Merge Cond: (\"outer\".uid = \"inner\".uid)\"\n> \" -> Merge Left Join (... |
[
{
"msg_contents": "Hmm, it came from the timer on the pgadmin III sql query tool. I guess\nthe 1,000ms includes the round-trip? See the wierd thing is that\nmysqlserver is running default configuration on a virtual machine\n(P3/1.3GHZ conf'd for 128mb ram) over a 100m/b ethernet connection.\nPostgres is running... |
[
{
"msg_contents": "I am running a query that joins against several large tables (~5 million\nrows each). The query takes an exteremely long time to run, and the\nexplain output is a bit beyond my level of understanding. It is an\nauto-generated query, so the aliases are fairly ugly. I can clean them\nup (ren... |
[
{
"msg_contents": "I just wanted to thank everyone for your input on my question. You've\ngiven me a lot of tools to solve my problem here.\n\nOrion\n",
"msg_date": "Wed, 22 Feb 2006 14:07:35 -0800",
"msg_from": "Orion <lab@orangekids.org>",
"msg_from_op": true,
"msg_subject": "Re: Large Databa... |
[
{
"msg_contents": "Select and update statements are quite slow on a large table with more \nthan 600,000 rows. The table consists of 11 columns (nothing special). \nThe column \"id\" (int8) is primary key and has a btree index on it.\n\nThe following select statement takes nearly 500ms:\n\nSELECT * FROM table W... |
[
{
"msg_contents": "On Feb 22, 2006, at 10:44 PM, Chethana, Rao ((IE10)) wrote:\n\n> That is what I wanted to know, how do I tune it?\n\nIf there were a simple formula for doing it, it would already have \nbeen written up as a program that runs once you install postgres.\n\nYou have to monitor your usage, use ... |
[
{
"msg_contents": "postgresql 8.1, I have two tables, bot hoth vacuumed and analyzed. on\nmsg307 I have altered the entityid and msgid columns statistics values\nto 400. \n\n\ndev20001=# explain analyze SELECT ewm.entity_id, m.agentname, m.filecreatedate AS versioninfo\n FROM msg307 m join entity_watch_map e... |
[
{
"msg_contents": "Where \"*\" == \n{print | save to PDF | save to <mumble> format | display on screen}\n\nAnyone know of one?\n\nTiA\nRon\n",
"msg_date": "Thu, 23 Feb 2006 11:38:48 -0500 (GMT-05:00)",
"msg_from": "Ron Peacetree <rjpeace@earthlink.net>",
"msg_from_op": true,
"msg_subject": "Look... |
[
{
"msg_contents": " \nThank for looking into this Tom. Here's the output from PostgreSQL log:\n\n*** Postgresql Log:\n\nTopMemoryContext: 32768 total in 4 blocks; 7232 free (9 chunks); 25536\nused\nOperator class cache: 8192 total in 1 blocks; 4936 free (0 chunks); 3256\nused\nTopTransactionContext: 8192 total... |
[
{
"msg_contents": " \nWhat's more interesting is this:\n\nWhen I first connect to the database via \"psql\" and issue the \"create\nindex\" statement, of course, I get the \"out of memory\" error. If I\ndon't quit my current session and re-ran the same DDL statement again,\nthe index gets created successfully!... |
[
{
"msg_contents": "Hi,\n\nWe're executing a query that has the following plan and we're \nwondering given the size of the data set, what's a better way to \nwrite the query? It's been running since 2pm 2 days ago.\n\nexplain DELETE FROM cds.cds_mspecxx WHERE ProdID not in (SELECT \nstage.ProdID FROM cds_stag... |
[
{
"msg_contents": "Hi list\n\nI'm fairly new to Postgres so bear with me. Googling and searching the\nlist, I didn't find anything that resembled my problem.\n\nI have a large table with ca. 10 million inserts per day (fairly simple\ndata: timestam, a couple of id's and a varchar message)\n\nI run a query every... |
[
{
"msg_contents": "Hello all,\n\nI have this small set of questions that i have been looking to ask and\nhere it comes.\n\nLets imagin we have a setup where we have multiple databases instances\non one server,\nand we are starting to use more and more cross databases queries [query\nunions] using dblink [multip... |
[
{
"msg_contents": "Hi all\n\n Is it secure to disable fsync havin battery-backed disk cache?\n \n Thx\n\n\nJavier Somoza\nOficina de Dirección Estratégica\nmailto:jsomoza@pandasoftware.es\n\nPanda Software\nBuenos Aires, 12\n48001 BILBAO - ESPAÑA\nTeléfono: 902 24 365 4\nFax: 94 42... |
[
{
"msg_contents": "Hi,\n\n How should i set this configuration? Depending on the\nmemory?\n And then is it necessary to perform a benchmarking test?\n\n What did you do?\n\n Thx!\n \n\n\nJavier Somoza\nOficina de Dirección Estratégica\nmailto:jsomoza@pandas... |
[
{
"msg_contents": "Hi all,\n\nShort story:\n\nI have a quite big table (about 200 million records, and ~2-3 million\nupdates/~1 million inserts/few thousand deletes per day). I started a\nvacuum on it on friday evening, and it still runs now (monday\nafternoon). I used \"vacuum verbose\", and the output looks l... |
[
{
"msg_contents": "I have a table that has only a few records in it at the time, and they\nget deleted every few seconds and new records are inserted. Table never\nhas more than 5-10 records in it.\n\nHowever, I noticed a deteriorating performance in deletes and inserts\non it. So I performed vacuum analyze on ... |
[
{
"msg_contents": "Hi All,\nI ' m using the postgresql datbase to stores cookies. Theses cookies \nbecome invalid after 30 mn and have to be deleted. i have defined a \nprocedure that will\ndelete all invalid cookies, but i don't know how to call it in loop way \n(for example each hour).\nI think that it poss... |
[
{
"msg_contents": "Hi all,\n\nI am facing performance issues even with less than 3000 records, I am\nusing Triggers/SPs in all the tables. What could be the problem.\nAny idea it is good to use triggers w.r.t performance?\n\nRegards,\nJeeva.K\n",
"msg_date": "Tue, 28 Feb 2006 09:14:59 +0530",
"msg_from"... |
[
{
"msg_contents": "I am using triggers for all the events (insert,delete,update) please\nfind the details below.\n\ntrg_delpointtable BEFORE DELETE ON pointtable FOR EACH ROW EXECUTE\nPROCEDURE pp_delpointtable()\n\ntrg_insdelpoints AFTER DELETE ON pointtable FOR EACH ROW EXECUTE\nPROCEDURE pp_insdelpoints()\n\... |
[
{
"msg_contents": "Hi all\n\n I've a question about vacuuming, ...\n\n Vacuum: cleans out obsolete and deleted registers...\n Analyze: update statistics for the planner\n Reindex: rebuild indexes\n\n I think the correct order to perform the database\nmai... |
[
{
"msg_contents": "Just a \"wouldn't it be nice if\" sort of feature request. I'm not sure\nhow practical it is.\n\nSomeone in our organization wrote a data fix query, which has sort of\nodd logic, but it does what they need. The problem is that it ran for\n14 hours in a test against a copy of the data. I lo... |
[
{
"msg_contents": "\nI have a table with a few small numeric fields and several text fields, on \npg. 8.1.2.\n\nThe numeric fields are used for searching (category_id, price, etc).\nThe text fields are just a description of the item, comments, email \naddress, telephone, etc.\n\nSo, in order to speed up reque... |
[
{
"msg_contents": "Hi all,\n\n \n\nI have to provide a pretty standard query that should return every row\nwhere the NAME attribute begins with a specific string. The type of the\nNAME column is varchar. I do have an index for this column. One would\nthink that Postgres will use the index to look up the matches... |
[
{
"msg_contents": "The var_char_pattern_ops operator group has made the difference. \n\nThanks for the help!\nJozsef\n\n-----Original Message-----\nFrom: Mark Kirkwood [mailto:markir@paradise.net.nz] \nSent: Thursday, March 02, 2006 7:29 PM\nTo: Jozsef Szalay\nCc: pgsql-performance@postgresql.org\nSubject: Re: ... |
[
{
"msg_contents": "Hello,\n\nI am doing some query optimizations for one of my clients who runs \nPostgreSQL 8.1.1, and am trying to cut down on the runtime of this \nparticular query as it runs very frequently:\n\nSELECT count(*) FROM test_table_1\n INNER JOIN test_table_2 ON\n (test_table_2.s_id = 1... |
[
{
"msg_contents": "Hi,\n\nI have two tables:\n\nCustomer: objectid, lastname, fk_address\nAddress: objectid, city\n\nI want to select all customers with a name >= some_name and living in a\ncity >= some_city, all comparisons case insensitive\n\nBelow is what I actually have. Given the fact that it takes forever... |
[
{
"msg_contents": "\n\tBitmap index scan is bliss. Many thanks to the postgres team ! Now \nsearching in tables with a lot of fields and conditions is no longer a \npain.\n\n\tAnd just a thought :\n\n\tSELECT * FROM table WHERE category IN (1,2,3) ORDER BY price LIMIT 10;\n\n\tSuppose you have an index on cat... |
[
{
"msg_contents": "Hi.\n\nHas anybody tried the new Sun \"cool-thread\" servers t1000/t2000 from\nSun? I'd love to see benchmarks with Solaris 10 and pg 8.1.\n\nregards\nClaus\n",
"msg_date": "Mon, 6 Mar 2006 10:05:45 +0100",
"msg_from": "\"Claus Guttesen\" <kometen@gmail.com>",
"msg_from_op": true,... |
[
{
"msg_contents": "How big a VPS would I need to run a Postgres DB.\n\nI need a Postgres database with about 15 tables that will run on a\nsingle virtual private server.\n\nThe 15 tables will be spread over three tablespaces (5 tables per\ntablespace) and be accessed by three different applications running on\n... |
[
{
"msg_contents": "Hello,\n\nWhile doing performance tests on Windows Server 2003 we observed to following \ntwo problems.\n\nEnvironment: J2EE application running in JBoss application server, against \npgsql 8.1 database. Load is caused by a smallish number of (very) complex \ntransactions, typically about 5-1... |
[
{
"msg_contents": "Hi,\n\nBelow are some results of running pgbench, run on a machine that is doing nothing else than running PostgreSQL woth pgbench. The strange thing is that the results are *constantly alternating* hight (750-850 transactions)and low (50-80 transactions), no matter how many test I run. If I ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.