threads
listlengths
1
275
[ { "msg_contents": "Hello,\n\nI have a PostgreSQL 9.2 instance running on RHEL 6.3, 8-core machine with\n16GB of RAM. The server is dedicated to this database, the disks are local\nRAID10. Given that the default postgresql.conf is quite conservative\nregarding memory settings, I thought it might be a good idea t...
[ { "msg_contents": "Shaun Thomas wrote:\n> On 10/30/2012 06:55 AM, Kevin Grittner wrote:\n\n>> Is there a good transaction-based connection pooler in Python?\n>> You're better off with a good pool built in to the client\n>> application than with a good pool running as a separate process\n>> between the client an...
[ { "msg_contents": "On Thu, Jul 19, 2012 at 11:07 AM, Jon Nelson <jnelson+pgsql@jamponi.net> wrote:\n> Recently I found myself wondering what was taking a particular query so long.\n> I immediately assumed it was a lack of I/O, because lack of I/O is a\n> thorn in my side.\n> Nope, the I/O was boring. CPU? Well,...
[ { "msg_contents": "dear friends\n\ni have - sql file of size more than 1 gb\nwhen i execute it then after some time \"Invalid memory alloc request size\n100234023 byte\" occcured\nwhat ' s problem that i don't know ?\n\n\n\nwith thanks\nmahavir\n\ndear friendsi have - sql file of size more than 1 gb when i e...
[ { "msg_contents": "Hi all :)\n\nI'm here again.\nThis time I'll provide more details (explain analyze, data-type, and\nindexes), hope it will be enough :)\n\nThe query that is performing a plan that i do not understand is the\nfollowing:\n--------------------\nselect [some fields from all 3 tables]\nfrom\nDATA_...
[ { "msg_contents": "Hi there,\n\nI work for VMware with our Postgres performance team. We recently came across a dbt2 performance regression from 9.1.6 to 9.2.1. We have done some profiling and don't see anything obvious. Would like to get some suggestions from the community where to investigate further.\n\nThe ...
[ { "msg_contents": "Hi there,\n\nI work for VMware with our Postgres performance team. We recently came across a dbt2 performance regression from 9.1.6 to 9.2.1. We have done some profiling and don't see anything obvious. Would like to get some suggestions from the community where to investigate further.\n\nThe ...
[ { "msg_contents": "Hello,\n I have this table definition:\nCREATE TABLE ism_floatvalues\n(\n id_signal bigint NOT NULL, -- Indica la señal a la que pertenece este \nvalor. Clave foránea que referencia al campo id_signal de la tabla \nism_signal.\n time_stamp timestamp without time zone NOT NULL, -- Marca ...
[ { "msg_contents": "I'm running a server with lots of counts and calculations.\ncurrently its ubuntu server is freebsd faster?\n\nalso this is a i386 machine.\n\nor linux and bsd is about the same.\n\nthis is not to be an argument just looking. Current benchmarks to compare\n\nthanks\n\nI'm running a server with...
[ { "msg_contents": "Hi list.\n\nI've been battling with a design issue here.\n\nI have postgres 9.0.x deployed in some databases, and was designing\nsome changes that involve querying in a very partition-like way, but\nnot quite.\n\nIn particular, I have a few tables (lets call them table1...tableN). N\nis prett...
[ { "msg_contents": "Hello everyone,\n\nIf one would create a postgres performance tool, what would one like to measure aside from the obvious things common to all databases (query times, locks etc)?\n\nI'm in the slightly difficult situation of being asked to port \"Jet Profiler for MySQL\" (http://www.jetprofil...
[ { "msg_contents": "where should i get the original working source code of DBT-1 bechmark and it\nis compatible with postgres 9.2?\n\n\n\n--\nView this message in context: http://postgresql.1045698.n5.nabble.com/DBT-1-tp5730629.html\nSent from the PostgreSQL - performance mailing list archive at Nabble.com.\n\n"...
[ { "msg_contents": "where should i get the original working source code of DBT-1 benchmark and it is compatible with postgres 9.2?\n\nBest Regards\n------------------------\n[Description: a]\nSamrat Revagade |Software Engineer | NTTDATA Global Technology Services Pvt. Ltd.|\nSamrat.Revagade@nttdata.com<mailto:Sa...
[ { "msg_contents": "Hello, this is my first message to this list, so sorry if this is not \nthe right place to discuss this or if some data is missing from this \nmessage.\n\nI'll gladly send any data you request that would help us to understand \nthis issue. I don't believe I'm allowed to share the actual datab...
[ { "msg_contents": "\nI'm bringing up a new type of server using Intel E5-2620 (unisocket) \nwhich was selected for good SpecIntRate performance vs cost/power (201 \nfor $410 and 95W).\n\nWas assuming it was 6-core but I just noticed it has HT which is \ncurrently enabled since I see 12 cores in /proc/cpuinfo\n\...
[ { "msg_contents": "Hello,\n\nI know I need to re-engineer this so it doesn't suck by design, so I'm\nwondering if there is some nifty PostgreSQL feature or best practice\nwhich may automagically do the best thing.\n\nI store information about documents which are tagged by string tags. The\nstructure is very sim...
[ { "msg_contents": "We have a web application where we create a schema or a database with a\nnumber of tables in it for each customer. Now we have about 2600 clients.\n\nThe problem we met using a separate DB for each client is that the creation\nof new DB can take up to 2 minutes, that is absolutely unacceptabl...
[ { "msg_contents": "Hi,\n\nI have\n\n create table x ( att bigint, val bigint, hash varchar(30) \n);\n\nwith 693million rows. The query\n\n create table y as select att, val, count(*) as cnt from x \ngroup by att, val;\n\nran for more than 2000 minutes and used 14g memory on an 8g physic...
[ { "msg_contents": "[Please CC me on replies, as I'm not subscribed; thank you.]\n\nI've ran into a problem with the query planner and IN (subquery)\nconditions which I suspect to be a bug. I'll attempt to describe the\nrelevant details of my database and explain which behaviour I find\nunexpected. I've also tri...
[ { "msg_contents": "Hi All\n\nI am facing query performance in one of my testing server.\n\nHow i can create index with table column name ?\n\nEXPLAIN select xxx.* from xxx xxx where exists (select 1 from tmp\nwhere mdc_domain_reverse like xxx.reverse_pd || '.%');\n\n QUERY...
[ { "msg_contents": "Dear All\n\nI am currently implementing using a compressed binary storage scheme \ngenotyping data. These are basically vectors of binary data which may be\nmegabytes in size.\n\nOur current implementation uses the data type bit varying.\n\nWhat we want to do is very simple: we want to retrie...
[ { "msg_contents": "Hi,\n\nI had installed postgreSQL v9.2 in Windows XP SP3.\n\nMy PC specs:\nProcessor: Pentium Dual Core 2.09 GHz\nRAM: 2GB\n\nThe postgreSQL is run as windows service (manual).\n\nThe problem is the postgreSQL service uses a lot of memory and lags\nthe OS if running in long time (about 2 hour...
[ { "msg_contents": "This query is a couple orders of magnitude slower the first result is\n9.2.1, the second 9.1\n\n=# explain analyze SELECT note_sets.\"id\" AS t0_r0,\nnote_sets.\"note_set_source_id\" AS t0_r1, note_sets.\"parent_id\" AS t0_r2,\nnote_sets.\"business_entity_id\" AS t0_r3, note_sets.\"created_at...
[ { "msg_contents": "I was working on a data warehousing project where a fair number of files\ncould be COPY'd more or less directly into tables. I have a somewhat nice\nmachine to work with, and I ran on 75% of the cores I have (75% of 32 is\n24).\n\nPerformance was pretty bad. With 24 processes going, each back...
[ { "msg_contents": "Have a query using a CTE that is performing very poorly. The equivalent query against the same data in an Oracle database runs in under 1 second, in Postgres it takes 2000 seconds.\n\nThe smp_pkg.get_invoice_charges queries fedexinvoices for some data and normalizes it into a SETOF some reco...
[ { "msg_contents": "Have a query using a CTE that is performing very poorly. The equivalent query against the same data in an Oracle database runs in under 1 second, in Postgres it takes 2000 seconds.\n\nThe smp_pkg.get_invoice_charges queries fedexinvoices for some data and normalizes it into a SETOF some reco...
[ { "msg_contents": "-----Original Message-----\nFrom: Andrew Dunstan [mailto:andrew@dunslane.net] \nSent: Wednesday, November 14, 2012 11:08 AM\nTo: David Greco\nCc: pgsql-performance@postgresql.org\nSubject: Re: [PERFORM] Poor performance using CTE\n\n\nOn 11/14/2012 10:56 AM, David Greco wrote:\n> You're right...
[ { "msg_contents": "Hi,\n\ni am running some tests to check performance between postgresql and mysql.\n\none important issue is PQconnectdb (PQconnectStart/PQconnectPoll) against mysql_init/mysql_real_connect functions. (debian platform/C application).\n\nPQconnectdb(\"host=localhost dbname=my_db user=my_user pa...
[ { "msg_contents": "Can someone shed some light on the following query.....\nany help would certainly be appreciated!\n\nthanks -\n\n*****\nMaria Wilson\nNasa/Langley Research Center\nHampton, Virginia\nm.l.wilson@nasa.gov\n*****\n\nexplain analyze\nselect a.ID, a.provider, a.hostname, a.username, a.eventTimeSta...
[ { "msg_contents": "Can someone shed some light on the following query.....\nany help would certainly be appreciated!\n\nthanks -\n\n*****\nMaria Wilson\nNasa/Langley Research Center\nHampton, Virginia\nm.l.wilson@nasa.gov\n*****\n\nexplain analyze\nselect a.ID, a.provider, a.hostname, a.username, a.eventTimeSta...
[ { "msg_contents": "Hi\n\nI tried to run quite simple query. For some reason query took lots of\nmemory, more than 6GB.\nSystem start swapping, so I canceled it after 4 minutes. There were no\nother queries in same time.\n\nIf I I understood my config correctly that is more than it should be. Is it\nbug or is th...
[ { "msg_contents": "I have database with few hundred millions of rows. I'm running the following query:\nselect * from \"Payments\" as p\ninner join \"PaymentOrders\" as po\non po.\"Id\" = p.\"PaymentOrderId\"\ninner join \"Users\" as u\nOn u.\"Id\" = po.\"UserId\"\nINNER JOIN \"Roles\" as r\non u.\"RoleId\" = r...
[ { "msg_contents": "Hi,\n\nI have a table which contains generated static data (defined below) where the search_key field contains varying length strings.\nThere are 122,000 rows in the table\nWhen the data is created the search_key field is ordered alphanumerically and assigned a unique order_key value starting...
[ { "msg_contents": "Postgres Performance Wizards,\n\nI am a few years into developing and operating a system underpinned by\nPostgres that sees the arrival a significant number of events around\nthe clock, not an epic amount of data, but enough to be challenging to\nme, in particular when system downtime is not ...
[ { "msg_contents": "> explain analyze\n> select a.ID, a.provider, a.hostname, a.username, a.eventTimeStamp, a.AIPGUID, a.submissionGUID, a.parentSubmissionGUID, a.sizeArchived, a.addedContentString, a.addedContentSizesString, a.removedContentString, a.removedContentSizesString, a.modifiedContentStrin...
[ { "msg_contents": "Sergio Mayoral wrote:\n\n> I cannot use persistent connections. I must open/close a connection\n> anytime I want to insert something new.\n\nThat's odd. Why is that?\n\n> do i have to configure something different? Am i missing something?\n\nYou could use pgbouncer to hold database connection...
[ { "msg_contents": "Maria L. Wilson wrote:\n\n> Can someone shed some light on the following query.....\n> any help would certainly be appreciated!\n\nThe query text and EXPLAIN ANALYZE output are a good start, but a lot\nof other information is needed to really understand the issue.\n\nhttp://wiki.postgresql.or...
[ { "msg_contents": "On Tue, Nov 20, 2012 at 3:53 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:\n\n> Craig Ringer <craig@2ndQuadrant.com> writes:\n> > On 11/21/2012 12:06 AM, Claudio Freire wrote:\n> >> I meant for postgres to do automatically. Rewriting as a join wouldn't\n> >> work as an optimization fence the way we...
[ { "msg_contents": "Craig Ringer wrote:\n> On 11/21/2012 09:35 AM, Craig James wrote:\n>> Why not make an explicit hint syntax and document it? I've still\n>> don't understand why \"hint\" is a dirty word in Postgres. There are\n>> a half-dozen or so ways in common use to circumvent or correct\n>> sub-optimal pl...
[ { "msg_contents": "Hello,\n\nThis is a performance question that has held me occupied for quite some \ntime now,\n\nThe following join is a somewhat slow query:\n\n(np_artikel, sm_artikel_dim are views and sm_orderrad_* are tables )\n\n\nxtest=# explain analyze verbose\nselect * from np_artikel np\njoin sm_arti...
[ { "msg_contents": "Hi,\n\n \n\nI am using PostgreSQL 9.1.5 for Data warehousing and OLAP puposes. Data size\nis around 100 GB and I have tuned my PostgreSQL accordingly still I am\nfacing performance issues. The query performance is too low despite tables\nbeing properly indexed and are vacuumed and analyzed at...
[ { "msg_contents": "I need to delete about 1.5 million records from a table and reload it in\none transaction. The usual advice when loading with inserts seems to be\ngroup them into transactions of around 1k records. Committing at that\npoint would leave the table in an inconsistent state. Would issuing a\ns...
[ { "msg_contents": "Hi,\n\nThis folde( Temporary tablespace) is getting filled and size increases in\nthe day where there lots of sorting operations.But after some times the data\nin the is deleted automatically . Can any one explain what is going on ?\n\nRgrds\nSuhas\n\n\n\n--\nView this message in context: ht...
[ { "msg_contents": "Hi,\n\nI'm on the hunt for some solid knowledge on a theoretical level about the performance of postgresql. My question is regarding best practices, and how architectural decisions might influence the performance. First a little background:\n\nThe setup:\nI have a database which holds informa...
[ { "msg_contents": "Hi, i have these update queries, that run very often, and takes too long time, in order for us to reach the throughput we are aiming at. However, the update query is very simple, and I can't figure out any way to improve the situation. The query looks like this:\n\nUPDATE \"adverts\" SET \"la...
[ { "msg_contents": "Niels Kristian Schjødt wrote:\n\n> So my main concern is actually about the cars table, since this\n> one currently has a lot of columns (151 - I expect thats quite a\n> lot?),\n\nThat's pretty wide, but not outrageous.\n\n> and a lot of data (4 mil. rows, and growing).\n\nThat's not a big de...
[ { "msg_contents": "Niels Kristian Schjødt wrote:\n\n> PS. I'm on postgres 9.2 on a server with 32gb ram, 8 cores and\n> two 3T disks in a software raid 1 setup.\n\nIn addtion to the excellent advice from Shaun, I would like to\npoint out a few other things.\n\nOne query runs on one core. In a test of a single q...
[ { "msg_contents": "Hi, \n\nWe are planning to migrate our production databases to different\nservers.We have around 8 servers with 8 different clusters.We are planning\nt shuffle databases and make them as 7 cluster and migrate to new remote\nservers . \nWe cannot use streaming replication as we are migratin...
[ { "msg_contents": "Hi, I've just been benchmarking a new box I've got and running pgbench \nyields what I thought was a slow tps count. It is dificult to find \ncomparisons online of other benchmark results, I'd like to see if I have \nthe box set up reasonably well.\n\nI know oracle, et al prohibit benchmark r...
[ { "msg_contents": "Hello,\n\nI am toying around with 9.2.1, trying to measure/determine how\nindex-only scans can improve our performance.\n\nA small script which is attached to this mail, shows that as long\nas the table has been VACUUM FULL'd, there is a unusual high\namount of heap fetches. It is strange tha...
[ { "msg_contents": "Niels Kristian Schjødt wrote:\n\n> Okay, now I'm done the updating as described above. I did the\n> postgres.conf changes. I did the kernel changes, i added two\n> SSD's in a software RAID1 where the pg_xlog is now located -\n> unfortunately the the picture is still the same :-( \n\nYou said ...
[ { "msg_contents": "Niels Kristian Schjødt wrote:\n\n>> You said before that you were seeing high disk wait numbers. Now\n>> it is zero accourding to your disk utilization graph. That\n>> sounds like a change to me.\n\n> Hehe, I'm sorry if it somehow was misleading, I just wrote \"a lot\n> of I/O\" it was CPU I/...
[ { "msg_contents": "Hello\n\nWe am running a web application on ubuntu 10.10 using postgres 8.4.3.\n\nWe are experiencing regular problems (each morning as the users come in)\nwhich seem to be caused by deadlocks in the postgres database. I am seeing\nmessages like:\n\n2012-11-30 10:24:36 GMT LOG: sending canc...
[ { "msg_contents": "Hi guys (and girls)\n\nI've been banging my head over this for a few days now so if any of you kind\nsouls could take a minute to take a look at this I would be eternally\ngrateful.\n\nI have a pretty straightforward query that is very slow by default, and\nabout 70 times faster when I set en...
[ { "msg_contents": "postgresql@foo.me.uk wrote:\n\n> Ah okay, thanks. I knew I could set various things but not\n> effective_work_mem (I tried reloading the edited config file but\n> it didn't seem to pick it up)\n\nCheck the server log, maybe there was a typo or capitalization\nerror.\n\nTo test on a single con...
[ { "msg_contents": "Hi,\n\n\nI have a partitioned table(partitioned on date) .There are about 1 million\ninsertions per day. There is a column called mess_id. This column is updated\n.But update query is taking huge time.When i checked , this column is not\nunique, and most of the time its having null . Say eve...
[ { "msg_contents": "I have upgraded from PostgreSQL 9.1.5 to 9.2.1:\n\n \"PostgreSQL 9.1.5 on x86_64-unknown-linux-gnu, compiled by gcc (GCC)\n4.4.6 20120305 (Red Hat 4.4.6-4), 64-bit\"\n \"PostgreSQL 9.2.1 on x86_64-unknown-linux-gnu, compiled by gcc (GCC)\n4.4.6 20120305 (Red Hat 4.4.6-4), 64-bit\"\n\nIt...
[ { "msg_contents": "Hey guys,\n\nThis isn't a question, but a kind of summary over a ton of investigation\nI've been doing since a recent \"upgrade\". Anyone else out there with\n\"big iron\" might want to confirm this, but it seems pretty reproducible.\nThis seems to affect the latest 3.2 mainline and by extens...
[ { "msg_contents": "Hi,\n\nI'm struggling with a query for some time and the major problem of the\nquery is that the statistics are way wrong on a particular operation:\n -> Nested Loop (cost=3177.72..19172.84 rows=*2* width=112) (actual\ntime=139.221..603.929 rows=*355331* loops=1)\n Join Filter: (l.locat...
[ { "msg_contents": "Hi everyone ,I have a question. I have a table with large data (i was used\nbytea datatype and insert a binary content to table ) so that Postgres help\nme get a TOAST table to storage out-of-line values .\nAssume that my table is \" tbl_test \" and toast table oid is 16816\n\nWhen i peform...
[ { "msg_contents": "Hi,\n\nI'm using a foreign data wrapper to access mongodb and I'm looking for a\nway to monitor query stats against foreign tables.\n\nIt looks like the common methods have limited support for foreign tables at\nthis time. pg_stat_statements collects the query, total time, and rows\nreturned...
[ { "msg_contents": "#### Pitch ######################################################################################\nI previously posted this question http://archives.postgresql.org/pgsql-performance/2012-11/msg00289.php about a performance issue with an update query. \nThe question evolved into a more general...
[ { "msg_contents": "Hello,\n\nI am seeing some strange performance on a new pg9.1 instance. We are seeing occasional statement timeouts on some TRUNCATEs and INSERTs. In both cases, the statements are quite simple:\n - TRUNCATE schema.table;\n - INSERT INTO schema.table VALUES ($1,2,$2,'');\n\nSometimes ...
[ { "msg_contents": "Hello All\n\nWhile investigating switching to Postgres, we come across a query plan that\nuses hash join and is a lot slower than a nested loop join.\n\nI don't understand why the optimiser chooses the hash join in favor of the\nnested loop. What can I do to get the optimiser to make a better...
[ { "msg_contents": "Hi,\n\nAnybody knows a JDBC or a multiplatform code that let read the delete rows of a table without writing of a table file?\nAnybody knows how to create a table using a table file?\n\nthanks\n\nHi,Anybody knows a JDBC or a multiplatform code that let read the delete rows of a table without ...
[ { "msg_contents": "Is there a performance downside to setting track_activity_query_size to \na significantly larger value than the default 1024 (say 10240), given \nthat there's plenty of memory to spare?\n\ncheers\n\nandrew\n\n\n-- \nSent via pgsql-performance mailing list (pgsql-performance@postgresql.org)\nT...
[ { "msg_contents": "\nA client is testing a migration from 9.1 to 9.2, and has found that a \nlarge number of queries run much faster if they use index-only scans. \nHowever, the only way he has found to get such a plan is by increasing \nthe seq_page_cost to insanely high levels (3.5). Is there any approved \nw...
[ { "msg_contents": "Huan Ruan wrote:\n\n> is a lot slower than a nested loop join.\n\nGiving actual numbers is more useful than terms like \"a lot\". Even\nbetter is to provide the output of EXPLAIN ANALYZZE rather than\njust EXPLAIN. This shows estimates against actual numbers, and give\ntimings. For more sugge...
[ { "msg_contents": "Hi\n\nOur scripts automatically add \"LIMIT ALL\" & \"OFFSET 0\" to every select\nquery if no values are passed on for these parameters. I remember reading\nthrough the mailing list that it's better not to pass them if they are not\nneeded as they add a cost to the query plan. Is this the ca...
[ { "msg_contents": "One parent table, having 100 child tables. \nIn this scenario we observed that delete and update are taking more memory\nfor preparing a plan \n\nIf the system under peak i am getting out of memory issue. \n\ni.e \nSelect on parent table is using memory - 331456 in message context \nDelete o...
[ { "msg_contents": "Huan Ruan wrote:\n\n> Hash 1st run\n\n> \"Hash Join (cost=1681.87..6414169.04 rows=48261 width=171)\n> (actual time=2182.450..88158.645 rows=48257 loops=1)\"\n\n> \" -> Seq Scan on invtran bigtable (cost=0.00..4730787.28\n> rows=168121728 width=108) (actual time=0.051..32581.052\n> rows=16812...
[ { "msg_contents": "Hi\n\nI have currently some trouble with inserts into a table\n\nINSERT INTO LPP (PPID, LID)\nSELECT DISTINCT PPid, LID FROM\n (SELECT * FROM PP WHERE s_id = sid) pp\n INNER JOIN\n has_protein hp1\n ON pp.p1id = hp1.pid\n INNER JOIN\n has_...
[ { "msg_contents": "Pavan Deolasee wrote:\n> Amitabh Kant <amitabhkant@gmail.com> wrote:\n\n>> Our scripts automatically add \"LIMIT ALL\" & \"OFFSET 0\" to every\n>> select query if no values are passed on for these parameters. I\n>> remember reading through the mailing list that it's better not\n>> to pass the...
[ { "msg_contents": "Tom Lane wrote:\n> \"Kevin Grittner\" <kgrittn@mail.com> writes:\n\n>> I ran some quick tests on my i7 under Linux. Plan time was\n>> increased by about 40 microseconds (based on EXPLAIN runtime)\n>> and added a limit node to the plan. Execution time on a SELECT *\n>> FROM tenk1 in the regres...
[ { "msg_contents": "Hello,\n\n\nI have a customer that experience a strange behaviour related to statictics.\n\nThrere is a vacuum analyze planned during the night.\nThe morning, 1 day out of 2, there are some extremely slow queries.\nThose queries lasts more than 5 minutes (never waited more and cancelled\nthem...
[ { "msg_contents": "Tom Lane wrote:\n\n> Huh, so on a percentage basis the Limit-node overhead is actually\n> pretty significant, at least for a trivial seqscan plan like this\n> case. (This is probably about the worst-case scenario, really,\n> since it's tough to beat a simple seqscan for cost-per-emitted-\n> r...
[ { "msg_contents": "Ghislain ROUVIGNAC wrote:\n\n> Threre is a vacuum analyze planned during the night.\n> The morning, 1 day out of 2, there are some extremely slow\n> queries. Those queries lasts more than 5 minutes (never waited\n> more and cancelled them) whereas when everything is OK they last\n> less than ...
[ { "msg_contents": "Why does the number of rows are different in actual and estimated?\nThe default_statistics_target is set to 100.\n\n\nexplain analyze\nselect *\nFROM (\nSELECT\nentity.id AS \"con_s_id\", entity.setype AS \"con_s_setype\" ,\ncon_details.salutation AS \"con_s_salutationtype\", con_details.firs...
[ { "msg_contents": "Huan Ruan wrote:\n\n> Interesting to see how you derived 100% cache hits. I assume by 'cache' you\n> mean the pg shared buffer plus the OS cache? Because the table is 23GB but\n> the shared buffer is only 6GB. Even then, I'm not completely convinced\n> because the total RAM is just 24GB, part...
[ { "msg_contents": "Huan Ruan wrote:\n> Kevin Grittner wrote:\n\n>> With a low cache hit rate, that would generally be when the number\n>> of lookups into the table exceeds about 10% of the table's rows.\n>\n> So far, my main performance issue comes down to this pattern where\n> Postgres chooses hash join that's...
[ { "msg_contents": "One of my clients has an odd problem. Every so often a backend will \nsuddenly become very slow. The odd thing is that once this has happened \nit remains slowed down, for all subsequent queries. Zone reclaim is off. \nThere is no IO or CPU spike, no checkpoint issues or stats timeouts, no \n...
[ { "msg_contents": "AI Rumman wrote:\n> Claudio Freire <klaussfreire@gmail.com>wrote:\n>> I think it's more likely a missing FK constraint.\n\n> Does FK Constraint help to improve performance? Or it is only\n> for maintaining data integrity?\n\nI'm not aware of any situation where adding a foreign key\nconstrain...
[ { "msg_contents": "Claudio Freire wrote:\n\n> Selectivity is decided based on the number of distinct values on\n> both sides, and the table's name \"entity\" makes me think it's a\n> table that is reused for several things. That could be a problem,\n> since that inflates distinct values, feeding misinformation ...
[ { "msg_contents": "AI Rumman wrote:\n\n> The ENTITY table has 2164493 rows with data as follows:\n> \n>  type | count\n> -----------------------+--------\n>  Contacts | 327352\n>  Candidate | 34668\n>  Emailst | 33604\n>  Calendar | 493956\n>  Contacts Image | 7\n>  PriceBooks | 2\n>  Notes Attachment | 17\n>  ...
[ { "msg_contents": "There is a tool called pg Fouine . I am sure this will help you..\n\nhttp://pgfouine.projects.pgfoundry.org/tutorial.html\n\nRgrds\nSuhas\n\n\n\n--\nView this message in context: http://postgresql.1045698.n5.nabble.com/How-can-i-find-out-top-high-load-sql-queries-in-PostgreSQL-tp5736854p5736...
[ { "msg_contents": "Ghislain ROUVIGNAC wrote:\n\n> Memory : In use 4 Go, Free 15Go, cache 5 Go.\n\nIf the active portion of your database is actually small enough\nthat it fits in the OS cache, I recommend:\n\nseq_page_cost = 0.1\nrandom_page_cost = 0.1\ncpu_tuple_cost = 0.05\n\n> I plan to increase various para...
[ { "msg_contents": "\"Huan Ruan\" <huan.ruan.it@gmail.com> wrote:\n\n> explain (analyze, buffers)\n> SELECT\n>  *\n> FROM IM_Match_Table smalltable\n>  inner join invtran bigtable on bigtable.invtranref = smalltable.invtranref\n\nWell, one table or the other will need to be read in full, and you\nwould normally ...
[ { "msg_contents": "Trying again since I couldn't post without being subscribed. The message \ngot stalled and was never sent, so I just subscribed and I'm trying \nagain. Original message I tried to send two days ago:\n\n----------------------------------\n\nI've explained a bit of how my application works in t...
[ { "msg_contents": "Dear All,\n\nI've just joined this list, and I'd like to request some advice.\n\nI have a table (1 GB in size) with 24 columns, and 5.6 million rows. Of \nthese, we're interested in two columns, parcel_id_code, and exit_state.\n\n\tparcel_id_code has a fairly uniform distribution of integers ...
[ { "msg_contents": "Huan Ruan wrote:\n> Kevin Grittner wrote:\n\n>> Frankly, at 12 microseconds per matched pair of rows, I think\n>> you're doing OK.\n>\n> This plan is the good one, I want the indexscan nested loop join and this\n> is only achieved after making all these costing factors change. Before\n> that,...
[ { "msg_contents": "Hello guys\n\n \n\nI’m doing 1.2 Billion inserts into a table partitioned in\n15.\n\n \n\nWhen I target the MASTER table on all the inserts and let\nthe trigger decide what partition to choose from it takes 4 hours.\n\nIf I target the partitioned table directly during the\ninsert I can get 4 ...
[ { "msg_contents": "Ghislain ROUVIGNAC wrote:\n\n>> I would leave default_statistics_target alone unless you see a lot of\n>> estimates which are off by more than an order of magnitude. Even then, it\n>> is often better to set a higher value for a few individual columns than for\n>> everything.\n> \n> \n> We had...
[ { "msg_contents": "Hello\n\nplease do not consider this email as an yet another question how to speed up writing.\n\nThe situation is different:\n\nMy algorithm stores after the computation the result as tuples in a DB.\nThe tuples in addition to normal values (e.g. a,b) , contains sql statements that fetch val...
[ { "msg_contents": "We just upgraded from 8.3 to 9.1 and we're seeing some performance\nproblems. When we EXPLAIN ANALYZE our queries the explain result claim\nthat the queries are reasonably fast but the wall clock time is way way\nlonger. Does anyone know why this might happen?\n\nLike so:\ndb=>\\timing\ndb=...
[ { "msg_contents": "Hey guys,\n\nI recently stumbled over a Linux scheduler setting that has outright \nshocked me. So, after reading through this:\n\nhttp://blog.tsunanet.net/2010/11/how-long-does-it-take-to-make-context.html\n\nit became readily apparent we were hitting the same wall. I could do a \npgbench an...
[ { "msg_contents": "I have encountered serious under-estimations of distinct values when \nvalues are not evenly distributed but clustered within a column. I think \nthis problem might be relevant to many real-world use cases and I wonder \nif there is a good workaround or possibly a programmatic solution that \...
[ { "msg_contents": "I have been running Postgresql 9.2 under VMWare/WinXP-32bit, and it works\nreally well.\n\nI finally decided to move to my host - Win 7 Ultimate 64bit - and installed\nthe 64bit version with same config as the 32bit. When I tried to run it,\nit was extremely slow connecting to a 4 table data...
[ { "msg_contents": "Hey everyone!\n\nAfter much testing and hair-pulling, we've confirmed two kernel settings \nthat should always be modified in production Linux systems. Especially \nnew ones with the completely fair scheduler (CFS) as opposed to the O(1) \nscheduler.\n\nIf you want to follow along, these are:...
[ { "msg_contents": "Hi Listers,\n\nwe migrated an oracle datawarehouse to postgresql 9.1 ( ppas 9.1.7.12 ) and are facing massive issues with response times in postgres when compared to the oracle system. Both database run on the same hardware and storage ( rhel5.8 64bit ).\n\nOracle memory parameters are:\nSGA=...
[ { "msg_contents": "Hi everybody,\n\nI have implemented my first app using PG DB and thought for a minute(may be\ntwo) that I know something about PG but below problem totally destroyed my\nconfidence :). Please help me to restore it.\n\nHere is simple join query. It runs just fine on MS SQL 2008 and uses\nall a...