threads
listlengths
1
275
[ { "msg_contents": "Dear Team,\n\nI am accessing PostgreSQL database objects using Microsoft-Access ODBC connection and tables are loaded but while opening table getting the below error msg.\n\n\nERROR :: ODBC--call failed :: Bindings were not allocated properly. (#15) and\n\n\n\n[cid:image001.png@01D3694F.14B9A...
[ { "msg_contents": "Hello everyone,\n\nI am having a strange performance issue concerning the creation of a\nmaterialized view in Postgres 9.6.\n\nI have a somewhat complex query, that takes about two minutes to fully run\nand that I want to run often, therefore I want to create a materialized\nview of this quer...
[ { "msg_contents": "Hello. I want to remove rows from first table, that exist in second\n(equality is done using PK). However I experience seq scan on second table,\nwhich counters my intuition - I think it should be index-only. Because\ntables are large, performance of query is very bad.\n\nHowever I got mixed ...
[ { "msg_contents": "Hi,\n\n\nI have a problem on 9.3.14 with a query that accesses table:\n\nSize: (retrieved by query https://gist.github.com/romank0/74f9d1d807bd3f41c0729d0fc6126749)\n\n schemaname | relname | size | toast | associated_idx_size | total\n------------+---------------+--------+--------+...
[ { "msg_contents": "Hi,\n\nWe recently had an issue in production, where a bitmap scan was chosen \ninstead of an index scan. Despite being 30x slower, the bitmap scan had \nabout the same cost as the index scan.\n\nI've found some cases where similar issues with bitmap scans were \nreported before:\n\nhttps://w...
[ { "msg_contents": "Hi,\nI have a big function that includes many truncates on different tables. In\nthe documentation is is written that truncates creates a new file and\nresign the old filenode to the new filenode and the old file (old data of\nthe table) is deleted in commit.\n\nIn order to execute my functio...
[ { "msg_contents": "Hi, I think something changed recently in my development environment as \nI don't recall deletes being so slow before.\n\nI've created a new dump and restored to a new database, ran VACUUM FULL \nANALYSE and a simple delete takes forever as you can see here:\n\n\nexplain analyze delete from f...
[ { "msg_contents": "I get very different plan chosen when my query is in a lateral subquery vs\nstandalone -- it doesn't use a key when joining on a table, instead opting\nto do a hash join. Here is the query:\n\nselect distinct on (sub.entity_id, sub.note_id, sub.series_id)\n entity_id, note_id, series_id...
[ { "msg_contents": "I could reproduce part of the things I described earlier in this thread. A\nguy named Andriy Senyshyn mailed me after reading this thread here (he\ncould somehow not join the mailing list) and observed a difference when\nissuing \"SET ROLE\" as user postgres and as a non-superuser.\n\nWhen I ...
[ { "msg_contents": "Hi experts!\n\nI read this nice article about Understanding EXPLAIN [1] weeks ago that\nopened my mind about the tool, but it seems no enough to explain a lot of\nplans that I see in this list.\n\nI often read responses to a plan that are not covered by the article.\n\nI need/want to know EXP...
[ { "msg_contents": "Hi,\n\nI have a set of tables with fairly large number of columns, mostly int with\na few bigints and short char/varchar columns. I¹ve noticed that Postgres is\npretty slow at inserting data in such a table. I tried to tune every\npossible setting: using unlogged tables, increased shared_buff...
[ { "msg_contents": "Hi All\n\nCan anybody tell me if there is any performance concern around the use of \nPrepared Transactions in Postgres. I need to decide whether to enable an \nexternal transaction manager in our application, but I'm concerned about \nthe performance impact this could have.\n\nRegards\nRiaan...
[ { "msg_contents": "In my postgresql 9.6 instance I have 1 production database. When I query\nthe size of all databases :\n\ncombit=> Select\npg_database.datname,pg_size_pretty(pg_database_size(pg_database.datname))\nas size from pg_database;\n datname | size -----------+---------\n template0 | 7265 kB\n co...
[ { "msg_contents": "Hi,\n\nMy CPU utilization is going to 100% in PostgreSQL because of one unknown process /x3303400001 is running from postgres user.\n\nPID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND\n19885 postgres 20 0 192684 3916 1420 S 99.3 0.1 5689:04 x3303400001\n\n...
[ { "msg_contents": "I want to do a JOIN against a subquery that is doing an aggregation. The\nquery itself is relatively straightforward, but has poor performance.\n\nHere it is:\nSELECT a.*, b.*\n FROM base AS a\n LEFT OUTER JOIN\n (SELECT other, COUNT(value), COUNT(DISTINCT value) FROM other GROUP...
[ { "msg_contents": "Hi,\n\nWe operate an RDS postgres 9.5 instance and have periodic CPU spikes to\n100%. These spikes appear to be due to autoanalyze kicking on our larger\ntables.\n\nOur largest table has 75 million rows and the autoanalyze scale factor is\nset to 0.05.\n\nThe documentation I've read suggests ...
[ { "msg_contents": "\nHello! We have a large table 11GB ( about 37 million records ) and we need to alter a table - add a new column with default values is false. Also 'NOT NULL' is required.\nSo, first I've done:\n\nALTER TABLE clusters ALTER COLUMN \"is_paid\";\n\nafter that:\n\nUPDATE clusters SET is_paid = D...
[ { "msg_contents": "Hi there,\n\nWe are testing a new application to try to find performance issues.\n\nAWS RDS m4.large 500GB storage (SSD)\n\nOne table only, called Messages:\n\nUuid\nCountry (ISO)\nRole (Text)\nUser id (Text)\nGroupId (integer)\nChannel (text)\nTitle (Text)\nPayload (JSON, up to 20kb)\nStar...
[ { "msg_contents": "Question on large tables…\n\n\nWhen should one consider table partitioning vs. just stuffing 10 million rows into one table?\n\nI currently have CDR’s that are injected into a table at the rate of over 100,000 a day, which is large.\n\n\nAt some point I’ll want to prune these records out, so ...
[ { "msg_contents": "The docs claim that the master table “should” be empty. It it possible to just create child tables off an existing master table with data, then just inserting data into the new child tables.\n\nTHe plan would be to keep data in the master table and purge it over time until it’s eventually emp...
[ { "msg_contents": "This topic is confusing to lots of people, usually including myself, so I'm\nhoping to clarify it at least to myself, and maybe provide a good reference or\ndoc update for others in the future.\n\nautovacuum/analyze automatically scans tables being inserted/updated/deleted\nand updates their ...
[ { "msg_contents": "Hi,\n\n\nI try to restore a table on U16.04, but it's ten times slower than on U14.04. This is the definition of the table:\n\n\ntestdb=# \\d photos_searchlog\n\nTable \"public.photos_searchlog\"\n Column | Type | Collation | Nullable | Default\n-------...
[ { "msg_contents": "After reading this article about keys in relational databases, highlighted\non hacker news this morning:\nhttps://begriffs.com/posts/2018-01-01-sql-keys-in-depth.html\n\nI keep pondering the performance chart, regarding uuid insert, shown\ntowards the bottom of the article. I believe he was ...
[ { "msg_contents": "Hi,\n\nWe recently had an issue in production. We have queries that are\nprocedurally generated by an Object/Relational Mapping framework. Some of\nthese queries are huge, involving over 120 tables.\n\nWith the following parameters the planner seemed to be getting very bad\nplans for some of ...
[ { "msg_contents": "Hi Team,\n\nWe are using system with 60 GB RAM and 4 TB , and this is AWS EC2 instance.\nwe are seeing some times replication lag 6 to 10 seconds, as this is very\ncritical data, we should not see the lag, please help us on this to become\nlag zero.\n\nRegards,\n\nRambabu Vakada,\n\nPostgreSQ...
[ { "msg_contents": "Hi Team,\n\nDaily 4000 Archive files are generating and these are occupying more space,\nwe are trying to compress wall files with using wal_compression parameter,\nbut we are not seeing any change in wal files count, could you please help\nus on this.\n\nHi Team,Daily 4000 Archive files are ...
[ { "msg_contents": "Hello Gurus,\n\nI am struggling to tune a query which is doing join on top of aggregate for around 3 million rows. The plan and SQL is attached to the email.\n\nBelow is system Details:\n\nPGSQL version - 10.1\nOS - RHEL 3.10.0-693.5.2.el7.x86_64\nBinary - Dowloaded from postgres.org compiled...
[ { "msg_contents": "Hi,\r\n\r\nA view got converted to postgresql, performance while querying the view in postgresql is 10X longer compared to oracle.\r\nHardware resources are matching between oracle and postgresql.\r\n\r\nOracle version - Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Produc...
[ { "msg_contents": "HI List\n\nI am trying to understand the following :\n\nhave 2  identical PG cluster on diff hosts, same postgresql.conf, same \ndb schema :\n\n  same tale DDL and row counts but different size ( 14GB diff  ), I run \nreindex and full vacuum analyze,  but I can not decrease the size of \nlarg...
[ { "msg_contents": "Hi Expert,\n\nAfter restarting PostgreSQL Server, I am unable to connect postgres from putty, I am getting error\n\npsql: could not connect to server: No such file or directory\n Is the server running locally and accepting\n connections on Unix domain socket \"/tmp/.s.PGSQL.5432\"?\n\nW...
[ { "msg_contents": "Hello,\n\nThis is my first question in postgres mailing list. If there are any\nmistakes, please don't mind.\n\nI am using PostgreSQL 9.4.4 on a Mac machine executing queries on postgres\nserver through the psql client.\n\nservicedesk=# select version();\n\n version\n\n----------------------...
[ { "msg_contents": "Hello,\n\n \n\nI’m running PostgreSQL 9.3 on Windows 7 and I’m having a performance\nissue at startup. I have installed PostgreSQL as a service through Windows\ninstaller.\n\nThe database size is 3 Go, with 120 tables.\n\n \n\nEvery time I try to run queries right after Windows startup, it ta...
[ { "msg_contents": "Hi there,\n\nThis is likely me not understanding something, but I have a query that\nI would expect to be fast but PG insists on using a sequential scan.\nI've attached a minimized test case but I'll walk through the steps as\nwell.\n\nI'm running PostgreSQL 10.1 using the standard ArchLinux ...
[ { "msg_contents": "Dear Expert,\n\nWhile connecting PostgreSQL 9.3 with PGAdmin client I am getting the below error.\n\n[cid:image001.png@01D38B8F.6F382110]\n\nHowever I am able to connect the database using psql thourgh Putty.\n\nEntry in pg_hba.conf\n\n# IPv4 local connections:\nhost all all ...
[ { "msg_contents": "Dear all\n\nSomeone help me analyze the two execution plans below (Explain ANALYZE\nused), is the query 9 of TPC-H benchmark [1].\nI'm using a server HP Intel Xeon 2.8GHz/4-core - Memory 8GB HDD SAS 320GB\n15 Krpm AND SSD Sansung EVO 500GB.\nMy DBMS parameters presents in postgresql.conf is ...
[ { "msg_contents": "Hi,\n\nI have installed pgaudit, and configured as:\npgaudit.log = 'ddl,role'\npgaudit.log_level = 'log' (default)\n\nVersions: postgresql96 (9.6.6) , pgaudit96 (1.0.4), postgis 2.3.2, Rhel 7.4\n\nWhen I then install postgis extension in a database it writes a huge amount of logs which sl...
[ { "msg_contents": "Hi Team,\n\nwe are seeing idle sessions consuming memory in our database, could you\nplease help me how much memory an idle session can use max and how can we\nfind how much work_mem consuming for single process.\n\nwe are getting out of memory error,for this i'm asking above questions.\n\n\n...
[ { "msg_contents": "We have a customer project where Postgres is using too many file handles during peak times (around 150.000)\n\nApart from re-configuring the operating system (CentOS) this could also be mitigated by lowering max_files_per_process.\n\nI wonder what performance implications that has on a server...
[ { "msg_contents": "Hi all,\nI need to know the actual execution time of a query, but considering\nthat the data is already cached. I also need to make sure that cached\ndata from other queries is cleared.\nI believe that in order to know the real time of a query it will be\nnecessary to \"warm up\" the data to ...
[ { "msg_contents": "Hi,\n\nI have an issue with sporadic slow insert operations with query duration\nmore than 1 sec while it takes about 50ms in average.\n\nConfiguration:\nOS: Centos 7.2.151\nPostgreSQL: 9.6.3\nCPU: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz\nMemory: total used free ...
[ { "msg_contents": "Hello all,\n\nSo I have a view, for which I can select all rows in about 3s (returns ~80k\nrows), but if I add a where clause on a column, it takes +300s to return\nthe ~8k lines.\n\n From the plan, I see that it expects to return only 1 row and so choose to\nperform some nested loops. Of cou...
[ { "msg_contents": "Hi,\n\nI have to provide a summary of how much spaces is used in the large objects table based on a group by condition.\nI would expect an index only scan on the large object table, but a full seq scan that last for hours is performed.\n\nBigSql distribution\nPostgreSQL 9.6.5 on x86_64-pc-min...
[ { "msg_contents": "Hello,\n\nThis email is structured in sections as follows:\n\n1 - Estimating the size of pg_xlog depending on postgresql.conf parameters\n2 - Cleaning up pg_xlog using a watchdog script\n3 - Mailing list survey of related bugs\n4 - Thoughts\n\nWe're using PostgreSQL 9.6.6 on a Ubuntu 16.04.3 ...
[ { "msg_contents": "Since upgrading to PG 10 a few weeks ago I've been experimenting with hash\nindexes. One thing I've noticed is that they seem to take a _lot_ longer\nto create than btree indexes, particularly on large tables.\n\nI've got a moderately sized table of about 38M rows and the create index\nusing...
[ { "msg_contents": "Hi,\nI configured a master table that is called \"year_2018\" :\ncreate table year_2018(a int,b int c date);\n\nThe master table has a unique constraint on those 3 columns so that I wont\nhave any duplicated rows. Moreover, I configured a before insert trigger on\nthat table that creates a ch...
[ { "msg_contents": "Hello,\n\nI would like to report a strange behaviour on postgresql 9.4.4.\n\nThe following query run in just 9 ms:\n\nSELECT SUM(\"distrib_report_items\".\"qty\") AS sum_id\nFROM\n \"distrib_report_items\" INNER JOIN\n \"retailers\" ON \"retailers\".\"id\" = \"distrib_report_items\".\"retaile...
[ { "msg_contents": "Hi,\nI'm currently migrating an oracle schema to postgresql. In the oracle`s\nschema there is a table partition that has partitions by range(date - for\nevery day) and each partition has a sub partition by list(some values..).\nMoreover, the data is loaded from a csv in a bulk. One important ...
[ { "msg_contents": "I'm wondering if there is anything I can tune in my PG 10.1 database to\navoid these errors:\n\n$ psql -f failing_query.sql\npsql:failing_query.sql:46: ERROR: dsa_allocate could not find 7 free pages\nCONTEXT: parallel worker\n\nI tried throttling back the number of parallel workers to jus...
[ { "msg_contents": "Can somebody help me avoid nested loops in below query:\n--\nap_poc_db=# explain (analyze,buffers)\nap_poc_db-# select site_id, account_id FROM ap.site_exposure se\nap_poc_db-# WHERE se.portfolio_id=-1191836\nap_poc_db-# AND EXISTS (select 1 from ap.catevent_flood_sc_split...
[ { "msg_contents": "Hi,\n\nI've tried to run a benchmark, similar to this one:\n\nhttps://www.postgresql.org/message-id/flat/CAHyXU0yiVvfQAnR9cyH%3DHWh1WbLRsioe%3DmzRJTHwtr%3D2azsTdQ%40mail.gmail.com#CAHyXU0yiVvfQAnR9cyH=HWh1WbLRsioe=mzRJTHwtr=2azsTdQ@mail.gmail.com\n\nCREATE TABLESPACE test OWNER postgres LOCAT...
[ { "msg_contents": "Hello!\n\nI brought this issue up about two years ago but without getting any\nreal explanation or solution. The problem is that PostgreSQL does\nreally bad plans using nested loops. With \"enable_nestloop = 0\" the\nsame query is run about 20 times faster.\n\nThe sugested solution I got back...
[ { "msg_contents": "Hi,\n\nI am using Postgres version 9.4.4 on a Mac machine. I have 2 queries that\ndiffer only in the order by clause. One of it has 'nulls last' and the\nother one does not have it. The performance difference between the two is\nconsiderable.\n\nThe slower of the two queries is\n\nSELECT ...
[ { "msg_contents": "Hi,\nI configured range partitions on a date column of my main\ntable(full_table). Each partition represents a day in the month. Every day\npartition has a list parition of 4 tables on a text column.\n\nfull table\n table_01_11_2017 -->\n\n table_02_11_2017\n ...
[ { "msg_contents": "Hi,\nI configured range partitions on a date column of my main table(log_full).\nEach partition represents a day in the month. Every day partition has a\nlist parition of 4 tables on a text column.\n\nlog_full\n log_full_01_11_2017 -->\n log_...
[ { "msg_contents": "This is a bit off-topic, since it is not about the performance of PG itself.\n\nBut maybe some have the same issue.\n\nWe run PostgreSQL in virtual machines which get provided by our customer.\n\nWe are not responsible for the hypervisor and have not access to it.\n\nThe IO performance of our...
[ { "msg_contents": "Hi community,\n\n \n\nI successfully use PG for a while but I am new to the community.\n\n \n\nI have recently written a number of functions that call each other (one of\nthem is recursive). I attach the code of the top-level (plpgsql) functions\nin the file sql.sql along with the structure o...
[ { "msg_contents": "Hello,\nI have the following schema:\n    CREATE TABLE users (        id   BIGSERIAL PRIMARY KEY,        name TEXT      NOT NULL UNIQUE    );        CREATE TABLE friends (        user_id        BIGINT NOT NULL REFERENCES users,        friend_user_id BIGINT NOT NULL REFERENCES users,        UN...
[ { "msg_contents": "Hi,\nI have installed pgpool 2 version 3.7.0 . I'm trying to configure log\nrotation on the pgpool.log but It seems that something wrong. I configured\nin logrotate conf file the parameters :\n\n/PostgreSQL/pgpool/log/pgpool.log {\n\n daily\n\n dateext\n\n missingok\n\n ...
[ { "msg_contents": "Some of my data processes use large quantities of temp space - 5 or 6T\nanyway.\n\nWe are running in Google Cloud. In order to get the best performance out\nof all of my queries that might need temp space, I've configured temp space\non a concatenated local (volatile) SSD volume. In GCE, lo...
[ { "msg_contents": "I have issue that update queries is slow, I need some advice how improve\nspeed. I don't have much control to change queries. But I can change\npostresql server configuration\n\nquery example:\n\nUPDATE \"project_work\" SET \"left\" = (\"project_work\".\"left\" + 2) WHERE\n(\"project_work\".\...
[ { "msg_contents": " Hello experts,\n \n We have the following requirements in single query or any proper solution. Please help on this.\nHow many sessions are currently opened.\n -and if opened then how many queries have executed on that session.\n -and also we have to trace how much time each query is taking.\...
[ { "msg_contents": "Hello team,\n\nI need help how & what we can monitor the Postgres database via Nagios.\n\nI came to know about the check_postgres.pl script but we are using free ware option of postgres. If its Ok with freeware then please let me know the steps how I can implement in our environment.\n\nRega...
[ { "msg_contents": "Hello\n\nI work with a large and wide table (about 300 million rows, about 50 columns), and from time to time, we get business requirements to make some modifications. But sometimes, it's just some plain mistake. This has happened to us a few weeks ago where someone made a mistake and we had ...
[ { "msg_contents": "Hello team,\n\n I need help how & what we can monitor the Postgres database via Nagios.\n\n\n\nI came to know about the check_postgres.pl script but we are using free\nware option of PostgreSQL. If its Ok with freeware then please let me know\nthe steps how I can I use check_postgres <http://...
[ { "msg_contents": "I have created a table with 301 columns(ID, 150 BIGINT, 150 TEXT). The\ntable contains multiple form data differentiated by ID range. Hence a\ncolumn contains more than one form data. To achieve Unique Constraint and\nIndexing per form, I chose PostgreSQL Partial Indexes which suits my\nrequi...
[ { "msg_contents": "Have a query:\n\nexplain analyze SELECT minion_id FROM mob_player_mob_118 WHERE player_id =\n55351078;\n\n QUERY PLAN\n---------------------------------------------------------------------------------------------------------------------------------------------------------------------\n Index ...
[ { "msg_contents": "I have a single table with 45 columns and 6.5 million records with a roughly\nrandom distribution of data of a variety of types. I am trying to implement\na data table with pagination in a web user interface, where the data table\ncan be filtered in a very flexible way on pretty much any comb...
[ { "msg_contents": "Hi List,\n\nI have a short description bellow from Dev team regarding the behaviour \nof gist index on the polygon column, looking to get some  feedback  from \nyou:\n\n\".... I was expecting the <@(point,polygon) and @>(polygon,point) to be \nindexable but they are not. see bellow query outp...
[ { "msg_contents": "Hi Team,\n\nby mistake one physical file dropped for one of our table, as we do-not\nhave backup for this table we are getting below error.\n\nERROR: could not open file \"base/12669/16394\": No such file or directory\n\n\nplease help us to recover the table.\n\n\nRegards,\n\nRambabu Vakada,...
[ { "msg_contents": "Hi Team,\n\nPlease help us to get the query log details from meta data table/command in\npostgresql. aw we are not maintaining log files more than 2 days due to\nlack of space.\n\n\nAnd also please provide document or sop for database upgrade from 9.3 to\n9.6, as our database size was 4.5 tb ...
[ { "msg_contents": "\nDear some consultation, I have a base of about 750 GB in size and we are\nhaving problem of slowness in certain views of the application, so I have\nbeen seeing it is apparently a memory problem because if I run again the\nview runs fast, the base is in a virtual server with 24 GB of RAM an...
[ { "msg_contents": "Hi team,\n\nMy postgre version is 9.4.9, and I face a space issue.\n\nEvery time I restart postgre server, it generates a new history file:\n0000156A.history => 0000156B.history\n\nNow it takes a lot of space about 800MB (5787 history file):\n-rw------- 1 pgsql pgsql 247K Mar 13 14:49 00...
[ { "msg_contents": "Here's a weird one I can't figure out: the definitions of several columns\nof a view, which are not used in a query at all, have a massive effect on\nthe query planner, causing it to choose a seqscan over the largest table in\nour database when it should be using the primary key for the join....
[ { "msg_contents": "Hi, I was wondering if someone could help us work out why this query is so\nslow.\n\nWe've just dumped a database (Postgresql 9.1) and restored it to a new\ninstance (AWS RDS 9.6) (via pg_dump, restored to psql)\n\nWe immediately see that the following fairly straightforward query is now\next...
[ { "msg_contents": "We are trying to implement postgresql code to load a large object into\na postgresql bytea in chunks to avoid loading the file into memory in\nthe client.\n\nFirst attempt was to do\n\nupdate build_attachment set chunk = chunk || newdata ;\n\nthis did not scale and got significantly slower af...
[ { "msg_contents": "Hi,\nI have a query on DB corruption. Is there any way to recover from it \nwithout losing data ?\n\nStarting postgresql service: [ OK ]\npsql: FATAL: index \"pg_authid_rolname_index\" contains unexpected zero page \nat block 0\nHINT: Please REINDEX it.\npsql: FATAL: \"base/11564\" is not a v...
[ { "msg_contents": "\nMy queries get up to 10 times faster when I disable from_collapse\n(setting from_collapse_limit=1).\n\nAfter this finding, The pramatic solution is easy: it needs to be\nswitched off.\n\nBUT:\nI found this perchance, accidentally (after the queries had been\nrunning for years). And this giv...
[ { "msg_contents": "Hi,\n\nI have a table api.issues that has a text column \"body\" with long texts (1000+ chars). I also wrote a custom function \"normalizeBody\" with plv8 that is a simple Text -> Text conversion. Now I created an index applying the function to the body column, so I can quickly run\n\nSELECT ...
[ { "msg_contents": "\nGiven an arbitrary function fn(x) returning numeric.\n\nQuestion: how often is the function executed?\n\n\nA. \nselect fn('const'), fn('const');\n\nAnswer:\nTwice. \n\nThis is not a surprize.\n\n\nB.\nselect v,v from fn('const') as v; [1]\n\nAnswer:\nOnce.\n\n\nC.\nselect v.v,v.v from (sel...
[ { "msg_contents": "Hi I am having terrible trouble with a simple partitioned table.\nSelect queries are very slow.\n\nIe\n\nSELECT ts::timestamptz, s1.sensor_id, s1.value\n FROM sensor_values s1\n WHERE s1.sensor_id =\nANY(ARRAY[596304,597992,61...
[ { "msg_contents": "Hey all,\nI'm using Postgres 10.3\n6 core VM with 16gb of ram\n\nMy database schema requires a good bit of temporal data stored in a\nfew my tables, and I make use of ranges and exclusion constraints to\nkeep my data consistent.\n\nI have quite a few queries in my DB which are using a very su...
[ { "msg_contents": "Folks, I read following (PostgreSQL: Documentation: 9.6: citext) and it does not hold true in my testing.. i.e citext is not performing better than lower.Am I missing something? help is appreciated.\n\n| \n| \n| \n| | |\n\n |\n\n |\n| \n| | \nPostgreSQL: Documentation: 9.6: citext\n\n\n |\...
[ { "msg_contents": "One of our four \"big iron\" (spinning disks) servers went belly up today.\n(Thanks, Postgres and pgbackrest! Easy recovery.) We're planning to move to\na cloud service at the end of the year, so bad timing on this. We didn't\nwant to buy any more hardware, but now it looks like we have to.\n...
[ { "msg_contents": "I have a strange performance issue, i think that is not possible:\n\nGiven this statement:\n\nSELECT *several_fields* FROM A, B, C WHERE *conditions*\nA, B are tables with several LEFT JOINS but they act as one subquery.\n\nIf I execute the select above:\n\nSELECT *several_fields* FROM A, ...
[ { "msg_contents": "Hello, \nI need help in using postgresql 8.4 data in postgres 9.4 version. Do I \nneed to run any tool to achieve the same?\n\nSteps i followed is ran postgresql 8.4 and 9.4, copied data from 8.4 \ninstance to 9.4 and try to start postgresql 9.4 but no luck, getting below \nerror.\n\n[root@ms...
[ { "msg_contents": "*A description of what you are trying to achieve and what results you\nexpect.:*\n\nMy end goal was to test the execution time difference between using an\nIF(SELECT COUNT(*)...) and an IF EXISTS() when no indexes were used and\nwhen a string match was not found. My expectation was that my 2...
[ { "msg_contents": "Hi Team,\n\nCould anyone help me to solve the below issue. I am installing PostgreSQL 9.5 in centos 6 using YUM\n\n\n[root@VM-02 PostgreSQL]# yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6-x86_64/pgdg-centos95-9.5-3.noarch.rpm\n\nLoaded plugins: fastestmirror, ref...
[ { "msg_contents": "Hi all,\nI need help on pg_upgrade from 8.4 to 9.4 version. Appreciate urgent \nresponse.\nInstalled both version and stopped it. Do i need to run both version or \nonly one 8.4 or 9.4 . Both should run on 50432 ?\n\n\n-bash-4.2$ id\nuid=26(postgres) gid=26(postgres) groups=26(postgres) \ncon...
[ { "msg_contents": "Hi,\n\nI'm running the same query with \"set enable_seqscan = on;\" and \"set \nenable_seqscan = off;\":\n\n->  Nested Loop Left Join  (cost=0.00..89642.86 rows=1 width=30) (actual \ntime=1.612..6924.232 rows=3289 loops=1)\n       Join Filter: (sys_user.user_id = j_6634.id)\n       Rows Remov...
[ { "msg_contents": "Hi,\n\nI am running postgresql db server 9.4.14 on AWS of C4.2xlarge instance type\nwith 500 GB volume of volume type io1 with 25000 IOPS and I am seeing\nperformance issues. The sql query response takes around *127713.413 ms *time\n*.* Is there a way to find out the bottleneck?\n\nThe select...
[ { "msg_contents": "I’m trying to get a query to use the index for sorting. As far as I can understand it should be possible. Since you’re reading this you’ve probably guessed that I’m stuck.\n\nI’ve boiled down my issue to the script below. Note that my real query needs about 80MB for the quick sort. The versio...
[ { "msg_contents": "Dear all\n\nCould you help me understand these two execution plans for the same\nquery (query 3 benchmark TPCH www.tpc.org/tpch), executed in two\ndifferent environments of Postgresql, as described below. These plans\nwere generated by the EXPLAIN ANALYZE command, and the time of plan 1\nwas ...
[ { "msg_contents": "Hi,\n\nI'm trying to debug improve the performance of my time bucketing query.\nWhat I'm trying to do is essentially bucket by an arbitrary interval and\nthen do some aggregations within that interval (min,max,sum, etc). I am\nusing a `max` in the query I posted. For context in the data, it i...
[ { "msg_contents": "Hi Team,\r\n\r\nWe are facing issues with one of our query, when we use order by count it is taking lot of time to execute the query. To be precise it is taking 9 min to execute the query from table which has ~220 million records. Is there a way to make this query run faster and efficiently u...
[ { "msg_contents": "Hi all,\n\nHope my mail finds you in good time. I had a problem with a query which is\nhitting the production seriously.\nThe below is the sub part of the query for which I cannot reduce the CPU\ncost. \n\nPlease check and verify whether I'm doing wrong or whether that type index\ntype suits ...
[ { "msg_contents": "What would the list think of a web form for submitting problems the performance\nlist, similar to the pgsql-bugs form?\n\nAlternately, or perhaps additionally, a script (hopefully bundled with\npostgres) which collects at least the non-query specific info and probably\ncreates .logfile file f...
[ { "msg_contents": "Hi all,\n\nWe have a query which is rather slow (about 10 seconds), and it looks like this:\n\nselect inventory.date, asset.name, inventory.quantity\nfrom temp.inventory\nleft outer join temp.asset on asset.id = id_asset\norder by inventory.date, asset.name\nlimit 100\n\nThe inventory table h...
[ { "msg_contents": "Hi,\n\nI have a query with a strange query plan.\n\nThis query is roughly searching for sales, and convert them with a currency\nrate. As currency rate changes from time to time, table contains the\ncurrency, the company, the rate, the start date of availability of this\nrate and the end date...
[ { "msg_contents": "Trying to optimize the Elapsed Time (ET) of this query. Currently, it is \nhovering around 3 hrs.\n\nRunning a 'vaccum analyse' had no effect on ET. Even forcing an \n'indexonly' scan by disabling 'enable_seqscan', still around the 3 hrs.\n\nThe table is around 4.6B rows,\n\n  explain select ...
[ { "msg_contents": "In older versions of pg_upgrade (e.g from 9.2 to 9.3), I was able to run pg_upgrade without stopping old cluster using the check flag.\n\npg_upgrade -b <old-bin> -B <new-bin> -d <old-data> -D <new-data> -p 5432 -P 5434 -r -v -k -c\n\nNote the \"c\" flag at the end\n\nHowever pg_upgrade in 10 ...