threads
listlengths
1
275
[ { "msg_contents": "Dear list\n\nI am experiencing a rather severe degradation of insert performance\nstarting from an empty database:\n\n\n\t 120.000 mio SNPs imported in 28.9 sec - 4.16 mio/sec\n\t 120.000 mio SNPs imported in 40.9 sec - 2.93 mio/sec\n\t 120.000 mio SNPs imported in 49.7 s...
[ { "msg_contents": "Hi all. I am occasionally seeing really slow update/inserts into a fairly\nlarge table. By really slow I mean around 10-40 seconds,\nwhile the majority of queries take milliseconds. I cannot reproduce this\nproblem myself, but it is occurring multiple times a day\n(maybe 30 times).\n\nSystem ...
[ { "msg_contents": "Please how long does it take approximately to restore a 300 Go database using\npg_restore ? Are there benchmarks for that ?\n\n\n\n--\nView this message in context: http://postgresql.nabble.com/dump-restoration-performance-tp5867370.html\nSent from the PostgreSQL - performance mailing list ar...
[ { "msg_contents": "How do we measure queries per second (QPS), not transactions per second, in\nPostgreSQL without turning on full logging which has a performance penalty\nand can soak up lots of disk space?\n\nWe are using 8.4, but I'm interested in any version as well.\n\nThank you,\nAdam C. Scott\n\nHow do w...
[ { "msg_contents": "I previously posted about par_psql, but I recently found another PG parallelism project which can do a few extra things that par_psql can’t: \r\n\r\nhttps://github.com/moat/pmpp\r\npmpp: Poor Man's Parallel Processing. \r\n\r\nCorey Huinker had the idea of using dblink async as a foundation f...
[ { "msg_contents": "Hi,\n\nWe have got big slow down on our production plateform (PG 9.4.4).\n\nAfter analyzing wals with pg_xlogdump, we see lot of writing in Gin Indexes.\n\nWe suspect slow down are related to the write of pending update on the\nindex.\n\nSo, is there any method to see\n- what is the current c...
[ { "msg_contents": "I am working in a public company who uses only open source applications and\ndatabases.I have a problem with our critical database which is write and\nread intensive.*version:* Postgresql-9.4*Hardware:* HP DL980 (8-processor,\n80 cores w/o hyper threading, 512GB RAM)*Operating system: *Red Ha...
[ { "msg_contents": "I have configured postgresql.conf with parameters as below:\n\nlog_destination = 'stderr'\nlogging_collector = on\nlog_directory = 'pg_log'\nlisten_addresses = '*'\nlog_destination = 'stderr'\nlogging_collector = on\nlog_directory = 'pg_log'\nlog_rotation_age = 1d\nlog_rotation_size = 1024MB\...
[ { "msg_contents": "We have a system which is constantly importing flat file data feeds into\nnormalized tables in a DB warehouse over 10-20 connections. Each data feed\nrow results in a single transaction of multiple single row writes to\nmultiple normalized tables.\n\n \n\nThe more columns in the feed row, the...
[ { "msg_contents": "Response from you all are very precious.\n\n@Merlin,\nI'm misunderstood the question.\nYes, I didn't measure it. I only monitor RAM and CPU using htop (I also use\nnmon for disk IO, iftop for the network utilization).\nDid 1 connection need 1 core dedicatedly?\n(I was having 40-80 connections...
[ { "msg_contents": "Hi,\n\nI use postgresql often but I'm not very familiar with how it works internal.\n\nI've made a small script to backup files from different computers to a \npostgresql database.\nSort of a versioning networked backup system.\nIt works with large objects (oid in table, linked to large objec...
[ { "msg_contents": "Hail there,\n\nShort question:\nWhy would pg optimizer choose a worst (slower) query plan for a\nquery with 'LIMIT 1' instead of, say, 'LIMIT 3'?\n\nComplete scenario:\nQuery: 'SELECT * FROM a WHERE a.b_id = 42 ORDER BY created LIMIT 1'\n- b_id is a FK to b;\n- created is a datetime with the ...
[ { "msg_contents": "Hi there,\n\nIf it's possible, I would really appreciate any hints or help on an issue\nI've been facing lately.\nI'm running two instance of Postgres locally: 9.4.4 (operational db) and\n9.5beta1 (analytical db). I've already imported schema to analytical db and\nwhile doing the following qu...
[ { "msg_contents": "Hi guys,\n\nI've been doing some design investigation and ran into an interesting snag\nI didn't expect to find on 9.4 (and earlier). I wrote a quick python script\nto fork multiple simultaneous COPY commands to several separate tables and\nfound that performance apparently degrades based on ...
[ { "msg_contents": "https://medium.com/@c2c/nodejs-a-quick-optimization-advice-7353b820c92e\r\n\r\n100% performance boost, for mysterious reasons that may be worth knowing about… \r\n\r\nGraeme Bell\n-- \nSent via pgsql-performance mailing list (pgsql-performance@postgresql.org)\nTo make changes to your subscrip...
[ { "msg_contents": "I have a very complex SELECT for which I use PREPARE and then EXECUTE.\nThe first five times I run \"explain (analyze, buffers) execute ...\" in\npsql, it takes about 1s. Starting with the sixth execution, the plan\nchanges and execution time doubles or more. The slower plan is used from\nthe...
[ { "msg_contents": "I have about 900 partitioned tables with 67 millons rows.\nAnd I found that my query takes too much time!\n------------------------------------------------------------------------------\nexplain ( ANALYZE,VERBOSE,BUFFERS )\n select report_id from cars.\"all\"\n WHERE\n report_dateti...
[ { "msg_contents": "Version:\n-----------------------------------------------------------------------------------------------\nPostgreSQL 9.1.14 on x86_64-unknown-linux-gnu, compiled by gcc (Debian 4.7.2-5) 4.7.2, 64-bit\n\nQuery Plan\nhttp://explain.depesz.com/s/4s37\n\nNormally, this query takes around 200-300...
[ { "msg_contents": "Hi,\n\nWondering if anyone could suggest how we could improve the performance of\nthis type of query?\nThe intensive part is the summing of integer arrays as far as I can see.\nWe're thinking there's not much we can do to improve performance apart from\nthrow more CPU at it... would love to b...
[ { "msg_contents": "Hi all,\n\nWe have a slow query. After analyzing, the planner decision seems to be\ndiscutable : the query is faster when disabling seqscan. See below the two\nquery plan, and an extract from pg_stats.\n\nAny idea about what to change to help the planner ?\n\nAn information which can be usefu...
[ { "msg_contents": "I have partitioned a large table in my PG database (6.7 billion rows!) by a date column and in general constraint exclusion works well but only in relatively simple case when the partition key is specified exactly as created in the CHECK constraint. I'm curious if there is a way to get it to...
[ { "msg_contents": "Has PostgreSQL 9.4 official Support on a system with more than 64 legitimate cores? ( 72 Cores , 4 CPUs Intel(R) Xeon(R) CPU E7-8890 )\n\n\nThe work Robert Haas did to fix the CPU locking way back when showed \nsignificant improvements up to 64, but so far as I know.\n\nThanks in Advance.\...
[ { "msg_contents": "This related to a post in the general bugs forum, but I found this forum,\nand\n this seems more appropriate. This is my second attempt to post, I believe\nthe first attempt last week did not work, apologies if I'm duplicating.\n\nhttp://comments.gmane.org/gmane.comp.db.postgresql.bugs/39011...
[ { "msg_contents": "I have a table with roughly 300 000 rows, each row containing two large\nstrings - one is news article HTML, the other is news article plaintext.\nThe table has a bigint primary key.\n\nA GIN index is used to do fulltext search on the plaintext part. All I want\nto retrieve when I do fulltext...
[ { "msg_contents": "Hello,\n\nI´ve got a table custom_data which essentially contains a number of key/value pairs. This table holds a large number (about 40M) of records and I need the distinct keys and values for some reasons. Selecting those distinct data takes a couple of seconds, so I decided to maintain a s...
[ { "msg_contents": "Hi all,\n\nIf I install the PostgreSQL on Linux (Debian),\nHow much the limit of max_connections that PostgreSQL can take?\nHow much the limit of max_prepared_transactions that PostgreSQL can take?\nHow much the limit of max_files_per_process that PostgreSQL can take?\n\n\nRegards,\nFattah\n-...
[ { "msg_contents": "Hi all.\n\nIs the speed of hash operations stands on the performance of CPU?\nBelow you can see part from output of explain analyze command\n\n*Intel(R) Xeon(R) CPU E7520 @ 1.87GHz*\n\" -> Hash (cost=337389.43..337389.43 rows=3224443 width=34)\n(actual time=15046.382...
[ { "msg_contents": "I noticed that querying for\n product_attributes @> '{\"upsell\":[\"true\"]}'\nis much slower than querying for\n product_attributes @> '{\"upsell\": 1}'\n\nIs that expected? I have a gin index on product_attributes. I'm using 9.4.1.\n\nexplain analyze\nselect count(*) from products where...
[ { "msg_contents": "We're hoping to get some suggestions as to improving the performance of a 3\ntable join we're carrying out.\n(I've stripped out some schema info to try to keep this post from getting\ntoo convoluted - if something doesn't make sense it maybe I've erroneously\ntaken out something significant)\...
[ { "msg_contents": "Hi,\n\nWe using Postgres 9.3.10 on Amazon RDS and running into some strange\nbehavior that has been tough to track down and debug (partially due to the\nlimited admin access from RDS).\n\nWe're running a read-only query that normally takes ~10-15 min., but also\nruns concurrently with several...
[ { "msg_contents": "We're using postgres 9.2.5. Every couple of days we'll have a query get\ncancelled and it is always at the start of one of our custom procedures.\nThe query is typically part of a php loop that runs in less than a second,\nhowever when the issue occurs, that pass through the loop takes multip...
[ { "msg_contents": "Postgresql version 9.4.4.\nI'm having an issue. The query never ends:\n\ndelete from bb_gamelist_league;\n\nNo WHERE clause used. There are approx. 227000 rows in that table.\n\nHere is the table itself:\nCREATE TABLE bb_gamelist_league (\n id SERIAL NOT NULL ,\n bb_league_id INTEGER NOT...
[ { "msg_contents": "Hello,\n\nI stumbled over this answer: http://stackoverflow.com/a/9717125/330315 and this sounded quite strange to me. \n\nSo I ran this on my Windows laptop with Postgres 9.4.5, 64bit and indeed now()::date is much faster than current_date:\n\n explain analyze\n select current_date\n from...
[ { "msg_contents": "I have a query that produce a different query plan if I put a trim in one\nof the columns in the order by.\n\n\nWhen i put the trim in any column it use hashaggregate and took 3 seconds\nagainst 30 when not.\n\n\nIs wear because the columns is clean not need to be trimmed, I have check\nthat....
[ { "msg_contents": "Hey all,\n\nI have an attachment table in my database which stores a file in a bytea\ncolumn, the file name, and the size of the file.\n\nSchema:\nCREATE TABLE attachment\n(\n attachment_id uuid NOT NULL DEFAULT gen_random_uuid(),\n attachment_name character varying NOT NULL,\n attachment_...
[ { "msg_contents": "Hi All,\n\nUsing pg 9.4.5 I'm looking at a table set up by a 3rd party application and trying to figure out why a particular index is being chosen over another for updates/deletes.\n\n From what I can see the reason is that plans using either index have the same exactly the same cost. So rat...
[ { "msg_contents": "Hello,\n\nWe're in the process of designing the database for a new service, and \nsome of our tables are going to be using UUID primary key columns.\n\nWe're trying to decide between:\n\n* UUIDv1 (timestamp/MAC uuid) and\n\n* UUIDv4 (random uuid)\n\nAnd the separate but related choice between...
[ { "msg_contents": "Just trying to figure something out.\n\n9.3.4, CentOS6.5\n256GB Ram\n\nMaintenance_work_mem = 125GB\nEffective_Cache = 65GB\n\nI have 2 indexes running, started at the same time, they are not small and\none will take 7 hours to complete.\n\nI see almost zero disk access, very minor, not what ...
[ { "msg_contents": "9.3.4 CentOS 256Gb system\n\n total_checkpoints | minutes_between_checkpoints\n\n-------------------+-----------------------------\n\n 109943 | 0.0274886580556895\n\n\nI've just bumped then to 150.\n\n\n# - Checkpoints -\n\ncheckpoint_segments = 150\n\ncheckpoint_timeout =...
[ { "msg_contents": "Guys I m trying to upgrade postgresql 9.3 -> 9.4\r\n\r\nOS VERSION : CentOS release 6.3 (Final) (2.6.32-279.el6.x86_64.x86_64)\r\n\r\n\r\nWhen I run the upgrade script /usr/pgsql-9.4/bin/pg_upgrade\r\n\r\nIt gives me this error in the log file.\r\n\r\n\r\npg_restore: creating VIEW tables\r...
[ { "msg_contents": "Hi Folks,\n\nI am a newbie to this mailing list. Tried searching the forum but didn't\nfind something similar to the problem I am facing. \n\nBackground:\nI have a Rails app with Postgres db. For certain reports, I have to join\nmultiple tables. However, certain join queries are dog slow and ...
[ { "msg_contents": "Hello,\n\nI would like to know how row estimation is calculed by explain ?\nIn my execution plan, this estimation is extremely wrong (267 instead of\n198000)\nI reproduced this estimation error in this simple case :\n\ndrop table if exists t1;\ndrop table if exists t2;\ndrop table if exists t...
[ { "msg_contents": "I'm using PostgreSQL 9.5 Beta 2.\n\nI am working with a partitioned table set.\n\nThe first thing I noticed, when creating indexes on the 20 or so\npartitions, was that if I create them too fast they don't all succeed. I\nhave to do a few at a time, let them breathe for a few seconds, and th...
[ { "msg_contents": "Hello all, I hope someone can help me with this.\n\nPostgres 9.4.4\nSlon 2.2.4\nLinux\n\nI am using slony-i to replicate a production database which is in the \norder of 70GB. I have a reasonably complex select query that runs in 40 \nseconds on the master but takes in the region of 30-40 min...
[ { "msg_contents": "I have a really busy function that I need to optimize the best way I can.\nThis function is just a nested select statement that is requested several\ntimes a sec by a legacy application. I'm running a PostgreSQL 9.4 on a\nCentOS 6;\n\nThe indexes are in place but I've noticed that it is only ...
[ { "msg_contents": "Hi,\n I hope you can help me understand why the db is so big and if there's\nanything I can do.\nIt's the DB of an Enterprise Content Management application, Alfresco. Here\nare some data I collected, after executing a vaccum from pg admin.\n\nA) Largest tables sizes relation total_size\n...
[ { "msg_contents": "Hi all,\n\nI have an application that runs in production in multiple instances, and \non one of these the performance of certain queries suddenly became truly \nabysmal. I basically know why, but I would much appreciate if I could \nobtain a deeper understanding of the selectivity function in...
[ { "msg_contents": "Hey all, first off, Postgres version 9.4.4 (also tested on 9.5 beta).\n\nI have been having a pretty hard time getting a view of mine to play nice\nwith any other queries I need it for.\n\nI have a few tables you'd need to know about to understand why i'm doing\nwhat i'm doing.\n\nFirst thing...
[ { "msg_contents": "Hi.\n\nI've noticed huge decrease in performance.\nDuring this in htop i see a lot (200 - 300) of connections in state\n\"startup\", each of them eats 3-3% of CPU time. This processes are not\nvisible in pg_stat_activity so i cant understand what they are doing, and i\ncant kill them. I cant ...
[ { "msg_contents": "Hi,\n\nI moved a DB between two \"somewhat\" similar Postgres installs and am\ngetting much worse plans on the second. The DB was dumped via pg_dump\n(keeping indexes, etc.) and loaded to the new server.\n\nThe first (installed via emerge):\n\nselect version();\n PostgreSQL 9.4rc1 on x86_64-p...
[ { "msg_contents": "I've recently been doing some performance testing with unlogged tables \nvs logged tables on 9.5-rc1. Basically we're trying to do big loads of \ndata into the database periodically. If on the very rare occasion the \nserver crashes half way through the import it's no big deal so I've been \n...
[ { "msg_contents": "Hello,\n\nI'm having trouble with the performance from a query used to create a\nmaterialized view.\n\nI need to be able to build the keyword_performance_flat_matview view in\naround 2-4 hours overnight. However, it currently takes in excess of 24\nhours. I'm wondering if there is anything I ...
[ { "msg_contents": "Hi all,\r\n\r\nI’m trying to track down why some queries on my database system are intermittently much slower than usual. I have some queries that run, on average, 2-3ms, and they run at a rate of about 10-20 queries/second. However, every 3-5 seconds, one of the queries will be 500-100ms. ...
[ { "msg_contents": "Hi,\n\nI ask your help to solve a slow query which is taking more than 14 \nseconds to be executed.\nMaybe I am asking too much both from you and specially from postgresql, \nas it is really huge, envolving 16 tables.\n\nExplain:\nhttp://explain.depesz.com/s/XII9\n\nSchema:\nhttp://adj.com.br...
[ { "msg_contents": "Hi all, I just wrote an article about the postgres performance \noptimizations I've been working on recently especially compared to our \nold MongoDB platform\n\nhttps://mark.zealey.org/2016/01/08/how-we-tweaked-postgres-upsert-performance-to-be-2-3-faster-than-mongodb\n\n\n-- \nSent via pgsq...
[ { "msg_contents": "Hi All,\n\nThe database is postgresql 9.3, running on debian7, with 8 cpu cores and\n8096MB physical memory.\n\n\nThere is a big table, with 70 more columns. It would be constantly at 700\nrows/sec. It's not feasible to use COPY, because the data is not predefined\nor provisioned, and it's ge...
[ { "msg_contents": "Hey all, i've run into a performance problem with one of my queries that I\nam really not sure what is causing it.\n\nSetup info:\nPostgres version 9.4.4 on Debian 7. Server is virtual, with a single core\nand 512 ram available and ssd storage.\n\nChanges to postgresql.conf:\nmaintenance_work...
[ { "msg_contents": "I am running Postgresql on a Windows Server 2008 server. I have noticed\nthat queries have very high planning times now and then. Planning times go\ndown for the same query immediately after the query runs the first time,\nbut then go up again after if the query is not re-run for 5 minutes or...
[ { "msg_contents": "Hi all,\n\nI'm using PostgreSQL 9.4.5 and I have a weird issue.\n\nI have the following three tables:\n\nvisit\n( nb bigint NOT NULL,\n CONSTRAINT visit_pkey PRIMARY KEY (nb)\n)\nwith ~ 750'000 rows\n\ninvoice\n( id bigint NOT NULL,\n CONSTRAINT invoice_pkey PRIMARY KEY (id)\n)\nwith ~ 3'00...
[ { "msg_contents": "Hi I have a master table and the inherited tables broken up by month.\n\n/e.g. CONSTRAINT transactions_january_log_date_check CHECK\n(date_part('month'::text, log_date) = 1::double precision);/\n\n So transactions_master is the master table, and then transactions_january,\ntransactions_februa...
[ { "msg_contents": "in postgres 9.5.0 i have partitioned table, that collect data by months, i tried to use new postgres feature foreign table inheritance & pushed one month of data to another postgres server, so i got foreign table. when i am running my query from my primary server, query takes 7x more time to ...
[ { "msg_contents": "I have a query that runs *slower* if I increase work_mem.\r\n\r\nThe execution plans are identical in both cases, except that a temp file\r\nis used when work_mem is smaller.\r\n\r\nThe relevant lines of EXPLAIN ANALYZE output are:\r\n\r\nWith work_mem='100MB':\r\n-> Hash Join (cost=46738.7...
[ { "msg_contents": "The jsonb_agg function seems to have significantly worse performance\nthan its json_agg counterpart:\n\n=> explain analyze select pa.product_id, jsonb_agg(attributes) from\nproduct_attributes2 pa group by pa.product_id;\n                                                             \nQUERY PLA...
[ { "msg_contents": "Dear all,\nFirst of all, I should apologize if my email doesn't follow all the guidelines.\nI'm trying to do that though!\n\nIf referencing to links is OK, you can find the full description of\nthe issue at:\nhttp://dba.stackexchange.com/questions/127082/postgresql-seems-to-create-inefficient...
[ { "msg_contents": "Hi all,\n\nI have a recursive part in my database logic that I want to isolate and\nreuse as a view. I had found a blog that explained how move a function\nparameter into a view. The SQL is in attachment.\nWhen I write a query based on that view with a fixed value (or values) for\nthe (input)...
[ { "msg_contents": "Hi,\n\nI'm trying to understand how to estimate and minimize memory\nconsumption of ANALYZE operations on \"big\" tsvector columns.\n\nContext:\n\nPostgresql server is 9.1.19 (Ubuntu package 9.1.19-0ubuntu0.12.04).\n\nI have a database on which I noticed that autovacuum operations could\ncons...
[ { "msg_contents": "Hello all,\n\n\nI've been trying to get a query use indexes and it has raised a doubt \nwhether pgsql supports bitmap and-ing between a multi-column btree index \nand a gin index.\n\nThe idea is to do a full-text search on a tsvector that is indexed with \ngin. Then there are typical extra fi...
[ { "msg_contents": "Hi.\n\nA table has a trigger.\nThe trigger sends a NOTIFY.\n\nTest with COPY FROM shows non-linear correlation between number of inserted\nrows and COPY duration.\n\n Table \"test.tab\"\n Column | Type | Modifiers\n---------+---------+----...
[ { "msg_contents": "http://explain.depesz.com/s/wKv7\nPostgres Version 9.3.10 (Linux)\n\nHello,\nthis is a large daily table that only get bulk inserts (200-400 /days) with no update.\nAfter rebuilding the whole table, the Bitmap Index Scan on r_20160204_ix_toprid falls under 1 second (from 800)\n\nFastupdate is...
[ { "msg_contents": "Hi,\r\n\r\nQuestion:\r\n\r\nWhat may cause a primary key index to suddenly become very slow? Index scan for single row taking 2-3 seconds. A manual vacuum resolved the problem.\r\n\r\n\r\nBackground:\r\n\r\nWe have a simple table ‘KONTO’ with about 600k rows.\r\n\r\n\r\n Column ...
[ { "msg_contents": "I have a wee database server which regularly tries to insert 1.5 million or even 15 million new rows into a 400 million row table. Sometimes these inserts take hours.\n\nThe actual query to produces the join is fast. It's the insert which is slow.\n\nINSERT INTO File (FileIndex, JobId, Path...
[ { "msg_contents": "Hi everyone,\n I have a question that I hope fits in this discussion group.\n\nI'm migrating my actual server into a new, more powerful architecture on \nGoogle Cloud Platform.\nATM the server is a VM with 4 vCPUs (the host has 4 Xeon E2xx 3,1 GHZ, \nif I remember) and 32 GB RAM, just run...
[ { "msg_contents": "Hello\n\nI have a bad query on PostgreSQL 9.0.23 - 64bit - Windows 2012 R2 - 48GB Ram\n\nexplain analyze select d.data_id, d.table_name, d.event_type, d.row_data,\nd.pk_data, d.old_data, d.create_time, d.trigger_hist_id, d.channel_id,\nd.transaction_id, d.source_node_id, d.external_data, '' f...
[ { "msg_contents": "I'm about to install a new production server and wanted some advice regarding\nfilesystems and disk partitioning.\n\nThe server is:\n- Dell PowerEdge R430\n- 1 x Intel Xeon E5-2620 2.4GHz\n- 32 GB RAM\n- 4 x 600GB 10k SAS \n- PERC H730P Raid Controller with 2GB cache\n\nThe drives will be set...
[ { "msg_contents": "At some point in the next year we're going to reconsider our hosting\nenvironment, currently consisting of several medium-sized servers (2x4\nCPUs, 48GB RAM, 12-disk RAID system with 8 in RAID 10 and 2 in RAID 1 for\nWAL). We use barman to keep a hot standby and an archive.\n\nThe last time w...
[ { "msg_contents": "Also available on S.O.:\n\nhttp://stackoverflow.com/questions/35658238/postgres-odd-behavior-with-indices\n\nI've got a datavalue table with ~200M rows or so, with indices on both\nsite_id and parameter_id. I need to execute queries like \"return all sites\nwith data\" and \"return all parame...
[ { "msg_contents": "Dear psql-performance,\n\nI'm having issues with a certain query, and I was hoping you could help me\nout.\n\nThe schema:\n\n(start with new database cluster, with either SQL_ASCII or en.us-UTF8\nencoding, using the default server configuration available in the pgdg\nJessie packages).\n\nCREA...
[ { "msg_contents": "Hi.\n\nI've noticed that autovac. process worked more than 10 minutes, during this\nzabbix logged more than 90% IO disk utilization on db volume....\n\n===========>29237 2016-03-02 15:17:23 EET 00000 [24-1]LOG:\nautomatic vacuum of table \"lb_upr.public._reference32\": index scans: 1\n\tpag...
[ { "msg_contents": "Howdy\n\nPostgres9.2 going to 9.4\nCentOS 6.5\n\nSo in most of my environments, I use slony and thus use slony replication\nfor my upgrades (Drop/add nodes etc).\n\nBut I've got a pretty big DB just shy of a TB that is on a single node. A\ndump restore would take over 48 hours because of ind...
[ { "msg_contents": "No hits on the intratubes on this.\n\nAny idea ? We are doing some massive deletes so was curious as to what\nwould cause this error. The DB is up, not overburdened, just some big\ndeletes and slon replication processes.\n\nCentOS 6.6\nPostgres 9.4.5\n\n\nFirst time I've ever seen this alert/...
[ { "msg_contents": "Hi all.\n\nIs there any way of how to retrieve information from pg_stat_activity (its\nnot very comfort to get it from iotop, because its not showing full text of\nquery) which query generates or consumes the most IO load or time.\n\nThanks for any advice.\n\nHi all.Is there any way of how to...
[ { "msg_contents": "Hi all.\n \nI'm doing full-text-search and want do display the results in the order the \narticles were received (timestamp). I have millions of articles where the \nnewest are the most interesting, and a search may match many articles so doing \nthe sort using some INDEX would be great.\n \n...
[ { "msg_contents": "I have the following queries:\n\nEXPLAIN (ANALYZE, VERBOSE, COSTS, BUFFERS, TIMING)\nselect […]\n from f_calc_service a11,\n d_patient_type a12\n where a11.d_patient_pop_id in (336)\n ...
[ { "msg_contents": "Hi All!\n\nIs Postgres use shared_buffers during seq_scan?\nIn what way i can optimize seq_scan on big tables?\n\nThanks!\n\nHi All!Is  Postgres use shared_buffers during seq_scan? In what way i can optimize seq_scan on big tables?Thanks!", "msg_date": "Thu, 17 Mar 2016 11:57:13 +0200", ...
[ { "msg_contents": "I'm pretty new to benchmarking hard disks and I'm looking for some advice\non interpreting the results of some basic tests.\n\nThe server is:\n- Dell PowerEdge R430\n- 1 x Intel Xeon E5-2620 2.4GHz\n- 32 GB RAM\n- 4 x 600GB 10k SAS Seagate ST600MM0088 in RAID 10\n- PERC H730P Raid Controller ...
[ { "msg_contents": "Hi,\n\nWhile developing a batch processing platform using postgresql as the \nunderlying data store we are seeing a performance decline in our \napplication.\n\nIn this application a job is broken up into chunks where each chunk \ncontains a number of items (typically 10).\n\nCREATE TABLE ite...
[ { "msg_contents": "Guys\n Whats the best way to grant select on pg_stat_activity so that non\nsuper user can access this view.\n\nThanks\nAvi\n\nGuys        Whats the best way to grant select on pg_stat_activity so that non super user can access this view. ThanksAvi", "msg_date": "Fri, 18 Mar 2016 13...
[ { "msg_contents": "Hi all,\n\nPlease provide some advise on the following query not using the index:\n\npgsql version: 9.2.4\nOS version: RedHat 6.5\nRam: 64 GB\nrows in testdb: 180 million\nshared_buffers: 16GB\neffective_cache_size: 32GB\nwork_mem='32MB'\n\nI have executed the query below after I vaccum analy...
[ { "msg_contents": "Hi folks! I’ve a query where adding a rollup to the group by switches to GroupAggregate unexpectedly, where the standard GROUP BY uses HashAggregate. Since the rollup should only add one additional bucket, the switch to having to sort (and thus a to-disk temporary file) is very puzzling. This...
[ { "msg_contents": "Hello!\n\n\tWe are going to build system based on PostgreSQL database for huge\nnumber of individual users (few thousands). Each user will have his own\naccount, for authorization we will use Kerberos (MIT or Windows). \nMost of users will have low activity, but for various reasons,\nconnecti...
[ { "msg_contents": "Hi,\n\nIn the query below, the planner choose an extreme slow mergejoin(380\nseconds). 'Vacuum analyze' can't help.\nIf I CLUSTER (or recreate) table ES09T1, the planner choose a faster\nhashjoin (about 10 seconds). But, obviously, I can't do that with the users\nconnected.\nAfter some time a...
[ { "msg_contents": "Hey all, been running into some performance issues with one of my tables,\nand it seems to be centered around index maintenance.\n\nI have a table to store aggregated prices that are derived from sale data\nover a configurable period, and a function that runs periodically that\ninserts new pr...
[ { "msg_contents": "Hello,\n\nI'm assuming this topic has probably been bludgeoned to a pulp, but my\ngoogle-fu can't seem to find a solution.\n\nI have two relatively largish tables that I'm trying to join that result in\na slow query.\n\nHardware:\n\n2014 iMac w/ SSD & i5 processor\n\nTables:\ncontacts: 1.14 m...
[ { "msg_contents": "Hey all,\n\nNew to the lists so please let me know if this isn't the right place for\nthis question.\n\nI am trying to understand how to structure a table to allow for optimal\nperformance on retrieval. The data will not change frequently so you can\nbasically think of it as static and only c...
[ { "msg_contents": "After remodeling a table we have some performance problems.\n\n \n\nThe Original tables have much more fields and we thought it came from these\nmany fields. After some testing I tried these test layout and the\nperformance problem is not solved.\n\n \n\nPostgresql 9.3.12\n\n \n\nFormer DB-La...
[ { "msg_contents": "Hi All.\n\nI've noticed that there is a huge (more than ~3x slower) performance\ndifference between KVM guest and host machine.\nHost machine:\ndell r720xd\nRAID10 with 12 SAS 15 k drives and RAID0 with 2*128 GB INTEL SSD drives in\nDell CacheCade mode.\n\n*On the KVM guest:*\n\n /usr/pgsql-...
[ { "msg_contents": "\n\n\n-- \nSent via pgsql-performance mailing list (pgsql-performance@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postgresql.org/mailpref/pgsql-performance\n", "msg_date": "Wed, 27 Apr 2016 22:41:57 -0400", "msg_from": "George Neuner <gneuner2@comcast.net>", ...
[ { "msg_contents": "Hello.\n\nIt seems my quite complex query runs 10 times faster on \"some_column \nLIKE '%test_1' \" vs \"some_column LIKE 'test_1' \"\nSo I just add \"%\" to the pattern...\n\nBoth query plans use same indexes.\n\n\n\n-- \nSent via pgsql-performance mailing list (pgsql-performance@postgresql...
[ { "msg_contents": "Transactions to table, ChangeHistory, have recently become intermittently slow and is increasing becoming slower.\n\n* No database configuration changes have been made recently\n* We have run vacuum analyze\n* We have tried backing up and reloading the table (data, indexes, etc)\n\nSome trans...
[ { "msg_contents": "Hi,\nI have defined a function into public schema which permits to execute a set\nof SQL statements on every schema:\n\nCREATE OR REPLACE FUNCTION \"public\".\"multiddl\"(\"sql\" text)\n RETURNS \"pg_catalog\".\"bool\" AS $BODY$DECLARE\n r record;\nBEGIN\n FOR r IN\n SELECT schema...