threads
listlengths
1
275
[ { "msg_contents": "Centos 5.X kernel 2.6.18-274\npgsql-9.1 from pgdg-91-centos.repo\nrelatively small database 3.2Gb\nLot of insert, update, delete.\n\nI see non balanced _User_ usage on 14 CPU, exclusively assigned to the hardware raid controller.\nWhat I'm doing wrong, and is it possible somehow to fix?\n\nTh...
[ { "msg_contents": "Hi,\n\nUpdated information in this post.\n\nI have installed Postgresql 9.2.2 (complied by gcc) in FreeBSD 9.1 i386.\nThe pgsql base directory is in a ZFS dataset.\n\nI\n have noticed the performance is sub-optimal, but I know the default \nsetting should be the most safest one to be use (wit...
[ { "msg_contents": "Is there a way to force a WAL flush so that async commits (from other \nconnections) are flushed, short of actually updating a sacrificial row?\n\nWould be nice to do it without generating anything extra, even if it is \nsomething that causes IO in the checkpoint.\n\nAm I right to think that ...
[ { "msg_contents": "Hi!\n\nSmall query run on 9.0 very fast:\n\nSELECT * from sygma_arrear sar where sar.arrear_import_id = (\n select sa.arrear_import_id from sygma_arrear sa, arrear_import ai\n where sa.arrear_flag_id = 2\n AND sa.arrear_import_id = ai.id\n AND ai.import_type_id = 1...
[ { "msg_contents": "My best regards for all...\n\nPlease. I need for an advice.\nI'm having a trouble, that puting others queries in wait state, becouse \nof ExclusiveLock granted by an Update that only update one row at each \ntime. This update occurs into a function and this function are \nexecuted several ...
[ { "msg_contents": "My best regards for all...\n\nPlease. I need for an advice.\nI'm having a trouble, that puting others queries in wait state, becouse \nof ExclusiveLock granted by an Update that only update one row at each \ntime. This update occurs into a function and this function are \nexecuted several ...
[ { "msg_contents": "Hi All,\n\nInspired by Charles' thread and the work of Emmanuel [1], I have made some\nexperiments trying to create a trigger to make partitioning using C\nlanguage.\n\nThe first attempt was not good, I tried to use SPI [2] to create a query to\ninsert into the correct child table, but it too...
[ { "msg_contents": "Hi!\n\nI see a massive performance drop when writing a large transaction. I'm writing data for 33 tables with COPY FROM directly from streams in Scala/Java. Over all tables there are 2.2M records which are unevenly distributed from 1 record to 315k records in some tables.\n\nFor comparison I ...
[ { "msg_contents": "Hi,\n\nEvery month, I search in the mailing lists and in history of wiki page\nabout table partition for any news. But I don't see any moves to implement\nthis feature (aka transparent table partitioning).\nThe last update of wiki was 2011-08-12 !\n\nThis month, Satoshi made an extension (\nh...
[ { "msg_contents": "Hello,\n\nI'm running postgresl 9.0. After partitioning a big table, CPU usage raised\nfrom average 5-10% to average 70-80%.\n\n- the table contains about 20.000.000 rows\n- partitions are selected using a trigger, based on an indexed field, a\ndate (IF date_taken >= x AND date_taken < y)\n- ...
[ { "msg_contents": "Merlin Moncure wrote:\n\n>> I'm running postgresl 9.0. After partitioning a big table, CPU\n>> usage raised from average 5-10% to average 70-80%.\n\n> First thing that jumps to mind is you have some seq-scan heavy\n> plans that were not seq-scan before.\n\nMake sure that all indexes are defin...
[ { "msg_contents": "Greetings.\n\nI've been playing with a small query that I've been asked to optimize\nand noticed a strange (for me) effect.\nQuery uses this table:\n\n Table \"clc06_tiles\"\n Column | Type |\nModifiers\n------------+---------------------...
[ { "msg_contents": "AJ Weber wrote:\n\n> Is it possible that some spikes in IO could be attributable to\n> the autovacuum process? Is there a way to check this theory?\n\nTaking a look at the ps aux listing, pg_stat_activity, and pg_locks\nshould help establish a cause, or at least rule out a number of\npossibil...
[ { "msg_contents": "Hi,\n\nI am creating benchmark for postgresql database with tpc-w specification.\nI expect proper benchmark for postgresql with tpc-w specification.\n\npostgresql version:-\npsql (8.4.13, server 9.2.1)\n\ni installed postgresql using source code.\nport is 5432\nno other changes made to config...
[ { "msg_contents": "Hi,\n\nLast weekend, we upgrade a PG from 8.4 to 9.2 version (full \npg_dump/restore/vacuum/analyze). After this, some simple join querys\nbecame very slow, maybe because the use of nested loops. Bellow, an \nexample with nestedloop on and off:\n\nbase=# analyze verbose pc13t;\nINFO: analyzi...
[ { "msg_contents": "Hi All,\n\nI think this is not new topic, I try to look for discussions about same\nsubject I find something like\n\nhttp://postgresql.1045698.n5.nabble.com/libpq-or-postgresql-performance-td5723158.html\nhttp://www.postgresql.org/message-id/504DAC68.30005@wp.pl\n\nI will talk to you about my...
[ { "msg_contents": "If I drop and then recreate a trigger inside of a single transaction, how\ndoes it affect other processes trying to use the same table? Can they just\nmerrily go along their way using the table, or will they be blocked by an\nexclusive lock?\n\nWe have a trigger that detects illegal drugs an...
[ { "msg_contents": "So where I'm working, a performance issue was identified that affected many\nfunctions, because the (SQL language) functions took an int argument used\nit in a where clause against a column (config_id) that was stored in\nvarchar format, leading to an inefficient casting when the query was\np...
[ { "msg_contents": "Hi,\nI have read a lot of different information about the benefits of using numerical primary key vs alphanumerical primary key(small size). And what I am gathering is that for performance there is no more great advantage.\nIt seems like now RDBMS in general, postgres in particular handles pr...
[ { "msg_contents": "We upgraded from PG 9.1 to 9.2. Since the upgrade, the # of active queries has raised significantly, especially during our peak time where lots of users are logging in. According to New Relic, this query is now taking up the most amount of time during peak activity and my pg_stat_activity an...
[ { "msg_contents": "Server specs:\nDell R610\ndual E5645 hex-core 2.4GHz\n192GB RAM\nRAID 1: 2x400GB SSD (OS + WAL logs)\nRAID 10: 4x400GB SSD (/var/lib/pgsql)\n\n\n/etc/sysctl.conf:\nkernel.msgmnb = 65536\nkernel.msgmax = 65536\nkernel.shmmax = 68719476736\nkernel.shmall = 4294967296\nvm.overcommit_memory = 0\n...
[ { "msg_contents": "Hi,\n\nI have problems with the performance of FTS in a query like this:\n\n SELECT * FROM FullTextSearch WHERE content_tsv_gin @@\nplainto_tsquery('english', 'good');\n\nIt's slow (> 30 sec.) for some GB (27886 html files, originally 73 MB zipped).\nThe planner obviously always chooses tabl...
[ { "msg_contents": "This query http://pgsql.privatepaste.com/359bed8e9e gets executed every \n500 ms and normally completes really quickly \nhttp://explain.depesz.com/s/poVQ, but the more job_batches table \n(http://pgsql.privatepaste.com/eaf6d63fd2) gets used, the slower this \nquery gets, to the point where it...
[ { "msg_contents": "I was wondering if somebody could clear up how tablespaces are used.\nLet's say I have three classes of storage:\n- ramdisk (tmpfs)\n- SSD\n- spinning rust\n\nFurthermore, let's say I'd like to be able to tell postgresql to\nprefer them - in that order - until they each get full. IE, use tmpf...
[ { "msg_contents": "Start off, I'm new to postgres. I'm running Ubuntu 10.04.04 with postgres 9.1 on a VM with 32 GB of RAM.\n\nI'm trying to increase the response time on submitted queries. I'm comparing the same queries to a SQL Server instance with the same data sets.\n\nThe queries are used in our Analytic...
[ { "msg_contents": "I managed to optimize the query below, adding a subselect (is disabled) \nafter the \"where\" it would be correct?\n\nEXPLAIN (ANALYZE, BUFFERS) SELECT CONCAT_WS(' # ',\nCONCAT_WS(' ', produto.descricao, produto_watts.descricao, \nproduto_serie.descricao, produto_tecnologia.descricao, \nprodu...
[ { "msg_contents": "Hello,\n\nWe upgraded from Ubuntu 11.04 to Ubuntu 12.04 and almost immediately obeserved increased CPU usage and significantly higher load average on our database server.\nAt the time we were on Postgres 9.0.5. We decided to upgrade to Postgres 9.2 to see if that resolves the issue, but unfo...
[ { "msg_contents": "Hello,\n\ntweaking our connection pooler (*pgbouncer*) and *posgres 8.4 *seemed a bit\nconfusing to us.\n\nWhich key should i set for changing the limit of connection between *pgbouncer\n<->posgres8.4?*\n\ni think configurations such as *max_client_conn, default_pool_size, **\ndefault_pool_s...
[ { "msg_contents": "Hi everybody!\nI'm new in mailing list, and i have a little question.\n\n\nThe tables are:\npostalcodes (place_id, code), PK(place_id, code) 600K of rws\nplaces (id, name), PK(id), INDEX(name) 3M of rows\n\nI've to insert another 600k of rows into postalcodes table, in a single \ntransactio...
[ { "msg_contents": "My postgres db ran out of space. I have 27028 files in the pg_xlog\ndirectory. I'm unclear what happened this has been running flawless for\nyears. I do have archiving turned on and run an archive command every 10\nminutes.\n\nI'm not sure how to go about cleaning this up, I got the DB back u...
[ { "msg_contents": "Hello,\n\nI've been struggling to understand what's happening on my \ndatabases/query for several days, and I'm turning to higher mind for a \nlogical answer.\n\nI'm dealing with a fairly large database, containing logs informations, \nthat I crunch to get data out of it, with several indexes...
[ { "msg_contents": "Hi!\nI'm new to this mailinglist and I'm new to postgres as well. It is about\nour own backup software (java); we switched the DB from MySQL to\npostgres and we need some help.\nThe backup database holds all files from the server in the database. On\nmy testing platform there are about 40 mio...
[ { "msg_contents": "\nOn 2012-10-09 23:09:21\nTom Lane wrote:\n > \n\n\n> re subject Why am I getting great/terrible estimates with these CTE queries?\n > You're assuming the case where the estimate is better is better for a\n> reason ... but it's only better as a result of blind dumb luck.  The\n> outer-level q...
[ { "msg_contents": "Hi All,\n\nHope someone can help me a little bit here:\n\nI've got a query like the following:\n--\nselect Column1, Column2, Column3\nfrom Table1\nwhere exists (select 1 from Table2 where Table2.ForeignKey =\nTable1.PrimaryKey)\nor exists (select 1 from Table3 where Table3.ForeignKey = Table1...
[ { "msg_contents": "Hello,\n\nThe Query Plan for the query below shows a large number in its actual rows\ncount by an unknown reason. As a result Merge Join works on a large enough\ndata to slow down the query.\n\nThe table which I query has the following description:\n\n\n ...
[ { "msg_contents": "Hardware: IBM X3650 M3 (2 x Xeon X5680 6C 3.33GHz), 96GB RAM. IBM X3524\nwith RAID 10 ext4 (noatime,nodiratime,data=writeback,barrier=0) volumes for\npg_xlog / data / indexes.\n\nSoftware: SLES 11 SP2 3.0.58-0.6.2-default x86_64, PostgreSQL 9.0.4.\nmax_connections = 1500\nshared_buffers = 16G...
[ { "msg_contents": "(Sorry moderators for any double posts, I keep making subscription errors.\nHopefully this one gets through)\n \nHi speed freaks,\n\nCan anyone tell me why the bitmap heap scan takes so long to start for this\nquery? (SQL and EXPLAIN ANALYZE follows).\n\nThe big culprit in this appears to be:...
[ { "msg_contents": "I have a planner problem that looks like a bug, but I'm not familiar enough with how planner the works to say for sure.\n\nThis is my schema:\n\n create table comments (\n id serial primary key,\n conversation_id integer,\n created_at timestamp\n );\n create index comm...
[ { "msg_contents": "I'm trying to create a view that uses a window function, but it seems that\nPostgres is apparently unable to optimize it. Here's a reproduction of my\nsituation with 9.2.2:\n\n---\n\ndrop table if exists values cascade; create table values ( fkey1 integer\nnot null, fkey2 integer not null, fk...
[ { "msg_contents": "hello,\n\ni have a strange and reproducible bug with some select queries and 64bit \npostgresql builds (works fine on 32bit builds).\nThe postgres process will run with 100% cpu-load (no io-wait) and strace \nwill show endless lseek(..., SEEK_END) calls on one table for minutes.\nlseek(28, 0,...
[ { "msg_contents": "I got a problem with the performance of a PL/PGsql stored procedure \noutputting an xml.\n\n/Server version:/ PostgreSQL 8.3.6 on i686-pc-linux-gnu, compiled by GCC \ngcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)\n/CPU/: Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz\n/RAM installed:/ 4GB\n/Hard Disk:...
[ { "msg_contents": "The following query produces a Recheck Cond and a costly Bitmap Heap Scan\neven though I have a composite index that covers both columns being filtered\nand selected. I believe this is because the initial bitmap scan produces\n2912 rows, which is too many for the available bitmap space. I'v...
[ { "msg_contents": "I have a problem with a query that is planned wrong. This is my schema:\n\n create table comments (\n id serial primary key,\n conversation_id integer,\n created_at timestamp\n );\n create index comments_conversation_id_index on comments (conversation_id);\n create index c...
[ { "msg_contents": "Hi,\nSince our upgrade of hardware, OS and Postgres we experience server stalls under certain conditions, during that time (up to 2 minutes) all CPUs show 100% system time. All Postgres processes show BIND in top.\nUsually the server only has a load of < 0.5 (12 cores) with up to 30 connecti...
[ { "msg_contents": "Howdy, the query generator in my app sometimes creates redundant\nfilters of the form:\n\nproject_id IN ( <list of projects user has permission to see> ) AND\nproject_id = <single project user is looking at >\n\n... and this is leading to a bad estimate (and thus a bad plan) on a\nfew complex...
[ { "msg_contents": "I took some time to figure out a reasonable tuning for my fresh 9.2.3\ninstallation when I've noticed the following:\n\n[costin@fsr costin]$ /home/pgsql/bin/pgbench -h 192.1.1.2 -p 5432 -U\npostgres -i -s 1\n...\n100000 tuples done.\n...\nvacuum...done.\n[costin@fsr costin]$ /home/pgsql/bin/p...
[ { "msg_contents": "Dear all,\n\nI have a problem with seqscan I hope you might help me with.\nAttached is the simple script that reproduces a database and results, which I \nhave tested both on 9.0.4 and 9.3-devel with identical results.\n\nI need to have a sort of a time machine, where select statements on tab...
[ { "msg_contents": "Hi,\n\nDoes any one can tell me why the same query runs against on smaller data is\nslower than bigger table. thanks very much.\n\nI am using PostgreSQL9.1.8.\n\n*t_apps_1 and t_estimate_1 are about 300M respectively, while *_list_1\nabout 10M more or less. According to the result, it need to...
[ { "msg_contents": "I am currently looking at a performance issue where a subquery is \nexecuted even though I cannot see the result ever being asked for or \nused. Not even google has helped me find any information about this one. \nI have created a simple test case to demonstrate this.\n\nCREATE TABLE test1 (t...
[ { "msg_contents": "Recently I moved my ~600G / ~15K TPS database from a\n48 core@2.0GHz server with 512GB RAM on 15K RPM disk\nto a newer server with\n64 core@2.2Ghz server with 1T of RAM on 15K RPM disks\n\nThe move was from v9.1.4 to v9.1.8 (eventually also tested with v9.1.4 on\nthe new hardware) and was don...
[ { "msg_contents": "Hi, I'm going to setup a new server for my postgresql database, and I am considering one of these: http://www.hetzner.de/hosting/produkte_rootserver/poweredge-r720 with four SAS drives in a RAID 10 array. Has any of you any particular comments/pitfalls/etc. to mention on the setup? My applica...
[ { "msg_contents": "LSI MegaRAID SAS 9260-4i with four Intel SSDSC2CW240A3K5 SSDs OR four Hitachi Ultrastar 15K600 SAS drives?\n\nMy app is pretty write heavy and I have a lot of concurrent connections 300 - (though considering adding pgpool2 in front to increase throughput).\n\nRegards Niels Kristian\n\n-- \nSe...
[ { "msg_contents": "Good Afternoon,\n\nWe are having a performance issue with our views in PostgreSQL and based\non the requirements for assistance you recommend providing the full\ntable and index schema besides additional information from this site.\nhttps://wiki.postgresql.org/wiki/Slow_Query_Questions\n\nWe ...
[ { "msg_contents": "Hi,\n\nI'm running a rails app, where I have a model called Car that has_many Images. Now when I tell rails to include those images, when querying say 50 cars, then it often decides to use a SELECT * from images WHERE car_id IN (id1,id2,id3,id4…) instead of doing a join. \n\nNow either way it...
[ { "msg_contents": "I was hoping to just get a \"gut reaction\" on some pgbench numbers I have, to\nsee if I'm in the ballpark.\n\nOS: ScientificLinux 6.3, x86_64\nHardware: 4x real disks (not SSD) behind an LSI 9260 in raid10, Xeon E5-2680\nwith hyperthreading OFF, 128GB of RAM.\nSetup: postgresql 8.4.13, ext4...
[ { "msg_contents": "Hi all,\n\nI'm encountering very poor query plans when joining against a union,\nwhere one branch of the union is itself a join: specifically, Postgres\ndoes the entire inside join and then filters the result, rather than\npushing the filters down to the joined tables. I've provided a\nstand...
[ { "msg_contents": "Considering this list is where I first learned of the Intel 320 drives (AFAIK, the only non-enterprise SSDs that are power-failure safe), I thought I'd see if any of the folks here that tend to test new stuff have got their hands on these yet.\n\nI had no idea these drives were out (but they ...
[ { "msg_contents": "Hi,\n\nI upgraded our master database server from 9.2.2 to 9.2.3 on Monday. We\nhave been experiencing performance problems since then. Yesterday, our\napplication hit the connection limit 5 times. It causes approximately\n15 seconds of downtime. The database server hit 50 load average, then\...
[ { "msg_contents": "Greetings,\n\n\n\nI have a large table (~90 million rows) containing vessel positions. In\naddition to a column that contains the location information (the_geom), the\ntable also contains two columns that are used to uniquely identify the\nvessel (mmsi and name) and a column containing the Un...
[ { "msg_contents": "I have a very heavy OLTP application in the field.\n\nWe have two PostgreSQL databases (9.0.x)/FreeBSD 8.1/amd64 - one is a\nlistener which just stores data digests, the other is the actual\ndatabase.\n\nThe digests from the listener are processed by multi-threaded daemons\nand inserted into ...
[ { "msg_contents": "Hey everyone!\n\nA developer was complaining about a view he created to abstract an added \ncolumn in a left join. He was contemplating denormalizing the added \nvalue into the parent table and using a trigger to maintain it instead, \nand I obviously looked into the problem. I noticed the vi...
[ { "msg_contents": "Hi all,\n\nWe have one table with list of \"records for processing\"...\n\nWe loop trough that table and call one long runing function:\n\n do_the_math_for_record(record_id)\n\nwhich use different tables for select related rows for input record_id, do\nsome calculations and insert results in ...
[ { "msg_contents": "I'm considering the following setup:\n\n- Master server with battery back raid controller with 4 SAS disks in a RAID 0 - so NO mirroring here, due to max performance requirements.\n- Slave server setup with streaming replication on 4 HDD's in RAID 10. The setup will be done with synchronous_c...
[ { "msg_contents": "I have a server with 32GB ram, one intel E3-1245 and four 15k SAS disks with a BB LSI MegaRaid controller. I wan't the optimal performance for my server, which will be pretty write heavy at times, and less optimized for redundancy, as my data is not very crucial and I will be running a stream...
[ { "msg_contents": "Hi,\n\n \n\nI have PostgreSQL 9.0.12 on Windows. \n\n \n\nI have some simple function:\n\n \n\nCREATE OR REPLACE FUNCTION sfunction() RETURNS BOOL AS\n\n$BODY$\n\nDECLARE\n\nq TEXT;\n\nr RECORD;\n\nBEGIN\n\n q='SELECT 1 from tb_klient LIMIT 0';\n\n \n\n FOR r IN EXECUTE q\n\n LOOP\n\n END...
[ { "msg_contents": "Hi Experts,\n\nI found if we join the master table with other small table, then the\nrunning time is slow. While, if we join each child table with the small\ntable, then it's very fast. Any comments and suggestions are greatly\nappreciated.\n\n*For example, par_list table is small(about 50k r...
[ { "msg_contents": "Does it make sense to pre-sort COPY FROM input to produce long runs of\nincreasing values of an indexed column, or does PostgreSQL perform\nthis optimization on its own?\n\n\n-- \nSent via pgsql-performance mailing list (pgsql-performance@postgresql.org)\nTo make changes to your subscription:...
[ { "msg_contents": "After installing my new server I just discovered something that doesn't seem right:\n\nsudo du -h /var/lib/postgresql/9.2/main\n\n4.0K\t/var/lib/postgresql/9.2/main/pg_snapshots\n4.0K\t/var/lib/postgresql/9.2/main/pg_serial\n4.0K\t/var/lib/postgresql/9.2/main/pg_tblspc\n29M\t/var/lib/postgres...
[ { "msg_contents": "Hi guys, I am worried about the effective_cache_size.\nI run a 32-bits postgres installation on a machine with 64 bits kernel.\nShould I limit effective_cache_size to a maximum of 2.5gb?\n\nHi guys, I am worried about the effective_cache_size.I run a 32-bits postgres installation on a machine...
[ { "msg_contents": "Folks,\n\nI just noticed that if I use a tstzrange for convenience, a standard\nbtree index on a timestamp won't get used for it. Example:\n\ntable a (\n\tid int,\n\tval text,\n\tts timestamptz\n);\nindex a_ts on a(ts);\n\nSELECT * FROM a WHERE ts <@ tstzrange('2013-01-01','2013-01-01 00:10:...
[ { "msg_contents": "I have two tables in Postgres 9.2 on a Linux server with 8GB of RAM. The\nfirst table has 60 million records:\n\nCREATE TABLE table1\n(\n id integer,\n update date,\n company character(35),\n address character(35),\n city character(20),\n state character(2),\n zip character(9),\n pho...
[ { "msg_contents": "HI,\n\nI have a wierd problem with PostgreSQL planner...\n\nProblem showed up in Production on PG9.1 (Ubuntu)\n\nBut I have succeeded to get the same behavior on my PG 9.2 on Windows...\n\nit is about 3 tables & onad one view - but view have volatile function:\n\n\nCREATE TABLE t1\n(\n calc_...
[ { "msg_contents": "Hi,\n\nI recently upgraded PostgreSQL from 9.0.12 to 9.2.3 on a test server to compare performance. I'm using pgbench to measure which results in around a 60% reduction. \n\nThe non-default configuration remains identical between versions except archive_command (different location) and custom...
[ { "msg_contents": "Hi all,\n\nI'm looking at this query plan, an excerpt of which is shown here, and I am\njust wondering how the estimated cost for the Nested Loop is calculated?\n\n-> Nested Loop (*cost=0.00..2888.16* rows=240 width=16) (actual\ntime=0.034..2.180 rows=91 loops=1)\n Output: public.mg.lc...
[ { "msg_contents": "(following the interest from -hackers, I'm posting this here). \n\nHi folks, \n\nI've always been fascinated with genetic algorithms. Having had a chance to implement it once before, to solve real life issue - I knew they can be brilliant at searching for right solutions in multi dimensional ...
[ { "msg_contents": "Folks,\n\nIn the past, setting vacuum_freeze_min_age (vfma) really low (say to\n10000 or 50000) would have caused lots of extra writing work due to\ndirtying extra pages for freezing. This has been our stated reason to\nkeep vfma high, despite the obvious advantage of freezing tuples while\n...
[ { "msg_contents": "Hi all,\n\nJust to let the community know that probably Linux kernel 3.10\nwill include some work to make sysv semaphore code more scalable.\nSince Postgres use this kernel features I've thought to post it\nhere just for the sake of sharing a good news:\n\nThe thread where Rik van Riel posts ...
[ { "msg_contents": "Hi all,\n\nCurrently, I'm working on a performance issue with a query which takes\naround ~30 sec to complete. This happens only, when there are more\nactivity going around same table. The same query completes with in a\nsecond when there are no activity on that table.\n\nTried taking EXPLAIN...
[ { "msg_contents": "Greetings,\n\nWe've been using postgreSQL for a few years. This is my first post here\nand first real dive into query plans.\n\n\nA description of what you are trying to achieve and what results you expect.:\n Query results of nested joins of table. Results are correct - just\ntakes a long...
[ { "msg_contents": "Hi all,\n\n When I use postgres and issue a simple sequential scan for a table\ninventory using query \"select * from inventory;\", I can see from \"top\" that\npostmaster is using 100% CPU, which limits the query execution time. My\nquestion is that, why CPU is the bottleneck here and what...
[ { "msg_contents": "Hi,\n\nI have a postgresql database (8.4) running in production whose \nperformance is degrading.\nThere is no single query that underperforms, all queries do.\nAnother interesting point is that a generic performance test \n(https://launchpad.net/tpc-b) gives mediocre peformance when run on t...
[ { "msg_contents": "[Apologies, I first sent this to the incorrect list, postgres-admin, in the\nevent you receive it twice]\n\nHi there,\n\nI'm hoping someone on the list can shed some light on an issue I'm having\nwith our Postgresql cluster. I'm literally tearing out my hair and don't\nhave a deep enough unde...
[ { "msg_contents": "So It was announced that there would be a security patch for all versions\nreleased on the 4th. I see it's been announced/released on the website, but\nthe versions available show Feb dates.\n\nShould the source be current? Or does it take a while for source and other\nto be made available?\n...
[ { "msg_contents": "Hi everybody,\n\nin a project I have a performance problem, which I (and my colleagues) don't understand. It's a simple join between 2 of 3 tables:\n\ntable-1: user (id, user_name, ...). This table has about 1 million rows (999673 rows)\ntable-2: competition (57 rows)\ntable-3: user...
[ { "msg_contents": "Why is the following query getting wrong estimation of rows?\nI am using Postgresql 9.2.1 with default_statistics_target = 100.\nI execute vacuum analyze each night.\n\n explain analyze\nSELECT\nentity.id AS \"Leads_id\", entity.type AS \"Leads_type\" ,\nleads.firstname AS \"Leads_firstname\"...
[ { "msg_contents": "Hi,\n\nI have query that should be quick, and used to be quick, but is not \nanymore... Explain analyze can be seen here http://explain.depesz.com/s/cpV\nbut it is fundamentaly quick : Total runtime: 0.545 ms.\n\nBut query execution takes 3.6 seconds. Only 12 rows are returned. Adding \na lim...
[ { "msg_contents": "Hi All,\n\nHoping someone can help me out with some performance issues I'm having with\nthe INDEX on my database. I've got a database that has a data table\ncontaining ~55,000,000 rows which have point data and an area table\ncontaining ~3,500 rows which have polygon data. A user queries the ...
[ { "msg_contents": "On 9.2.4, running two identical queries except for the value of a column in\nthe WHERE clause. Postgres is picking very different query plans, the first\nis much slower than the second.\n\nAny ideas on how I can speed this up? I have btree indexes for all the\ncolumns used in the query.\n\ne...
[ { "msg_contents": "Hi,\n\nCould someone tell m how to measure postgres memory usage.\nIs there a pg_* view to measure?\n\nThank you\nNikT\n\nHi,Could someone tell m how to measure postgres memory usage.Is there a pg_* view to measure?Thank youNikT", "msg_date": "Sat, 6 Apr 2013 21:59:16 -0700", "msg_fro...
[ { "msg_contents": "I'm encountering an issue where PG 9.2.4 (we also see this with 9.2.3) \nis picking a plan involving a bitmap heap scan that turns out to be much \nslower than a nested-loop plan using indexes.\n\nThe planner picks the hashjoin plan by default (see attached files)\n\nBitmap Heap Scan on publi...
[ { "msg_contents": "Afternoon\n\nSo I just realized I've been just reimporting me Postgres configs from one\nversion to the next, since they were initially customized for my setup.\n\nMaybe from 7.x... And now on 9.2.4\n\nIs there an easy/clean way to adapt my old config file to the new stuff,\nI'm not sure what...
[ { "msg_contents": "Hi,\n\nCould some please explain what these warnings mean in postgres.\nI see these messages a lot when automatic vacuum runs.\n\n 1 tm:2013-04-10 11:39:20.074 UTC db: pid:13766 LOG: automatic vacuum\nof table \"DB1.nic.pvxt\": could not (re)acquire exclusive lock for truncate\nscan\n ...
[ { "msg_contents": "I've configured 2 table like this\n\nCREATE TABLE \"public\".\"User_Statement_Pivot\" (\n\"Email\" varchar(50),\n\"UserId\" varchar(50),\n\"ShortId\" varchar(50),\n\"LastDirectJobMailSentDateTime\" int8,\n\"What\" varchar(4096),\n\"Where\" varchar(4096)\n)\nWITH (OIDS=FALSE)\n;\n\nALTER TABLE...
[ { "msg_contents": "All,\n\nWe have performance issue in Psql8.3 vacuum run. The CPU usage going 300+ and application getting slow. How do we avoid high cpu and smooth vacuum tables.\n\nThanks in advance\nPalani\n\n\n-- \nSent via pgsql-performance mailing list (pgsql-performance@postgresql.org)\nTo make chang...
[ { "msg_contents": "Our server is running postgresql 8.4.15. During day time the cpu usage always\naround 80%, but it's not IO bound. The swap space is looking OK also. Also\nwe setup pgbadger and enable all logs to monitor the slow query but they all\nfinished quick. Usually it has 60 incoming connections, and ...
[ { "msg_contents": "Hi guys.\nI compiled my postrges server (9.1.4) with default segment size (16MB).\nShould it be enough? Should I increase this size in compilation?\n\nHi guys.I compiled my postrges server (9.1.4) with default segment size (16MB).Should it be enough? Should I increase this size in compilation...
[ { "msg_contents": "Hi,\n\n(I have put the contents of this email at http://pastebin.com/6h49zrYE\nfor better readibility)\n\nI have been circling around the following problem for a few hours and\nI am wondering if anyone has any suggestions about why the the second\nquery is taking so much longer than the first...
[ { "msg_contents": "Hi,\n\nWhat is the recommended swap space for postgres or 9.0.11 or 9.2.3 on\nlinux(3.0.58-0.6)\nRAM on the hox is 32GB.\n\nThank you\nNik\n\nHi,What is the recommended swap space for postgres or 9.0.11 or 9.2.3 on linux(3.0.58-0.6)RAM on the hox is 32GB.Thank you\nNik", "msg_date": "Fri,...
[ { "msg_contents": "Hi guys.\nI read in some forums that this parameter is better to set it to something\nlike 0.7.\nMine is default (0.5) and sometime it logs the message:\nWARNING: pgstat wait timeout\n\nCould there be any relation between this parameter and the warning message?\nIs it safe to set it to 0.7?\...
[ { "msg_contents": "I was investigating some performance issues and stumbled upon this behavior:\n\ncreate table main_table (i serial primary key, data varchar, ord int);\ncreate view main_view_order as select m.i, m.data, m.ord from main_table m order by m.i desc;\n\ninsert into main_table select i, i::text, i/...