threads
listlengths
1
275
[ { "msg_contents": "I have a unloaded development server running 8.4b1 that is returning\nfrom a 'select * from pg_locks' in around 5 ms. While the time itself\nis not a big deal, I was curious and tested querying locks on a fairly\nbusy (200-500 tps sustained) running 8.2 on inferior hardware. This\nreturned...
[ { "msg_contents": "\nHi, I'm hoping you guys can help with improving this query I'm having \na problem with. The main problem is that the query plan changes \ndepending on the value of the LIMIT clause, with small values using a \npoor plan and running very slowly. The two times are roughly 5 minutes \nfor ...
[ { "msg_contents": "Hello,\n\nI want to use postgresql for data entries (every minute) from a central heating \nsystem where the timestamp is logged in a table log. For flexibility in the \nfuture for future values and for implementing several high level types I've \nmodelled the values in a separate key/value t...
[ { "msg_contents": "Hi,\nI was looking at the support that PostgreSQL offers for table partitioning at http://www.postgresql.org/docs/8.4/static/ddl-partitioning.html. The concept looks promising, but its maybe fair to say that PG itself doesn't really supports partitioning natively, but one can simulate it usin...
[ { "msg_contents": "Friendly greetings !\nI found something \"odd\" (something that i can't explain) this weekend.\n\nAn octocore server with 32GB of ram, running postgresql 8.3.6\nRunning only postgresql, slony-I and pgbouncer.\n\nJust for testing purpose, i tried a setting with 26GB of shared_buffer.\n\nI quic...
[ { "msg_contents": "Is there a way to limit I/O bandwidth/CPU usage of a certain backend? It\nseems that ionice/renice makes no sense because of bgwriter/WAL writer\nprocesses are not a part of a backend. I have a periodic query (every\nhour) that make huge I/O load and should run in background. When this\nquery...
[ { "msg_contents": "Hi,\n\nany idea if there is a more optimal execution plan possible for this query:\n\nselect S.REF as stref, S.NAME as stnm, H.HORDER as hord, H.BEGIN_DATE as hbeg,\n H.END_DATE as hend, H.NOTE as hnote\n from HISTORY H, STAT S\n where S.REF = H.REF_STAT\n and H...
[ { "msg_contents": "Hi,\n\nSome context, we have a _lot_ of data, > 1TB, mostly in 1 'table' -\nthe 'datatable' in the example below although in order to improve\nperformance this table is partitioned (by date range) into a number of\npartition tables. Each partition contains up to 20GB of data (tens of\nmillon...
[ { "msg_contents": "I have a query [1] that Postgres is insisting on using a Nested Loop\nfor some reason when a Hash Join is much faster. It seems like the\nestimates are way off. I've set default_statistics_target to 250, 500,\n1000 and analyzed, but they never seem to improve. If I disable\nnestloops, the que...
[ { "msg_contents": "Hi everybody,\n\nI'm wondering why a DELETE statement of mine does not make use of \ndefined indexes on the tables.\n\nI have the following tables which are linked as such: component -> \nrank -> node -> corpus;\n\nNow I want to delete all entries in component by giving a list of \ncorpus ...
[ { "msg_contents": "Rohan Pethkar wants you to join Yaari!\n\nIs Rohan your friend?\n\n<a href=\"http://yaari.com/?controller=user&action=mailregister&friend=1&sign=YaariFTL554VBZ483SLB511BDO643\">Yes, Rohan is my friend!</a> <a href=\"http://yaari.com/?controller=user&action=mailregister&friend=0&sign=YaariFTL5...
[ { "msg_contents": "\nI'm running a rather complex query and noticed a peculiarity in the usage \nof statistics that seriously affects the plan generated. I can extract the \nrelevant bit:\n\nmodmine-r9=# select * from pg_stats where tablename = 'geneflankingregion' AND attname IN ('distance', 'direction');\n s...
[ { "msg_contents": "Hi all,\nrecently I came across a question from a customer of mine, asking me if \nit would feasible to run PostgreSQL along with PostGIS on embedded hardware.\nThey didn't give me complete information, but it should be some kind of \nindustrial PC with a 600MHz CPU. Memory should be not huge...
[ { "msg_contents": "Rohan Pethkar wants you to join Yaari!\n\nIs Rohan your friend?\n\n<a href=\"http://yaari.com/?controller=user&action=mailregister&friend=1&sign=YaariFTL554VBZ483SLB511BDO643\">Yes, Rohan is my friend!</a> <a href=\"http://yaari.com/?controller=user&action=mailregister&friend=0&sign=YaariFTL5...
[ { "msg_contents": "Hi,\n\nwhat may you suggest as the most optimal postgresql.conf to keep\nwriting as stable as possible?..\n\nWhat I want is to avoid \"throughput waves\" - I want to keep my\nresponse times stable without any activity holes. I've tried to reduce\ncheckpoint timeout from 5min to 30sec - it he...
[ { "msg_contents": "I'm running version 8.1.11 on SLES 10 SP2. I'm trying to improve this \nquery and unfortunately I cannot change the application. For some \nreason the planner is making a bad decision sometimes after an analyze \nof table objectcustomfieldvalues. \n\n\nThe query is:\nSELECT DISTINCT main.* ...
[ { "msg_contents": "I have the following table:\n\nCREATE TABLE \"temp\".tmp_135528\n(\n id integer NOT NULL,\n prid integer,\n group_id integer,\n iinv integer,\n oinv integer,\n isum numeric,\n osum numeric,\n idate timestamp without time zone,\n odate timestamp without time zone,\n CONSTRAINT t_1355...
[ { "msg_contents": "Anyone on the list had a chance to benchmark the Nehalem's yet? I'm\nprimarily wondering if their promise of performance from 3 memory\nchannels holds up under typical pgsql workloads. I've been really\nhappy with the behavior of my AMD shanghai based server under heavy\nloads, but if the N...
[ { "msg_contents": "Hi\n\nhave the following table (theoretical)\n\ntable apartment_location (\n\n\tcity_id\t int,\n\tstreet_id int,\n\thouse_id int,\n\tfloor_id int,\n\towner\t string\n\t...\n)\n\nindex .. ( city_id, street_id, house_id, floor_id ) tablespc indexspace;\n\non a database with 260 GB of d...
[ { "msg_contents": "Dear List mates,\n\nmore optimal plan... \nmorreoptimal configuration...\n\nwe suffer a 'more optimal' superlative missuse\n\nthere is not so 'more optimal' thing but a simple 'better' thing.\n\nim not native english speaker but i think it still applies.\n\nWell this a superlative list so al...
[ { "msg_contents": "Hi\n\nI am wondering what stripe size, on a raid 0, is the most suitable for \npostgres 8.2?\n\nI read a performance tutorial by Bruce Momjian and it suggest setting \nthe stripe size to the same block size (as pg uses?)\n( http://momjian.us/main/writings/pgsql/hw_performance/index.html )\nBu...
[ { "msg_contents": " I was glad to find in 8.3.7 that pg was now smart enough to use an index \n for a simple UNION ALL. But unfortunately, it's not quite there yet for \n our use case.\n\n Consider the following dummy tables:\n\n create table foo (id serial primary key, val int not null);\n create table bar (id...
[ { "msg_contents": "I just upgraded from a\n\n2xIntel Xeon-Harpertown 5450-Quadcore,16 GB,Redhat EL 5.1-64\nTo\n2xIntel Xeon-Nehalem 5570-Quadcore,36GB,Redhat EL 5.3-64\n \nAny advice on how I'll get the best of this server?\n\nThis is what I currently have:\nmax_connections = 100\nshared_buffers = 2048MB\nmaint...
[ { "msg_contents": "Hi All,\n\nNot sure if this is the right pgsql-* \"channel\" to post to, but I was \nhoping maybe someone could answer a question from one of my fellow \ndevelopers. Please read below:\n\n> So, following the documentation, we wrote a little ASYNC version of \n> exec. here is the code:\n>\...
[ { "msg_contents": "Hi all, iam having trouble with a query, in this query we have parameters, to indicate the starting month and the ending month (commented line in the query).\n\nYou can see the explain using the parameters of month from 1 to 6\n\nEXPLAIN ANALYZE\nselect pq.nome, mv.data, mv.valor,\n ...
[ { "msg_contents": "Hello,\n\ti have to buy a new server and in the budget i have (small) i have to select \none of this two options:\n\n-4 sas 146gb 15k rpm raid10.\n-8 sas 146gb 10k rpm raid10.\n\nThe server would not be only dedicated to postgresql but to be a file server, \nthe rest of options like plenty of...
[ { "msg_contents": "Hi,\n\nRecent change postgresql server from Amazon EC2 small into large one.\nThat gives me x86_64 arch, two core cpu and 7.5GB ram. Atm got almost\n~2000 small databases at that server and autovacuum working hole time\n(witch isn't good for performance as I notice at cacti, one core is\nbusy...
[ { "msg_contents": "Hi,\n\nI have sen many posts on using SSDs, and iodrive\n<http://www.fusionio.com>in particular, to accelerate the performance\nof Postgresql (or other DBMS)\n-- e.g. this discussion<http://groups.google.co.il/group/pgsql.performance/browse_thread/thread/1d6d7434246afd97?pli=1>.\nI have also ...
[ { "msg_contents": "I keep falling into situations where it would be nice to host a server \nsomewhere else. Virtual host solutions and the mysterious cloud are no \ngood for the ones I run into though, as disk performance is important for \nall the applications I have to deal with.\n\nWhat I'd love to have is ...
[ { "msg_contents": "Dear Friends,\n How to insert or update a file in a table using the query in postgres\nCREATE TABLE excel_file_upload\n(\n user_id integer,\n excel_file bytea\n}\n\nexample \ninsert into excel_file_upload values(1,file1)\n\nfile1 can be any file *.doc,*.xls\n How i can do this(with ou...
[ { "msg_contents": "Dear Friends,\n How to insert or update a file in a table using the query in postgres\nCREATE TABLE excel_file_upload\n(\n user_id integer,\n excel_file bytea\n}\n\nexample \ninsert into excel_file_upload values(1,file1)\n\nfile1 can be any file *.doc,*.xls\n How i can do this(with ou...
[ { "msg_contents": "So Google hasn't been helpful and I'm not entirely sure what to look\nfor in the mailing lists to find the answer to my problem, so here\ngoes.\n\nI have a query and I have run\nexplain analyze\nselect count(*)\nfrom score\nwhere leaderboardid=35 and score <= 6841 and active\n\nThe result is...
[ { "msg_contents": "Hey folks,\n\nDuring Greg Smith's lecture last week I could have sworn I saw on the\nscreen at some point a really long command line for bonnie++ - with\nall the switches he uses.\n\nBut checking his slides I don't see this.\n\nAm I mis-remembering?\n\nCan someone recommend the best way to ru...
[ { "msg_contents": "\nYou should be able to get a good idea of the options from \"man bonnie++\". I've always just used the defaults with bonnie++\n\nAlso, you'll find Gregs older notes are here\n\nhttp://www.westnet.com/~gsmith/content/postgresql/pg-disktesting.htm\n\n--- On Wed, 27/5/09, Alan McKay <alan.mckay...
[ { "msg_contents": "Hey folks,\n\nI have done some googling and found a few things on the matter. But\nam looking for some suggestions from the experts out there.\n\nGot any good pointers for reading material to help me get up to speed\non PostgreSQL clustering? What options are available? What are the\nissu...
[ { "msg_contents": "Hi,\n\nI need to store data about sensor readings. There is a known (but\nconfigurable) number of sensors which can send update data at any time.\nThe \"current\" state needs to be kept but also all historical records.\nI'm trying to decide between these two designs:\n\n1) create a table for ...
[ { "msg_contents": "Hmmm. Anyone out there have the Continuent solution working with PostgreSQL?\nIf so, what release? We're at 8.3 right now.\n\nthanks,\n-Alan\np.s. I'm continuing the cross-post because that is the way I started\nthis thread. Future threads will not be cross-posted.\n\nOn Thu, May 28, 2009...
[ { "msg_contents": "HI.\n\nSomeone had some experience of bad performance with postgres in some server\nwith many processors?\n\nI have a server with 4 CPUS dual core and gives me a very good performance\nbut I have experienced problems with another server that has 8 CPUS quad\ncore (32 cores). The second one o...
[ { "msg_contents": "Hi,\nWe have one query which has a left join. If we run this query without \nthe left join, it runs slower than with the left join.\n\n-query with the left join:\n\nEXPLAIN ANALYZE\nSELECT \nartifact.id AS id,\nartifact.priority AS priority,\nitem.title AS title,\nitem.name AS name,\nfield_va...
[ { "msg_contents": "autovacuum has been running on 2 tables for > 5 hours. There tables are \nnot huge (see below). For the past ~1 hour, I've shut off all other \nactivity on this database. The other table being vacuumed has more rows \n(1897810). Anyone have any ideas about why this is taking so long?\n\nThank...
[ { "msg_contents": "Alvaro Herrera [alvherre@commandprompt.com] wrote:\n> What's vacuum_cost_delay?\n#vacuum_cost_delay = 0 # 0-1000 milliseconds\n#vacuum_cost_page_hit = 1 # 0-10000 credits\n#vacuum_cost_page_miss = 10 # 0-10000 credits\n#vacuum_cost_page_dirty = 20 ...
[ { "msg_contents": "I have 3 servers, all with identical databases, and each performing\nvery differently for the same queries.\n\nwww3 is my fastest, www2 is the worst, and www1 is in the middle...\neven though www2 has more ram, faster CPU and faster drives (by far),\nand is running a newer version of postgres...
[ { "msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> \n> Are those processes actually doing anything, or just waiting? strace\n> or local equivalent would be the most conclusive check.\nThese must not have been hung, because they finally completed (after \n10-15 hrs - some time between 11pm and 8am). Ques...
[ { "msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> They might have been blocked behind some other process that was sitting\n> in an open transaction for some reason. The other likely cause is badly\n> chosen autovacuum delay, but I think that was already covered.\nWell, after I noticed this running for ...
[ { "msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> No, no, and no. What would be best is to find out what actually\n> happened. The evidence is gone now, but if you see it again please\n> take a closer look.\nOK. You mentioned strace. It's got a lot of options; any in particular \nthat would be useful ...
[ { "msg_contents": "Having a doubt, we want to vacuum and reindex some 50 most used tables\ndaily on specific time. Is it best to have a function in postgres and call\nit in cron or is there any other good way to do the two process for\nspecified tables at specified time?\n-Arvind S\n\n*\n**\"Many of lifes failu...
[ { "msg_contents": "I have a DB table with 25M rows, ~3K each (i.e. ~75GB), that together with\nmultiple indexes I use (an additional 15-20GB) will not fit entirely in\nmemory (64GB on machine). A typical query locates 300 rows thru an index,\noptionally filters them down to ~50-300 rows using other indexes, fin...
[ { "msg_contents": "Hi,\n\nI have at column that is a bit array of 16, each bit specifying if a certain\nproperty, out of 16, is present or not. Our typical query select 300\n\"random\" rows (could be located in different blocks) from the table based on\nanother column+index, and then filters them down to ~50 ba...
[ { "msg_contents": "Hi,\n\nI¹m about to set up a large instance on Amazon EC2 to be our DB server.\n\nBefore we switch to using it in production I would like to simulate some\nload on it so that I know what it can handle and so that I can make sure I\nhave the optimal settings in the config file.\n\nWhat is the ...
[ { "msg_contents": "Hi all,\n\nI've been staring at this for hours (if not days). Any hints are appreciated! At first I thought \"there must be a way to make postgresql perform on this thing\", but i've lost hope that pgsql actually can deal with it..\n\nThe query is:\n\nSELECT DISTINCT\n posrel.pos,\n questio...
[ { "msg_contents": "Hi all --\n\nIn attempting to perform a particular query in postgres, I ran into\nwhat appeared to be a pretty severe performance bottleneck.  I didn't\nknow whether I'd constructed my query stupidly, or I'd misconfigured\npostgres in some suboptimal way, or what else might be going on.\nThou...
[ { "msg_contents": "I've been Googling for SQL tuning help for Postgres but the pickings \nhave been rather slim. Maybe I'm using the wrong search terms. I'm \ntrying to improve the performance of the following query and would be \ngrateful for any hints, either directly on the problem at hand, or to \nres...
[ { "msg_contents": "\nHi,\n\nWe have a problem with some of our query plans. One of our tables is quite volatile, but postgres always uses the last statistics snapshot from the last time it was analyzed for query planning. Is there a way to tell postgres that it should not trust the statistics for this table? ...
[ { "msg_contents": "\nRevisiting the thread a month back or so, I'm still investigating \nperformance problems with GiST indexes in Postgres.\n\nLooking at http://wiki.postgresql.org/wiki/PostgreSQL_8.4_Open_Items I'd \nlike to clarify the contrib/seg issue. Contrib/seg is vulnerable to \npathological behaviour ...
[ { "msg_contents": "On a 8 processor system, my stats collector is always at 100% CPU. \nMeanwhile disk I/O is very low. We have many databases, they are \naccessed frequently. Sometimes there are big table updates, but in most \nof the time only simple queries are ran against the databases, returning \na few re...
[ { "msg_contents": "Found a notice after completing the\n vacuumdb -p 5433 -- all --analyze --full -v\nmax_fsm_relation = 1400 in postgresql.conf\nThou all our 50 db individually have less then 1400 relation , when it\ncompletes , there was NOTICE that increase the max_fsm_relation.\nINFO: free space map conta...
[ { "msg_contents": "In single server(4gb ram 2 core 2 duo), which design is good for\nperformance?\n1) single installation for 200 db with 800 tables/db\nor\n2) Two installation (instance) running on different port with each\nhandling 100 db.\n\nWhich of this design is good for postgres where our goal i...
[ { "msg_contents": "Hello all,\n\nWe're implementing a fairly large J2EE application, I'm estimating around \n450,000 concurrent users at high peak. Performing reads and writes and\nwe have a very high performance requirement.\n\nI'll be using connection pooling (probably the pooling delivered with \nGeronimo).\...
[ { "msg_contents": "\nIt appears that I am being censored. I have tried three times to send a \nparticular message to this list over the last few days, while a different \nmail has gone through fine. There does not appear to be a publicised list \nmanager address, so I am addressing this complaint to the whole l...
[ { "msg_contents": "\nAlright. I have finally worked out why I was being censored. Majordomo \ndoesn't like subject lines beginning with the word \"help\". It by default \nsends your message off to the moderators and doesn't tell you. Now follows \nmy original mail:\n\nHi. I thought by now I would be fairly good...
[ { "msg_contents": "On Wed, 10 Jun 2009, Richard Huxton wrote:\n> Send it to the list again, and cc: me directly if you like. If it doesn't \n> show up in the next 20 minutes, I'll try sending it.\n\nOkay, here we go. I have (per Tom's advice) found some acknowledgement\nknobs on Majordomo. Here follows my origi...
[ { "msg_contents": "Hi,\n\nOur configuration is as follows:\n\n1. A staging server, which receives new data and updates the DB\n2. Two web servers that have copies of the DB (essentially read-only) and\nanswer user queries (with load balancer)\n\nCurrently we use dump (to SQL file, i.e. pg_dump with no args) + f...
[ { "msg_contents": "Hey folks,\n\nI'm new to performance monitoring and tuning of PG/Linux (have a fair\nbit of experience in Windows, though those skills were last used about\n5 years ago)\n\nI finally have Munin set up in my production environment, and my\ngoodness it tracks a whole whack of stuff by default!\...
[ { "msg_contents": "Hi,\n\nWhen we do a ps U postgres command, we find some connection in BIND status:\n\n10088 ? Ss 0:00 postgres: chk production xxx.xx.x.xx(48672) BIND\n10090 ? Ss 0:00 postgres: chk production xxx.xx.x.xx(48674) BIND\n\n\nWe are connecting to the database using pgpool fo...
[ { "msg_contents": "Hi everybody, I'm creating my database on postgres and after some days\nof hard work I'm arrived to obtain good performance and owfull\nperformace with the same configuration.\nI have complex query that perform very well with mergejoin on and\nnestloop off.\nIf I activate nestloop postgres tr...
[ { "msg_contents": "Here's the query:\n\nselect photos.*\nfrom photos\ninner join event_participations on\n event_participations.user_id = photos.creator_id and\n event_participations.attend = true\ninner join event_instances on\n event_instances.id = event_participations.event_instance_id\nwhere (\n (event_...
[ { "msg_contents": "Even if the query end in aproximately 200 sec, the explain analyze is\nstill working and there are gone more than 1000 sec...\nI leave it working this night.\nHave a nice evening and thenks for the help.\n\n", "msg_date": "Tue, 16 Jun 2009 18:37:44 +0200", "msg_from": "Alberto Dalmaso...
[ { "msg_contents": "\n\n", "msg_date": "Tue, 16 Jun 2009 17:01:35 -0400", "msg_from": "\"Mark Steben\" <msteben@autorevenue.com>", "msg_from_op": true, "msg_subject": "Performance discrepancy " } ]
[ { "msg_contents": "I'm trying to figure out how to optimize this query (yes, I ran vacuum/analyze):\n\nmusecurity=# explain DELETE FROM muapp.pcap_store WHERE pcap_storeid\nNOT IN (SELECT pcap_storeid FROM muapp.pcap_store_log);\n QUERY PLAN\n---------------------------------...
[ { "msg_contents": "Hi,\n\nI have been trying to fix a performance issue that we have which I have \ntracked down to index scans being done on a particular table (or set of \ntables):\n\nThe following query:\nexplain analyze select *\nFROM inbound.event_20090526 e\nLEFT OUTER JOIN inbound.internal_host i ON (e.m...
[ { "msg_contents": "Hi,\n\nIt seems that a COPY of 8M rows to a table to 8.4rc1 takes >30% longer than\nit does to 8.3.7 on Solaris.\n\nHere are the steps I've taken to reproduce this problem on two different\nsolaris boxes (Solaris 10 11/06 s10x_u3wos_10 X86 and Solaris 10 8/07\ns10x_u4wos_12b X86). I've tried...
[ { "msg_contents": "Ok, here are the last rows for the vacuum analyze verbose\n\nINFO: free space map contains 154679 pages in 39 relations\nDETAIL: A total of 126176 page slots are in use (including overhead).\n126176 page slots are required to track all free space.\nCurrent limits are: 160000 page slots, 50...
[ { "msg_contents": "yes, I have to make that because the data on the table need to be\npivoted so it is joined many times with different filter on the column\nthat describe the meaning of the column called numeric_value I'm going\nto show.\nThat could be very ineffective, event because that table contains\nsomet...
[ { "msg_contents": "I promised to provide more details of the query (or the function as it is). Here goes.\n\n \n\nScenario: \n\nA chemotherapy regimen requires chair time and nursing time. A patient might sit in the chair for three hours but the nurse only has to be with them for the first hour. Therefore, nurs...
[ { "msg_contents": "Hi, sorry about the blank post yesterday - let's try again\n\n \n\nWe have two machines. Both running Linux Redhat, both running postgres\n8.2.5.\n\nBoth have nearly identical 125 GB databases. In fact we use PITR Recovery\nto \n\nReplicate from one to the other. The machine we replicate t...
[ { "msg_contents": "There are 4 threads (4 postgres processes) loading all rows from a table \nwith 50,018 rows. The table has a int8 PK that is incremented by 1 for \neach new row and the PK is used by the threads to partition the rows so \nthat each loads distinct rows. As you can see below, these 4 SELECTs \n...
[ { "msg_contents": "I have a column which only has six states or values.\n\nIs there a size advantage to using an enum for this data type?\nCurrently I have it defined as a character(1).\n\nThis table has about 600 million rows, so it could wind up making a\ndifference in total size.\n\nThanks,\nWhit\n", "ms...
[ { "msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> That is a pretty odd trace for a Postgres backend; apparently it's\n> repeatedly acquiring and releasing a meg or two worth of memory, which\n> is not very normal within a single query. Can you tell us more about\n> the query it's running? An EXPLAIN p...
[ { "msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> Um, are you sure that is the query that PID 7397 is running? It doesn't\n> match your previous pg_stat_activity printout, nor do I see anything\n> about partitioning by PKs.\n\nUmm, indeed. I had to construct the query by hand and left out the \npartiti...
[ { "msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> This seems like kind of a stupid plan anyway (which PG version was this\n> exactly?) but certainly the big issue is the catastrophically bad\n> rowcount estimate for the indexscan. Do you have ANALYZE stats for\n> ts_stats_transetgroup_user_daily at all...
[ { "msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> OK, so what's the entry for column ts_id?\n\nIs this what you requested? Brian\n\ncemdb=# select * from pg_stats where \ntablename='ts_stats_transetgroup_user_daily' and attname = 'ts_id';\n schemaname | tablename | attname | null...
[ { "msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> Yup. So according to those stats, all ts_id values fall in the range\n> 600000000000000001 .. 600000000000250068. It's no wonder it's not\n> expecting to find anything between 0 and 100000. I think maybe you\n> forgot to re-analyze after loading data ...
[ { "msg_contents": "Grzegorz Jakiewicz [gryzman@gmail.com] wrote:\n> this might be quite bogus question, just a hit - but what is your\n> work_mem set to ?\n> Guys, isn't postgresql giving hudge cost, when it can't sort in memory ?\nwork_mem = 64MB\n", "msg_date": "Thu, 18 Jun 2009 10:16:51 -0700", "msg_...
[ { "msg_contents": "Hi All,\n\nWe are having a reasonably powerful machine for supporting about 20\ndatabases but in total they're not more then 4GB in size.\n\nThe machine is 2 processor 8 core and 8 Gig or ram so I would expect that PG\nshould cache the whole db into memory. Well actually it doesn't.\n\nWhat i...
[ { "msg_contents": "ts_stats_transet_user_interval has ~48M rows. ts_id is the PK and there \nis an index on ts_interval_start_time. I reindexed it and ran vacuum \nanalyze. Only SELECTs have been done since these operations.\n\ncemdb=# explain select min(ts_id) from ts_stats_transet_user_interval a \nwhere 0=0 ...
[ { "msg_contents": "Kevin Grittner [Kevin.Grittner@wicourts.gov] wrote:\n> Is there any correlation between ts_id and ts_interval_start_time?\nonly vaguely: increasing ts_interval_start_time implies increasing ts_id \nbut there may be many rows (100,000's) with the same ts_interval_start_time\n\n> Perhaps if you...
[ { "msg_contents": "Hi,\n\nLooking at the XLogInsert() from 8.3 and 8.4, the 8.4\nversion includes a call to RecoveryInProgress() at\nthe top as well as a call to TRACE_POSTGRESQL_XLOG_INSERT().\nCould either of those have caused a context switch or\ncache flush resulting in worse performance.\n\nCheers,\nKen\n"...
[ { "msg_contents": "Hey folks,\n\nI'm new to all this stuff, and am sitting here with kSar looking at\nsome graphed results of some load tests we did, trying to figure\nthings out :-)\n\nWe got some unsatisfactory results in stressing our system, and now I\nhave to divine where the bottleneck is.\n\nWe did 4 tes...
[ { "msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> Some experimentation suggests that it might help to provide a 2-column\n> index on (ts_id, ts_interval_start_time). This is still going to be\n> scanned in order by ts_id, but it will be possible to check the\n> ts_interval_start_time condition in the i...
[ { "msg_contents": "David Rees [drees76@gmail.com] wrote:\n> Along those lines, couldn't you just have the DB do the work?\n> \n> select max(ts_id), min(ts_id) from ... where ts_interval_start_time >=\n> ... and ...\n> \n> Then you don't have to transfer 500k ids across the network...\nI guess you didn't read th...
[ { "msg_contents": "Hey folks !\n\n\nStill kind of analyzing the situation , I realized that I do have a\nreasonably high shared_memory and effective_cache_size , though if the same\nquery is being run in a number of times ~100-200 concurrent connection it is\nnot being cached .\n\nShould PG realize that if the ...
[ { "msg_contents": "With out knowing how much memory for each of those settings and how much work_mem for each connection its kinda hard to tell what is going. \nAlso need version for PG, OS, how big the tables are, Also would be nice to see the query itself with explain and analyze \n\nPG does not cache the res...
[ { "msg_contents": "Peter Alban wrote: \n\nduration: 2533.734 ms statement: \n \n SELECT news.url_text,news.title, http://comments.name comments.name, comments.createdate, comments.user_id, comments.comment FROM news, comments WHERE comments.cid=http://news.id news.id AND comments.published='1' GROUP BY news.u...
[ { "msg_contents": "---- Message from mailto:peter.alban2@gmail.com Peter Alban peter.alban2@gmail.com at 06-21-2009 10:59:49 PM ------ \n\nOn Sun, Jun 21, 2009 at 10:01 PM, Justin Graf mailto:justin@emproshunts.com wrote:\n \n \n\n \n \nPeter Alban wrote: \n\nduration: 2533.734 ms statement: \n ...
[ { "msg_contents": "Hi all,\n\nI'm running a quite large website which has its own forums. They are\ncurrently heavily used and I'm getting performance issues. Most of them\nare due to repeated UPDATE queries on a \"flags\" table.\n\nThis \"flags\" table has more or less the following fields:\n\nUserID - TopicID...
[ { "msg_contents": "Hi there,\n\nPlease help me to make a decision on how to manage users.\n\nFor some reason it is easier in the project I'm working on to split data \nby schemes and assign them to Postgres' users (I mean those created with \nCREATE USER) rather than support 'owner' fields referring to a global...
[ { "msg_contents": "Sorry, just in case anyone is filtering on that in the subject line ...\n\nOn Tue, Jun 23, 2009 at 4:41 PM, Alan McKay<alan.mckay@gmail.com> wrote:\n> BTW, our designer got the nytprofile or whatever it is called for Perl\n> and found out that it was a problem with the POE library that was\n>...
[ { "msg_contents": "Is tsvector_update_trigger() smart enough to not bother updating a \ntsvector if the text in that column has not changed?\n\nIf not, can I make my own update trigger with something like\n\n if new.description != old.description\n return tsvector_update_trigger('fti_all', 'pg_catalog...
[ { "msg_contents": "Morning all,\n A colleague here tried to post this yesterday but it was stalled for\nsome reason. Anyway, here's what we're seeing which hopefully someone\nhas some pointers for.\n \nEssentially, we're seeing a query plan that is taking 95 secs with a\nnested loop execution plan and 1 sec...
[ { "msg_contents": "Hello,\n\nI have a table like following. To increase the performance of this\ntable, I would like to create CLUSTER.\nFirst, Which index should I use on this table for CLUSTER?\nSecondly, Can I create multiple CLUSTER on the same table?\nI will appreciate, if you can suggest other options ...