threads
listlengths
1
275
[ { "msg_contents": "Hi,\n\nwe are seeing cases of EXPLAIN INSERT INTO foo SELECT ... taking over an\nhour, with disk I/O utilization (percent of time device is busy) at 100%\nthe whole time, although I/O bandwidth is not saturated. This is on\nPostgreSQL 9.1.13.\n\nWhat could cause this? Note that there is no AN...
[ { "msg_contents": "Hello All,\n\nMaster db size 1.5 TB\nAll postgres 9.1.13 installed from RHEL package.\nIt has streaming replica and slony replica to another servers.\n\nServer performance is slower than usual, before that, there's a big query\ngot cancelled and then performance get slow.\n\nNo sign of IO wai...
[ { "msg_contents": "Hello,\n\nI wonder if the process of index creation can benefit from other indexes.\n\nEG: Creating a partial index with predicat based on a boolean column, will\nuse an hypothetic index on that boolean column or always use a seq scan on\nall rows ?\n\nGoal is to create partial indexes faster...
[ { "msg_contents": "Currently seeing massive increase in performance when optimizer chooses Hash\nJoin over Nested Loops. I achieve this by temporarily setting nested loops\noff. I'd like to setup some database variables where the optimizer prefers\nhash joins. Any suggestions?\n\n*Query in question:*\nexplain a...
[ { "msg_contents": "Hi Team,\n\n\n\nI am a novice to this territory. We are trying to migrate few jasper\nreports from Netezza to PostgreSQL.\n\n\n\nI have one report ready with me but queries are taking too much time. To be\nhonest, it is not giving any result most of the time.\n\n\n\nThe same query in Netezza...
[ { "msg_contents": "The reason I ask is that it seems to support deduplication/compression. I was wondering if this would have any performance implications of PG operations.\n\n\nThanks, M.?\n\n\nMel Llaguno * Staff Engineer - Team Lead\nOffice: +1.403.264.9717 x310\nwww.coverity.com<http://www.coverity.com/> <h...
[ { "msg_contents": "I'm having difficulty understanding what I perceive as an inconsistency in\nhow the postgres parser chooses to use indices. We have a query based on NOT\nIN against an indexed column that the parser executes sequentially, but\nwhen we perform the same query as IN, it uses the index.\n\n \n\n...
[ { "msg_contents": "Hi!\n\nWe at MusicBrainz have been having trouble with our Postgres install for the past few days. I’ve collected all the relevant information here:\n\n http://blog.musicbrainz.org/2015/03/15/postgres-troubles/ <http://blog.musicbrainz.org/2015/03/15/postgres-troubles/>\n\nIf anyone could pr...
[ { "msg_contents": "I wasn't sure whether to post this in general, admin or performance but \nsince it is basically a performance question I went with performance.\n\nI'm about to launch a new a website that is written using the Django web \nframework and has PostgreSQL as the database server. Unfortunately I \n...
[ { "msg_contents": "Hi,\nWe have a so far (to us) unexplainable issue on our production systems after we roughly doubled the amount of data we import daily. We should be ok on pure theoretical hardware performance, but we are seeing some weird IO counters when the actual throughput of the writes is very low. The...
[ { "msg_contents": "We have views that run from 20x to failing to complete at all in 9.4.1 whereas they finished in seconds in 8.4.7 on the same platform.\n\nAfter upgrading from 8.4 to 9.4, I ran ANALYZE on the entire DB. Performance improved for some but not all of the views.\n\nHere is the explain-analyze ou...
[ { "msg_contents": "Hi Team,\n\n\n\nI don't know under which section does this question comes, so I am posting\nthis question to both Admin and performance mailing list. Apologies in\nadvance.\n\n\n\nObjective:\n\n\n\nWe are planning to use PostgreSQL instead of Netezza for our data warehouse\nas well as databas...
[ { "msg_contents": "There is only one server at this point. The 8.4 machine was upgraded to 9.3 about a year ago and we have no 8.4 backups so it's difficult if not impossible to recreate the 8.4 environment AFAIK. One of our developers pointed out the discrepancy in execution times. I decomposed a slow view ...
[ { "msg_contents": "I am having problems with a join where the planner picks a merge join and an\nindex scan on one of the tables. Manually disabling merge joins and running\nthe query both ways shows the merge join takes over 10 seconds while a hash\njoin takes less than 100ms. The planner total cost estimate f...
[ { "msg_contents": "Hi,\nWonder if anyone can help.\n\nHave a lookup table where the primary key is a native uuid type\n(filled with uuid's of type 4), around 50m rows in size.\n\nHave a separate table, table A, similar size (around 50m rows).\nPrimary key in table A is the standard integer, nextval, etc type\np...
[ { "msg_contents": "Hi,\n\nSituation:\n\nWe have a table with 3,500,000+ rows, which contain items that need to\nbe printed or have been printed previously.\n\nMost of these records have a status of 'PRINTED', we have a partial\nindex on this table WHERE status <> 'PRINTED'.\nDuring normal operation there will b...
[ { "msg_contents": "Hello,\n\nI have an executing time problem for a query : this time is very \ndifferent as I used a local table or a foreign table : 20 times faster \nfor the foreign table\nOn a server 9.4.1, I have 2 spatial bases b1 (size 5.4 Go) et b2 (size \n19Mo) and in the base b1 the table tmp_obs_co...
[ { "msg_contents": "Hi,\n\n \n\nI have an issue with a rather large CASE WHEN and I cannot figure out why\nit is so slow...\n\n \n\nFirst, here is my test query :\n\n \n\nSELECT CASE WHEN dwh_company_id = 1\n\n \nTHEN CASE\n\n \n\n \nWHEN wv.source ~ '^$' THEN 'Not tracked'\n\n \nWHEN wv.source ~ '^1$' THEN '...
[ { "msg_contents": "All,\n\nI currently have access to a matched pair of 20-core, 128GB RAM servers\nwith SSD-PCI storage, for about 2 weeks before they go into production.\n Are there any performance tests people would like to see me run on\nthese? Otherwise, I'll just do some pgbench and DVDStore.\n\n-- \nJos...
[ { "msg_contents": "This question was posted originally on http://dba.stackexchange.com/questions/96444/cant-get-dell-pe-t420-perc-h710-perform-better-than-a-macmini-with-postgresql and they suggested to post it on this mailing list.\n\nIt's months that I'm trying to solve a performance issue with PostgreSQL. I’...
[ { "msg_contents": "-- tables\n-- New column \"span\" added and new index created on both tables.\nCREATE TABLE customer(\n uid bigserial PRIMARY KEY,\n name character varying(50) NOT NULL,\n start_time timestamp without time zone,\n end_time timestamp without time zone,\n span tsrange,\n comme...
[ { "msg_contents": "> \n> Josh, there seems to be an inconsistency in your blog. You say 3.10.X is\n> safe, but the graph you show with the poor performance seems to be from\n> 3.13.X which as I understand it is a later kernel. Can you clarify which\n> 3.X kernels are good to use and which are not?\n\nSorry to...
[ { "msg_contents": "A tangent to the performance testing thread here, but an important issue that you will see come up in your work this year or next. \n\n\"PCIe SSD\" may include AHCI PCI SSD or NVMe PCI SSD.\n\nAHCI = old style, basically it's faster than SATA3 but quite similar in terms of how the operating...
[ { "msg_contents": "Hi all.   Using PG-9.4   I have a query which goes something like this   The \nsimplified schema is like this:   CREATE TABLE message( id serial PRIMARY KEY, \nsubject varchar NOT NULL, folder_id integer NOT NULL REFERENCES folder(id), \nreceived timestamp not null, fts_all tsvector );   crea...
[ { "msg_contents": "Hi all.   I have a pg_largeobject of ~300GB size and when I run \"vacuumlo -n \n<dbname>\", I get:   Would remove 82172 large objects from database \"<dbname>\".  \nSo I'm running without \"-n\" to do the actual work, but it seems to take \nforever. The disks are 8 SAS 10K HDD drives in RAID5...
[ { "msg_contents": "Greetings,\n\nWe have been having some pretty painful site outages related to heavy swapping, even though the system may appear to have as much as 10GB of free memory.\nIt seems that as soon as the system hits ~22GB (of 32GB) of memory usage it starts to swap. As soon as we go below ~22GB, s...
[ { "msg_contents": "Given the table:\n\nCREATE TABLE dates (id SERIAL, d DATE NOT NULL, t TEXT NOT NULL)\n\nWith an *index* on field d. The following two queries are functionally\nequivalent:\n\n1. SELECT * FROM dates WHERE d >= '1900-01-01'\n2. SELECT * FROM dates WHERE EXTRACT(year from d) >= 1900'\n\nBy funct...
[ { "msg_contents": "This is a question about how to read \"explain analyze\". I've anonymized \ncolumn names and table names.\n\nIn the output of \"explain analyze\" below, what was the query doing \nbetween actual time 1.426 and 17.077?\n\nKind regards,\nAndomar\n\n\n HashAggregate (cost=862.02..862.62 rows=...
[ { "msg_contents": "I am using PostgreSQL to log data in my application. A number of rows are added periodically, but there are no updates or deletes. There are several applications that log to different databases.\n\nThis causes terrible disk fragmentation which again causes performance degradation when retriev...
[ { "msg_contents": "Hi,\n\nWe have a query which finds the latest row_id for a particular code.\n\nWe've found a backwards index scan is much slower than a forward one, to\nthe extent that disabling indexscan altogether actually improves the query\ntime.\n\nCan anyone suggest why this might be, and what's best t...
[ { "msg_contents": "Hello guru of postgres, it's possoble to tune query with join on random\nstring ?\ni know that it is not real life example, but i need it for tests.\n\nsoe=# explain\nsoe-# SELECT ADDRESS_ID,\nsoe-# CUSTOMER_ID,\nsoe-# DATE_CREATED,\nsoe-# HOUSE_NO_OR_NAME,\n...
[ { "msg_contents": "Hi Group,\n\nFacing a problem where pg_catalog.pg_largetobject has been growing fast recently, in last two weeks. The actual data itself, in user tables, is about 60GB, but pg_catalog.pg_largeobject table is 200GB plues. Please let me know how to clean/truncate this table without losing any u...
[ { "msg_contents": "Hi,\ni stumbled over something i cant seem to find a workaround. I create a view like\n\ncreate view v_test as\n\tselect\ta,b\n\tfrom\tbig_table\n\tunion all\n\tselect\ta,b\n\tfrom\tsmall_table;\n\nWhen i now use the view like\n\n\tselect * from v_test where a = 42;\n\nI can see an index scan...
[ { "msg_contents": "I'm trying to call MAX() on the first value of a multi-column index of a\npartitioned table and the planner is choosing to do a sequential scan\ninstead of an index scan. Is there something I can do to fix this?\n\nHere's a simplified version of our schema:\nCREATE TABLE data ( tutci DOUBLE P...
[ { "msg_contents": "Greetings and salutations.\n\nI've got some weirdness.\n\nCurrent:\nPostgres 9.3.4\nSlony 2.2.3\nCentOS 6.5\n\nPrior running Postgres 9.1.2 w/slony 2.1.3 CentOS 6.2\n\nI found that if I tried to run a vacuum full on 1 table that I recently\nreindexed (out of possibly 8 tables) that I get this...
[ { "msg_contents": "Hi,\n\nI'm running performance tests against a PostgreSQL database (9.4) with various hardware configurations and a couple different benchmarks (TPC-C & TPC-H).\n\nI'm currently using pg_dump and pg_restore to refresh my dataset between runs but this process seems slower than it could be.\n\n...
[ { "msg_contents": "Hi,\n\nMy app was working just fine. A month ago postmaster started to eat all my\ncpu sometimes (not all day, but a lot of times and everyday) and then my app\ngets really slow and sometimes don't even complete the requests.\n\nWhat could it be?\n\n\n\n--\nView this message in context: http:...
[ { "msg_contents": "I am testing partitioning of a large table. I am doing a range\npartitioning based on a sequence col, which also acts as the primary\nkey. For inserts I am using a trigger which will redirect insert to\nthe right table based on the value of the primary key.\n\nBased on my testing, I see that ...
[ { "msg_contents": "wdsah=> select version();\n version \n-----------------------------------------------------------------------------------------------\n PostgreSQL 9.1.15 on x86_64-unknown-linux-gnu, compiled by gcc (Debian ...
[ { "msg_contents": "Hi All,\n\nI am using postgresDB on redhat machine which is having 4GB RAM\nmachine. As soon as it starts to update the postgres DB it will reach\n100%cpu. It will comedown to normal after 40 minutes. I tried perform\nsome tuning on the postgres DB, But result was same.I am not postgres\nDB e...
[ { "msg_contents": "I have several databases that have the same schema but different amounts of data in it (let's categorize these as Small, Medium, and Large). We have a mammoth query with 13 CTEs that are LEFT JOINed against a main table. This query takes <30 mins on the Small database, <2 hours to run on Larg...
[ { "msg_contents": "I am connecting to a Postgres instance using SSL and seeing fairly slow connect times. I would expect there would be some overhead but it's more than I anticipated. The connection is happening over a network. I am using a wildcard SSL certificate on the server side only.\n\nUsing one of these...
[ { "msg_contents": "On Sun, May 31, 2015 at 7:53 PM, Yves Dorfsman <yves@zioup.com> wrote:\n\n>> That's the thing, even on an old laptop with a slow IDE disk, 273\n> individual\n>> inserts should not take more than a second.\n> \n\nI think that would depend on settings such as synchronous_commit, commit_delay, o...
[ { "msg_contents": "Hi all, \n\nWe have a big database (more than 300 Gb) and we run a lot of queries each\nminute. \n\nHowever, once an hour, the (very complex) query writes A LOT on the disk\n(more than 95 Gb !!!)\nWe have 64 Gb of RAM and this is our config :\n\n\nAnd my error on the query is : \n\n\nDo you k...
[ { "msg_contents": "I previously mentioned on the list that nvme drives are going to be a very big thing this year for DB performance.\n\nThis video shows what happens if you get an 'enthusiast'-class motherboard and 5 of the 400GB intel 750 drives.\nhttps://www.youtube.com/watch?v=-hE8Vg1qPSw\n\nTotal transfer ...
[ { "msg_contents": "Postgresql 9.3 Version\n\nGuys\n Here is the issue that I'm facing for couple of weeks now. I have table (size 7GB)\n\nIf I run this query with this specific registration id it is using the wrong execution plan and takes more than a minute to complete. Total number of rows for this...
[ { "msg_contents": "I have stopped this query after about 16 hours. At the same time I ran a\n'explain analyze' on the same query to find out why it took so long. These\ntwo processes generated temporary files of 173GB in\n/var/lib/postgresql/9.4/main/base/pgsql_tmp.\n\nCOPY\n (SELECT A.ut,\n B.go AS...
[ { "msg_contents": "Hi everyone --\n\nI had an issue the other day where a relatively simple query went from\ntaking about 1 minute to execute to taking 19 hours. It seems that the\nplanner chooses to use a materialize sometimes [1] and not other times\n[2]. I think the issue is that the row count estimate for t...
[ { "msg_contents": "Hi,\n\nI have a query that takes ridiculously long to complete (over 500ms) but \nif I disable nested loop it does it really fast (24.5ms)\n\nHere are links for\n* first request (everything enabled): http://explain.depesz.com/s/Q1M\n* second request (nested loop disabled): http://explain.depe...
[ { "msg_contents": "Guys we see spike in pg bouncer during the peak hours and that was slowing down the application. We did bump up the connection limit and it is helpful but now we again notice little spike in connection. And one thing that I notice that is different is jump in sv_used value when I run command...
[ { "msg_contents": "Last night I was doing some tuning on a database The longest query I was\nrunning was taking around 160 seconds. I didn't see much change in the\nrunning time for that query, even after restarting PG.\n\nToday, with roughly the same system load (possibly even a bit heavier\nload), that quer...
[ { "msg_contents": "Here is some more information\n\npool_mode | transaction\n\nWe have transactional pooling and our application is set up in such a way that we have one query per transaction. We have set default pool size to 100.\n\nThis is output . As you guys can see active connection are 10...
[ { "msg_contents": "Hi, I am using postgresql 9.2.10 on centos 6.2, 64 bit version. The server\nhas 512 GB mem.\n\nThe jobs are mainly OLAP like. So I need larger work_mem and shared\nbuffers. From the source code, there is a constant MaxAllocSize==1GB. So, I\nwonder whether work_mem and shared buffers can excee...
[ { "msg_contents": "Guys\n I have an issue going on with PGBOUNCER which is slowing down the site\n\nPGBOUNCER VERSION: pgbouncer-1.5.4-2.el6 (Hosted on separate machine) (16 cpu) 98GB RAM\nDATABASE VERION: postgresql 9.3\n\nWhen the total client connections to pgbouncer are close to 1000, site ...
[ { "msg_contents": "Hi,\n\nI have a table with irregular distribution based in a foreign key, like you\ncan see in the end of the e-mail.\n\nSometimes, in simples joins with another tables with the same id_camada\n(but not the table owner of the foreign key, the planner chooses a seq scan\ninstead of use the ind...
[ { "msg_contents": "We are trying to improve performance by avoiding the temp file creation.\n\nLOG: temporary file: path \"base/pgsql_tmp/pgsql_tmp8068.125071\", size 58988604\nSTATEMENT: SELECT iiid.installed_item__id, item_detail.id, item_detail.model_id, item_detail.type\nFROM installed_item__item_detail AS...
[ { "msg_contents": "Hi Folks,\n\nThis is my first time posting here, so hopefully I manage to convey all \nthe information needed.\nWe have a simple query that just started giving us problems in \nproduction when the number of rows gets too large (>100k).\nThe issue seems to be that the planner wants to sort the...
[ { "msg_contents": "Guys can anyone please explain or point me to a link where i can understand this output for pgbouncer. What does each column of this table mean?\n\n\npgbouncer=# show mem;\n\n name | size | used | free | memtotal\n--------------+------+------+------+----------\n user_cache | 184 | ...
[ { "msg_contents": "All:\n\nDoes anyone have python code which parses pgbench -r output for\nstatistical analysis? I dug through pgbench-tools, but its reading of\npgbench results isn't easily separable from the rest.\n\nI'll write a lib, but if someone already has one, it would save me some\ntime in developing...
[ { "msg_contents": "Hello all,\nThis is my very first message to the Postgresql community, and I really hope\nyou can help me solve the trouble I'm facing.\n\nI've an 80 core server (multithread) with close to 500GB RAM.\n\nMy configuration is:\nMaxConn: 1500 (was 850)\nShared buffers: 188Gb\nwork_mem: 110Mb (wa...
[ { "msg_contents": "We're buying a new server in the near future to replace an aging system.\nI'd appreciate advice on the best SSD devices and RAID controller cards\navailable today.\n\nThe database is about 750 GB. This is a \"warehouse\" server. We load\nsupplier catalogs throughout a typical work week, then ...
[ { "msg_contents": "Hi everyone,\n\nI've written a new open source tool for easily parallelising SQL scripts in postgres. [obligatory plug: https://github.com/gbb/par_psql ]\n\nUsing it, I'm seeing a problem I've seen in other postgres projects involving parallelisation in the last 12 months.\n\nBasically:...
[ { "msg_contents": "Hi everyone,\n\nI've written a new open source tool for easily parallelising SQL scripts in postgres. [obligatory plug: https://github.com/gbb/par_psql ]\n\nUsing it, I'm seeing a problem that I've also seen in other postgres projects involving high degrees of parallelisation in the las...
[ { "msg_contents": "\nHi,\n\ntoday I have update my test system to 9.5alpha1.\nMost of the operations are ok, except delete.\nI get ~1000 times slower!\n\n\nchimera=# SELECT\n (total_time / 1000 )::numeric(10,2) as total_secs,\n (total_time/calls)::numeric(10,2) as average_time_ms, calls,\n query\nFROM pg_sta...
[ { "msg_contents": "\nOn Jul 6, 2015 18:45, Josh Berkus <josh@agliodbs.com> wrote:\n>\n> On 07/05/2015 10:16 AM, Mkrtchyan, Tigran wrote: \n> > Thanks for the hin. My bad. The backup db and 9.5 had a different type on \n> > one of the foreign-key constrains char(36) vs varchar(36). \n> > \n> > The schema was scr...
[ { "msg_contents": "I had a query that was filtering with a wildcard search of a text field for\n%SUCCESS%. The query took about 5 seconds and was running often so I wanted\nto improve it. I suggested that the engineers include a new boolean column\nfor successful status. They implemented the requested field, ...
[ { "msg_contents": "Hello,\n\nI wonder how understanding pg_stat_all_indexes working\n\nWhen I run an explain, some index are not used, but\npg_stat_all_indexes.idx_scan is incremented for those indexes.\n\nDoes this mean idx_scan is incremented each time the planner check if an\nindex could be use whenever it w...
[ { "msg_contents": "\nThis is a reply to to Andreas's post on the #13495 documentation thread in -bugs. \nI am responding to it here because it relates to #13493 only.\n\nAndres wrote, re: #13493\n\n>> This issue is absolutely critical for performance and scalability of code,\n\n> Pft. In most cases it doesn't a...
[ { "msg_contents": "Hello,\n\nMy 9.4 database is used as datawharehouse. I can't change the queries\ngenerated.\n\nfirst index : INDEX COL (A,B,C,D,E)\n\n\nIn case of query based on COL A, the query planner sometimes go to a seq\nscan instead of using the first composite index.\n\nThe solution is to add a seco...
[ { "msg_contents": "Hi folks,\n\nI have a fairly simple three-table query (pasted below) with two LEFT JOINs\nand an OR in the WHERE clause that for some reason is doing sequential\nscans on all three tables (two of them large -- several million rows), even\nthough I have indexes on the relevant \"filename\" col...
[ { "msg_contents": "Apologies ahead of time for not knowing which group to send to, but I\nwanted to see if anyone has encountered and resolved this type of error.\nI'm setting up postgresql 9.2 streaming replication on RH and after copying\nthe master data directory over to the slave, the psql service refuses s...
[ { "msg_contents": "What is your kernel SHMMAX? Usually somewhere under /etc/sysconfig. Depends on your distro. This is telling you that your kernel does not have sufficient resources.\r\n\r\n-------- Original message --------\r\nFrom: Ryan King - NOAA Affiliate <ryan.king@noaa.gov>\r\nDate: 07/13/2015 7:10 PM (...
[ { "msg_contents": "First off I apologize if this is question has been beaten to death. I've\nlooked around for a simple answer and could not find one.\n\nGiven a database that will not have it's PKEY or indices modified, is it\ngenerally faster to INSERT or UPDATE data. And if there is a performance\ndifference...
[ { "msg_contents": "hi everyone,\n\nRecently update a database to machine with RHEL7, but i see that the \nperformance is betther if the hyperthreading tecnology is deactivated \nand use only 32 cores.\n\nis normal that the machine performance is better with 32 cores that 64 \ncores?.\n\nBD: postgresql 9.3.5\nMa...
[ { "msg_contents": "Hi everyone,\n I host a Postgresql server on Ubuntu 12.04 and I am facing server \nload spikes (if I run top, it goes up to 25-30 on a 4-core system)...\nIn some cases, I have to restart potgresql service because users call us \ncomplaining of the slowness, but in some cases I can leave t...
[ { "msg_contents": "\nHi all,\n\n1. For those that don't like par_psql (http://github.com/gbb/par_psql), here's an alternative approach that uses the Gnu Parallel command to organise parallelism for queries that take days to run usually. Short script and GIS-focused, but may give you a few ideas about how to par...
[ { "msg_contents": "Hi,\n\nI have read that GIN indexes don't require a recheck cond for full text\nsearch as long as work_mem is big enough, otherwise you get lossy blocks,\nand the recheck cond.\n\nIn my case, I have no lossy blocks (from what I could tell), but I do have\na recheck...\n\nEXPLAIN (ANALYZE, BUF...
[ { "msg_contents": "The canonical advice here is to avoid more connections than you have CPUs,\nand to use something like pg_pooler to achieve that under heavy load.\n\nWe are considering using the Apache mod_perl \"fast-CGI\" system and perl's\nApache::DBI module, which caches persistent connections in order to...
[ { "msg_contents": "Hi,\n\nI have following table definition with 6209888 rows in it. It stores the\noccurrences of species in various regions.\n\n*TABLE DEFINITION*\n\n Column | Type | Modifiers\n\n\n--------------+------------------------+-------------------------...
[ { "msg_contents": "Some of you may have had annoying problems in the past with autofreeze or autovacuum running at unexpected moments and dropping the performance of your server randomly. \n\nOn our SSD-RAID10 based system we found a 20GB table finished it's vacuum freeze in about 100 seconds. There were no not...
[ { "msg_contents": "Entering production, availability 2016\n1000x faster than nand flash/ssd , eg dram-latency\n10x denser than dram\n1000x write endurance of nand\nPriced between flash and dram\nManufactured by intel/micron\nNon-volatile\n\nGuess what's going in my 2016 db servers :-)\n\nPlease, don't be vapour...
[ { "msg_contents": "Hi,\n\nI am trying to see if I can do anything to optimize the following plan.\n\nI have two tables and I am doing a join between them. After joining it\ncalculates aggregates (Sum and Count)\nTable 1 : timestamp (one per day) for 2 years (730 records)\nTable 2 : Window based validity records...
[ { "msg_contents": "Hi,\n\nFirst, sorry to compare Post with other database system, but I know nothing\nabout Oracle...\n\nThis customer have an application made with a framework thats generates the\nSQL statements (so, We can't make any query optimizations) .\n\nWe did the following tests:\n\n1) Postgresql 9.3 ...
[ { "msg_contents": "Platform: pg 9.2.9 on Ubuntu 12.04.4 LTS.\nI have a table which is partitioned to about 80 children. There are usualy\nseveral dozens of connections accessing these tables concurrently. I found\nsometimes the query planing time is very long if I query against the parent\ntable with partition ...
[ { "msg_contents": "Hi,\n\nI am new to optimizing queries and i'm getting a slow running time\n(~1.5secs) with the following SQL:\n\nSELECT distinct(\"Vacancy\".\"ID\"), \"Vacancy\".\"JobTitle\",\n\"Vacancy\".\"DateCreated\", \"Vacancy\".\"CustomAccess\"\n, \"Department\".\"Name\" as \"Department\", list(\"Occup...
[ { "msg_contents": "Setup:\n\n* PostgreSQL 9.3.9\n* 1 master, 1 replica\n* Tiny database, under 0.5GB, completely cached in shared_buffers\n* 90% read query traffic, which is handled by replica\n* Traffic in the 1000's QPS.\n\nThe wierdness:\n\nPeriodically the master runs an \"update all rows\" query on the mai...
[ { "msg_contents": "Pretty bad subject description... but let me try to explain.\n\n\nI'm trying to figure out what would be the most efficient way to query data\nfrom multiple tables using a foreign key.\n\nRight now the table design is such that I have multiple tables that share\nsome common information, and s...
[ { "msg_contents": "Hey,\n\ni have a very long running stored procedure, due to array manipulation in a stored procedure. The following procedure takes 13 seconds to finish.\n\nBEGIN\n point_ids_older_than_one_hour := '{}';\n object_ids_to_be_invalidated := '{}';\n\n select ARRAY(SELECT\n ...
[ { "msg_contents": "Hi,\n\nWe have a query on a column with GIN index, but query plan chooses not using the index but do an seq scan whichi is must slower\n\nCREATE INDEX idx_access_grants_on_access_tokens ON access_grants USING gin (access_tokens);\n\nexplain analyze SELECT \"access_grants\".* FROM \"access_gra...
[ { "msg_contents": "Hello,\n\nI have a table with 12 columns and 20 Million rows. While writing the table\nI do not find any problem but when reading that I have some issues faced.\nWhen I perform a 'select * from table limit 14000000;' (selecting 14million\nrows), it is working fine. If the limit value is 15000...
[ { "msg_contents": "Working with 9.4.\n\nWe are in the process of unpacking complicated XML-data into tables.\nXML-data are already in a table with two fields (id, xml) - 47+ million\nrecords.\n\nSome of hour queries to extract the data and insert it in other tables runs\nfor days and in one case we have created...
[ { "msg_contents": "Hi\n\nI'm trying to get a query to run fast enough for interactive use. I've gotten\nsome speed-up, but still not there. It is for a tool called IRRExplorer\n(http://irrexplorer.nlnog.net/) that correlates IP routes between Internet\nRoute Registries and real-world routing information. We lan...
[ { "msg_contents": "I'm running 9.3.4 with slon 2.2.3, I did a drop add last night at 9pm, it\nstarted this particular tables index creation at 10:16pm and it's still\nrunning. 1 single core is at 100% (32 core box) and there is almost zero\nI/O activity.\n\nCentOS 6.6\n\n\n 16398 | clsdb | 25765 | 10 | po...
[ { "msg_contents": "Hi,\n\nI am currently working on a data migration for a client.\nThe general plan is :\n - Read data from a postgresql database\n - Convert them to the new application\n - Insert in another database (same postgresql instance).\n\nThe source database is rather big (~40GB, wo indexes), and t...
[ { "msg_contents": "hi,We are trying to use PG FDW to read data from external tables.\r\nWe’d like to use PG as a SQL parser and push predicates into backend NoSQL databases.\r\nIt works well for single table queries. PG FDW is able to push all required predicates into backend database.\r\nHowever, things go odd...
[ { "msg_contents": "I have the following three tables:\n\nDOCUMENT\n id (index)\n documenttype\n date_last_updated: timestamp(6) (indexed)\n\nEXTERNAL_TRANSLATION_UNIT\n id (indexed)\n fk_id_document (indexed)\n\nEXTERNAL_TRANSLATION\n id (indexed)\n fk_id_translation_unit (indexed)\n\nTable sizes:\n DOCU...
[ { "msg_contents": "Dear all,\n\nI have server as below:\n- OS Debian 7.0 (Wheezy)\n- CPU 24 cores\n- RAM 128GB\n- SSD 128GB\n- 1 Gigabit Ethernet\n\nI need to tune the Postgres with hardware specification above for my\nMessaging/Messenger/Chatting Application that will run separately in\nanother server.\n\nCan ...
[ { "msg_contents": "Hi,\nI have a table for addresses:\n\nCREATE TABLE adressen.adresse\n(\n pool_pk integer NOT NULL,\n adressnr_pk integer NOT NULL,\n anrede varchar(8),\n vorname varchar(50) DEFAULT ''::character varying NOT NULL,\n name1 varchar(100)...
[ { "msg_contents": "Hi, \nWe have a table which consists of 3 millions of records and when we try to\ndelete them and run VACUUM VERBOSE ANALYZE on it in production environment ,\nit takes 6/7 hours to process.\n\nour understanding is that ,there are other processes running in the prod\nenvironment which may acq...
[ { "msg_contents": "Hello PGSQL performance community,\nYou might remember me from these past postings:\n\n* In 2012, we announced that the TPC was using PostgreSQL in a benchmark for virtualized databases. Unlike the traditional TPC Enterprise benchmarks, which are defined in paper specifications, this ...