threads
listlengths
1
275
[ { "msg_contents": "Good Morning,\n\nWe are a team of Graduate students work at the IBM Runtime Labs at University of New Brunswick. We are working on development of a query compiler for postgresql. We are already done with tuple deformation but we are not able to get the expected speedup compared to the one wit...
[ { "msg_contents": "Hi Performance Guys,\n\nI hope you can help me. I am joining two tables, that have a foreign key relationship. So I expect the optimizer to estimate the number of the resulting rows to be the same as the number of the returned rows of one of the tables. But the estimate is way too low.\n\nI h...
[ { "msg_contents": "I'm trying to understand a bad estimate by the planner, and what I can do about it. The anonymized plan is here: https://explain.depesz.com/s/0MDz\n\nThe item I'm focused on is node 23. The estimate is for 7 rows, actual is 896 (multiplied by 1062 loops). I'm confused about two things in this...
[ { "msg_contents": "Hello,\nI have a large table (about 13 million rows) full of customer order information. Since most of that information is for orders that have already been fulfilled, I have a partial index to help quickly zero in on rows that have not been fulfilled. This works well, but I noticed today whe...
[ { "msg_contents": "Hi,\r\n\r\nI would like to join a partitioned table and have the joined columns in the where clause to be used for partition pruning.\r\nFrom some readings in the internet, I conclude that this was not possible in v12. I hoped for the “improvements in partition pruning” in v13, but it seems t...
[ { "msg_contents": "Hello (TL;DR):\n\nNoob here, so please bear with me. The SQL I'm presenting is part of a\nlarger PL/PGSQL script that generates generic \"counts\" from tables in our\ndatabase. This is code converted from an Oracle database that we recently\nmigrated from.\n\nI have a strange situation whe...
[ { "msg_contents": "SORRY! Here's a link that should show the plan:\n\nhttps://explain.depesz.com/s/SCdY\n\n\n-- \n\n---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------...
[ { "msg_contents": "Hi Guys, Sorry for the bold below. I just feel it helps others identify my question easily.\n\nA description of what you are trying to achieve and what results you expect.:\n\nA very low cost query running long (clustered and vacuumed and analyzed on join columns), a very generic query..What...
[ { "msg_contents": "Hello,\n\nI've got a postgres master node that receives a lot of writes, WAL \nwritten at 100MB/sec or more at times.\nAnd when these load spikes happen streaming replication starts lagging.\nIt looks like the lag happens on sending stage, and is limited by the \nmaster pg_wal partition throu...
[ { "msg_contents": "Hi list,\n\nWe have an application that generates SQL statements that are then executed\non a postgresql database. The statements are always \"bulk\" type statements:\nthey always return a relatively large amount of data, and have only a few\nnot very selective filter expressions. They do con...
[ { "msg_contents": "Hello to all,\nCan you help me understand if it is fessible to install clustered Postgres 12 on 2 balanced servers with VmWsare?\nWho has had this experience and can you share more information with me?\n\nBest Regards,\nNancy\n\n\n\n\n\n\n\n\n\n\n\n\nHello to all,\nCan you help me understand ...
[ { "msg_contents": "If it helps, here's the details of the hardware config.\nThe controller is |AVAGO MegaRAID SAS 9361-4i|,\nthe SSDs are |INTEL SSDSC2KG960G8| (configured as a raid1).\nCurrent scheduler used is deadline.\nCurrently XFS is mounted without nobarriers, but I'm going to set that \nwhen there's hig...
[ { "msg_contents": "Hi,\n\nI noticed something strange in our PG server. I have a table named\n'timetable' that has only one bigint column and one row.\n\nOnce in every 5 seconds this row is updated to the current time epoch\nvalue in milliseconds.\n\nThe update query seems to be taking considerable time (avg 50...
[ { "msg_contents": "Hi,\n\nThe feed_posts table has over 50 Million rows.\n\nWhen I m deleting all rows of a certain type that are over 60 days old.\n\nWhen I try to do a delete like this: it hangs for an entire day, so I\nneed to kill it with pg_terminate_backend(pid).\n\nDELETE FROM feed_posts\nWHERE feed_def...
[ { "msg_contents": "Hi,\nCan we disable not null constraints temporarily in the session-based transaction, like we disable FK constraints? \nSETsession_replication_role = ‘replica’; alter table table_name disable trigger user;”\n\nabove two options are working for unique constraints violation exception. \nThanks...
[ { "msg_contents": "Hi Team,\n\nWe are using Postgresql JSONB as storage type in our development.\nIn the below table , RECORD column has JSONB data and we create a view which will derive the column \"TEST_MV_2\" from column \"RECORD\" as below\n\nCREATE OR REPLACE VIEW public.\"V_TEST_SELECT\"\nAS\n SELECT a....
[ { "msg_contents": "Hello!\n\nWe have a multi-tenant service where each customer has millions of users\n(total: ~150M rows). Now we would like to let each customer define some\ncustom columns for his users and then let the customer search his users\nefficiently based on these columns.\n\nThis problem seems reall...
[ { "msg_contents": "Hi,\n\nWe are getting this alert frequently \"Required checkpoints occurs too\nfrequently\" on postgres version 11.8\n\nThe RAM of the server is 16 GB.\n\nand we have already set the max_wal_size= 4096 MB\nmin_wal_size= 192 MB.\n\nPlease help me in optimizing the same to avoid this alert.\n\n...
[ { "msg_contents": "Hello,\n\nWe are having performance issues with a table partitioned by date, using\ncomposite type columns.\nI have attached the table definition, full reproducible of the issue and\nexecution plans to this email.\n\nUltimately, we want to sum certain fields contained in those composite\ntype...
[ { "msg_contents": "Hi all,\r\n\r\nWe have facing some discrepancy in Postgresql database related to the autovacuum functionality.\r\nBy default autovacuum was enable on Postgres which is used to remove the dead tuples from the database.\r\n\r\nWe have observed autovaccum cleaning dead rows from table_A but same...
[ { "msg_contents": "Hi\n\nPlease help me with document for oracle to postgresql\nuseing Ora2pgtool\n\n-- \nThanks and Regards\nRajshekhariah Umesh\n\nHi Please help me with document for oracle to postgresqluseing Ora2pgtool-- Thanks and RegardsRajshekhariah Umesh", "msg_date": "Fri, 18 Dec 2020 16:13:05 +053...
[ { "msg_contents": "Hi. I'm wondering if this is normal or at least known behavior?\nBasically, if I'm specifying a LIMIT and also NULLS FIRST (or NULLS LAST\nwith a descending sort), I get a sequence scan and a couple of orders of\nmagnitude slower query. Perhaps not relevantly, but definitely ironically,\nt...
[ { "msg_contents": "Hi all, I have a general question on scaling PostgreSQL for unlimited \nthroughput, based on some experience.\n\nTL;DR: My question is: given that the work-load on any secondary/standby \ndatabase server is almost the same as that of the master database \nserver, is there any point to bother ...
[ { "msg_contents": "Hi,\n\nI have a performance problem with a query. I've uploaded it, along with\nthe EXPLAIN ANALYZE output here [1].\n\n1: https://explain.depesz.com/s/w5vP\n\nI think the query is taking longer than I'd like, as PostgreSQL is not\ngenerating a great plan, in particular the estimated rows in ...
[ { "msg_contents": "Good morning,\n\nThis week we've noticed that we're starting to see spikes where COMMITs are\ntaking much longer than usual. Sometimes, quite a few seconds to finish.\nAfter a few minutes they disappear but then return seemingly at random.\nThis becomes visible to the app and end user as a bi...
[ { "msg_contents": "Hi,\n\nThanks in advance for your help. I'm putting as much context and details as\npossible, but let me know if you have any questions.\n\nWhat?\n\nWe are experiencing some slow queries due to the query planner using an\nincorrect index. It is using an unoptimized index because the stats are...
[ { "msg_contents": "Hi,\r\n\r\nWe have got the result of the VACUUM (VERBOSE) as suggested, please find the output as following & suggest further.\r\n\r\nBut please note that this was done on an non production server where uncleaned data was there, although no dead tuples as it doesn’t run any configuration at p...
[ { "msg_contents": "Hi all,\n\n*My top-level query is*: I'm using logical replication under pg 9.6 to do a\nkind of change data capture and I'm seeing occasional extended periods of\nsignificant lag. I'm not sure what conceptual model I'm missing in order to\nunderstand why this happens.\n\n*The details:*\n\nI'm...
[ { "msg_contents": "Hi,\nI have a query performance issue, it takes a long time, and not even getting explain analyze the output. this query joining on 3 tables which have around a - 176223509\nb - 286887780\nc - 214219514\n\n\n\nexplainselect  Count(a.\"individual_entity_proxy_id\")from \"prospect\" ainner join...
[ { "msg_contents": "Hello,\n\nI'm seeking guidance in how to improve the performance of a slow query and\nto have some other sets of eyes confirm that what I wrote does what I\nintend.\n\nAccording to the PostgreSQL wiki there is a set of metadata that I should\nprovide to help you help me. So let's begin there....
[ { "msg_contents": "Hi all,\nI'm running a virtual machine with FreeBSD 12.2, PostgreSQL 12.5 and\nUFS as filesystem.\nI was experimenting with fsync = off and pgbench, and I see no\nparticular difference in tps having fsync enabled or disabled.\nNow, the same tiny test on a linux box provides a 10x tps, while o...
[ { "msg_contents": "Hi everyone,\n\nI have 2 postgres instances created from the same dump (backup), one on a\nGCP VM and the other on AWS RDS. The first instance takes 18 minutes and\nthe second one takes less than 20s to run this simples query:\nSELECT \"Id\", \"DateTime\", \"SignalRegisterId\", \"Raw\" FROM\n...
[ { "msg_contents": "Hi,\n\n\nI want to examine the exhaustive search and not the geqo here. I'd expect the exhaustive search to give the plan with the lowest cost, but apparently it doesn't. I have found a few dozen different querys where that isn't the case. I attached one straight forward example. For the join...
[ { "msg_contents": "# Performance issues discovered from differential test\n\nHello. We are studying DBMS from GeorgiaTech and reporting interesting queries that potentially show performance problems.\n\nTo discover such cases, we used the following procedures:\n\n* Install four DBMSs with the latest version (Po...
[ { "msg_contents": "Hello,\n\n\nWe have 2 TPC-H queries which fetch the same tuples but have significant query execution time differences (4.3 times).\n\n\nWe are sharing a pair of TPC-H queries that exhibit this performance difference:\n\n\nFirst query:\n\nSELECT \"ps_comment\",\n\n \"ps_suppkey\",\n\n ...
[ { "msg_contents": "Hello,\n\n\nWe have 2 TPC-H queries which fetch the same tuples but have significant query execution time differences (22.0 times).\n\n\nWe are sharing a pair of TPC-H queries that exhibit this performance difference:\n\n\nFirst query:\n\nSELECT \"orders3\".\"o_comment\",\n\n \"or...
[ { "msg_contents": "Hi, I have to configure a postgresql in high availability.\nI want to ask you what tool you recommend to manage replication and\nfailover or switchover.\nThanks.\nRegards.-\n\nPablo.\n\nHi, I have to configure a postgresql in high availability.I want to ask you what tool you recommend to mana...
[ { "msg_contents": "Hi Everyone,\nI was trying to collect table metadata with a description; the use case is that I need to show all columns of the tables whether it has the description or not. \nI tried the below query, but it only gives column details that have a description and ignore others if not. \n\nPostg...
[ { "msg_contents": "Hi everyone,\n\nI have a SELECT query that uses a long chain of CTEs (6) and is executed\nrepeatedly as part of the transaction (with different parameters). It is\nexecuted quickly most of the time, but sometimes becomes very slow. I\nmanaged to consistently reproduce the issue by executing a...
[ { "msg_contents": "Hi all,\nI would appreciate if somebody could help me understanding why the query\ndescribed below takes very different execution times to complete, almost\ncompletely randomly.\n\nI have two very \"simple\" tables, A and B:\n\nCREATE TABLE A (\na1 varchar(10) NULL,\na2 varchar(10) NULL,\nv i...
[ { "msg_contents": "Hi,\n\nI have a quick question, does role custom parameters settings will be granted to users well? \nDoes user c_role will have the same settings m_role.CREATE ROLE m_role ;CREATE ROLE c_role ;ALTER ROLE m_role  SET configuration_parameter TO 'VALUE';GRANT m_role TO c_role;\nHi,I have a quic...
[ { "msg_contents": "All;\n\n\nWe have a client that is running PostgreSQL 12, they have a table with \n212 columns and 723 partitions\n\n\nIt seems the planning time is consumed by generating 723 sub plans\n\nI suspect it's due to the fact that they are using hash based \npartitioning, example:\n\n\nCREATE TABLE...
[ { "msg_contents": "Hi\n\nI am having a rare issue with extremely inefficient merge join. The query\nplan indicates that PG is doing some kind of nested loop, although an index\nis present.\n\nPostgreSQL 9.6.17 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5\n20150623 (Red Hat 4.8.5-39), 64-bit\n\nSchema of ...
[ { "msg_contents": "AWS RDS v12\n\nThe following SQL takes ~25 seconds to run. I'm relatively new to postgres\nbut the execution plan (https://explain.depesz.com/s/N4oR) looks like it's\nmaterializing the entire EXISTS subquery for each row returned by the rest\nof the query before probing for plate_384_id exist...
[ { "msg_contents": "Hi all,\n\nI have a query where Postgresql (11.9 at the moment) is making an odd plan\nchoice, choosing to use index scans which require filtering out millions of\nrows, rather than \"just\" doing an aggregate over the rows the where clause\ntargets which is much faster.\nAFAICT it isn't a st...
[ { "msg_contents": "Hi,\n\nWe are trying to find maximum throughput in terms of transactions per\nsecond (or simultaneous read+write SQL operations per second) for a use\ncase that does one ACID transaction (consisting of tens of reads and tens\nof updates/ inserts) per incoming stream element on a high-volume\n...
[ { "msg_contents": "Hi,\nWe migrated our Oracle Databases to PostgreSQL. One of the simple select\nquery that takes 4 ms on Oracle is taking around 200 ms on PostgreSQL.\nCould you please advise. Please find query and query plans below. Gather\ncost seems high. Will increasing max_parallel_worker_per_gather help...
[ { "msg_contents": "Hi,\nWe have few select queries during which we see SHARED LOCKS and EXCLUSIVE\nLOCKS on tables. Can these locks cause slowness? Is there any way to reduce\nthe locks?\n\nWhat must be causing ACCESS EXCLUSIVE LOCKS when the application is running\nselect queries? Is it AUTOVACUUM?\n\nRegards,...
[ { "msg_contents": "Hi,\n\nI wonder can we set up a hot standby in such a way that we don't need \nany log streaming nor shipping, where instead every hot standby just \nmounts the same disk in read-only mode which the master uses to write \nhis WAL files?\n\nEven without a clustered file system, e.g., a UFS on ...
[ { "msg_contents": "Hi,\nWe have to access data from one schema to another. We have created a view\nfor this but performance is not good. We tried materialized views as well\nbut Refresh MV is creating problem as it puts and access exclusive locks.\n\nIs there any other way to achieve this?\n\n\nRegards,\nAditya...
[ { "msg_contents": "Hi,\nBelow query takes 12 seconds. We have an index on postcode.\n\nselect count(*) from table where postcode >= '00420' AND postcode <= '00500'\n\nindex:\n\nCREATE INDEX Table_i1\n ON table USING btree\n ((postcode::numeric));\n\nTable has 180,000 rows and the count is 150,000. Expe...
[ { "msg_contents": "Hi,\n\n \n\nWe have a Class db.t2.medium database on AWS.\n\nWe use a procedure to transfer data records from the Source to the Target\nSchema.\n\nTransfers are identified by the log_id field in the target table.\n\n \n\nThe procedure is:\n\n1 all records are deleted from the Target table wit...
[ { "msg_contents": "Hi,\nI need to combine results of multiple rows in one row. I get below error.\nCould you please help.\n\nQuery:\n\nselect string_agg((select '******' || P.PhaseName || ' - ' ||\nR.Recommendation AS \"ABC\" from tblAssessmentRecommendation\nR,tblAssessmentPhases P\nwhere R.PhaseID = P.PhaseI...
[ { "msg_contents": "Hi,\nWe are trying to load data around 1Bil records into one table with INSERT statements (not able to use COPY command) and they are been waiting for a lock and the wait_event is \"transactionid\", I didn't find any information in the documents. Queries have been waiting for hours.\nTable DD...
[ { "msg_contents": "Hello, apologies for the long post, but I want to make sure I’ve got enough\ndetails to describe the problem for y’all.\n\n\n\nI’ve got a 64-core (Ubuntu 18.04 – 240GB RAM running at GCP) instance\nrunning PG 13.2 and PostGIS 3.1.1 and we’re having troubles getting it to\nrun more than 30 or ...
[ { "msg_contents": "Hey all,\n\nI've been pulling my hair out over this for days now, as I'm trying to\nbuild a low latency application. Databases should be fast, but I can not\nwork out why so much latency is added between the actual database process\nand the application code. For simple queries, that should ta...
[ { "msg_contents": "Hi,\n\nI currently have a strange behavior once statistics are collected. This is the statement (I don't know the application, the statement is as it is):\n\nexplain (analyze, buffers) select distinct standardzi4_.code as col_0_0_,\n person1_.personalnummer as col_1_0_,\n...
[ { "msg_contents": "Hi,\n \nIs there any way to set time that CURRENT_TIMESTAMP and/or now() will give next time? (We need it only for testing purposes so if there is any hack, cheat, etc. It will be fine)\n \n \n \n \nHi, Is there any way to set time that CURRENT_TIMESTAMP and/or now() will give next time? (We ...
[ { "msg_contents": "Hello,\n\n \n\nWe want to start migration to POSTGRESQL13 from MSSQL SERVER but we\ncouldnt find any solution for oledb drivers. Please help us to find a\nsolution or any workaround if possible.\n\n \n\n \n\n \n\nThanks.\n\nMustafa\n\n\nHello, We want to start migration to POSTGRESQL13 from...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 16968\nLogged by: Eugen Konkov\nEmail address: kes-kes@yandex.ru\nPostgreSQL version: 13.1\nOperating system: Linux Mint 19.3\nDescription: \n\nTLDR;\r\nIf I refer to same column by different ways ...
[ { "msg_contents": "Hello,\n\nI need to partition a table on an integer column, which represents the\nmonth of an event, so 12 distinct values.\nI am just wondering if any of you has experience about which is the best\nway to go with such a use case, in particular which method pick up between\nrange, list and ha...
[ { "msg_contents": "Hi all,\nI'm unable to find (apparently) a way to find out a possible value to\nstart with for effective_io_concurrency.\nI suspect that benchmarking, e.g., using bonnie++ or sysbench and\ntesting with different values of concurrency could help to determine\nthe max number of concurrent reque...
[ { "msg_contents": "I'm curious, really. I use btrfs as my filesystem on my home systems and am setting up a server as I near releasing my project. I planned to use btrfs on the server, but it got me thinking about PostgreSQL 13. Does anyone know if it would have a major performance impact?\n\nSimon.", "msg_...
[ { "msg_contents": "Hi!\n\nMy question is: is it possible to optimize function order execution?\n\nHere's explanation:\n\nI have a bunch of queries that have volatile quals, some more than one. For example:\n\nSELECT *\n FROM clients\n WHERE some_func(client_id)\n AND some_other_func(client_id) \n\nNow, I kno...
[ { "msg_contents": "Hi,\nOne of the procs which accept tabletype as parameter gives below error\nwhile being called from Application. Could not find a concrete solution for\nthis. Can someone help?\n\ncall PROCEDURE ABC (p_optiontable optiontype)\n\n\n\nBelow is the error while executing proc -\n\n“the clr type ...
[ { "msg_contents": "Hi!\n\nWhich postgresql logging parameters should I activate to log the “number of tuples returned” for a query?\nI would like to debug some dynamicly generated queries in the system that are returning a absurd number of tuples (> 2,6mi of records).\n\nThanks,\n\nER\n\nEnviado do Email<https:...
[ { "msg_contents": "PreparedStatement: 15s\nRaw query with embedded params: 1s\nSee issue on github with query and explain analyze:\nhttps://github.com/pgjdbc/pgjdbc/issues/2145 \n<https://github.com/pgjdbc/pgjdbc/issues/2145> \n\n\n\nPreparedStatement: 15sRaw query with embedded params: 1sSee issue on github wi...
[ { "msg_contents": "Hi there,\n\nI've recently been involved in migrating our old system to SQL Server and\nthen PostgreSQL. Everything has been working fine so far but now after\nexecuting our tests on Postgres, we saw a very slow running query on a\nlarge table in our database.\nI have tried asking on other pl...
[ { "msg_contents": "Hi Team,\n\nI have query in terms of lock monitoring in PostgreSQL where I am not able to find a way to figure out what value has been passed in SQL statement (from JDBC driver as prepared statement).\n\nI am using PostgreSQL 13 version.\n\nThe following is the SQL statement I am running in P...
[ { "msg_contents": "Hi\n\nI am trying to use `pgmetrics` on a big (10TB+), busy (1GB/s RW) database.\nIt takes around 5 minutes for pgmetrics to run. I traced the problem to the\n\"bloat query\" (version of\nhttps://wiki.postgresql.org/wiki/Show_database_bloat) spinning in CPU,\ndoing no I/O.\n\nI have traced th...
[ { "msg_contents": "Good day\n\n \n\nI'm struggling with a Postgres 13 performance issue and nothing I do seem to\nhelp.\n\n \n\nI have two tables with one having a foreign key to the other. It happens to\nbe for this one client the foreign key is always null, so no violation would\nbe possible. When deleting fr...
[ { "msg_contents": "Hi,\nI am trying to create partitions on the table based on first letter of the column record  value using inherit relation & check constraint.\nSomehow able to create and load the data into the tables as per my requirement.\nBut the problem is when querying the data on that partitioned colum...
[ { "msg_contents": "Hi,\n\nmy POC in postgres 12.(important ?)\n\nif I setup 2 postgres clusters, and create a publication in one and a\nsubscription in the other,\nand do on the pub an update which does not change the data (updating an\nexisting record with same data) then this (useless) update go through\nrepl...
[ { "msg_contents": "I am seeing a strange issue on a database using jdbc. Regularly, 4 or\n5 times a day, I see something like a \"stutter\", where a bundle of\nmaybe 30 transactions suddenly finish at the same time. It looks like\n(it is quite hard to catch this exactly) that the lead transaction\nwhich has ...
[ { "msg_contents": "Hi list.\n\nI have a question about the different plans produced by postgres for\nan outer join versus an inner join.\n\n(complete sql script attached)\n\nTake these two tables:\n\n CREATE TABLE album\n ( id SERIAL PRIMARY KEY,\n title TEXT NOT NULL\n );\n CREATE INDEX ...
[ { "msg_contents": "I have a table 'sub_soc' with 3BIL records, it's been partitioned and indexed on the soc column. when the user is running a query with left join on this table and joining some other tables, the query planner doing a full table scan instead of looking into partitioned tables and index scan. \n...
[ { "msg_contents": "Hello Pgsql-performance,\n\nTo not flood network with many parameters I send only one and use `WITH` hack to reuse value inside query:\n\nWITH\n_app_period AS ( select app_period() ),\nready AS (\nSELECT\n\n min( lower( o.app_period ) ) OVER ( PARTITION BY agreement_id ) <@ (select * from _a...
[ { "msg_contents": "I started to use PostgreSQL v7.3 in 2003 on my home Linux systems (4 at \none point), gradually moving to v9.0 w/ replication in 2010.  In 2017 I \nmoved my 20GB database to AWS/RDS, gradually upgrading to v9.6, & was \nentirely satisfied with the result.\n\nIn March of this year, AWS announc...
[ { "msg_contents": "[Reposted to the proper list]\n\nI started to use PostgreSQL v7.3 in 2003 on my home Linux systems (4 at \none point), gradually moving to v9.0 w/ replication in 2010.  In 2017 I \nmoved my 20GB database to AWS/RDS, gradually upgrading to v9.6, & was \nentirely satisfied with the result.\n\nI...
[ { "msg_contents": "below query is slow even with no data\n\n\nexplain ANALYZE\n\nWITH business AS( SELECT * FROM get_businessday_utc_f() start_date)\n SELECT ro.order_id,\n ro.date_time,\n round(ro.order_amount, 2) AS order_amount,\n b.branch_id,\n b.branch_name,\n st_x(b.location) AS from_x,\n ...
[ { "msg_contents": "Dear All,\n\nI have demo stand on Hyper-V (2xIntel E5-2650v2, 256GB RAM, Intel SSDs in RAID):\n* One VM with 1C application Server\n* 2 database VMs with same database imported into each PostgreSQL (~56Gb, \"1C accounting 3.0\" config):\n1. CentOS 7 with postgresql_12.6_6.1C_x86_64 (distribut...
[ { "msg_contents": "I am using postgres 12 on AWS RDS\n\ncould someone clarify why the LEFT JOIN order_offer_map oom using\n(order_id) in the below query is using sequential scan instead of\nusing index on order_id which is defined in order_offer_map table.\n\n\n\n\nexplain ANALYZE\n\nWITH business AS( SELECT * ...
[ { "msg_contents": "Other than Dexter, Is there an auto tune or query performance indicator for\npostgres ?\nAlso which are the most commonly used monitoring (slow query, cpu, index\ncreation for missing indexs ) tools being used for postgres ?\n\n--Ayub\n\nOther than Dexter, Is there an auto tune or query perfo...
[ { "msg_contents": "I checked all the indexes are defined on the tables however the query seems\nslow, below is the plan. Can any one give any pointers to verify ?\n\nSELECT a.menu_item_id, a.menu_item_name, a.menu_item_category_id,\nb.menu_item_category_desc, c.menu_item_variant_id,\nc.menu_item_variant_type_id...
[ { "msg_contents": "attached is the screenshot of RDS performance insights for AWS and it shows\nhigh waiting client writes. The api performance is slow. I read that this\nmight be due to IOPS on RDS. However we have 80k IOPS on this test RDS.\n\nBelow is the query which is being load tested\n\nSELECT\n\n ...
[ { "msg_contents": "Hello Everyone,\n\nI trust that everyone is Keep doing very Well !\n\nWe have installed PostgreSQL V13 on window’s server 2016, where we kept the Ram of the Server is 32 GB and disk size is 270 GB.Later we faced some performance issues regarding the database, after deep dive into it we came u...
[ { "msg_contents": "Hello,\n\nAfter checking doc, only mentioned vm.overcommit_memory=2, but didn't\nmentioned vm.overcommit_ratio recommended value\n\nhttps://www.postgresql.org/docs/11/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT\n\nsome articles mentioned that 80 or 90 configuration in their env\n\nSo is it ...
[ { "msg_contents": "Hello Everyone !\n\nI trust that you guys are keep doing very Well ! \n\nDoes anyone have complete documentation to configure PostgreSQL V13 Master and Slave on Windows Server\nand also how to test Manual Failover ?\n\nWould highly appreciated, if someone could help in this regard.\n\nBr,\nHa...
[ { "msg_contents": "Hello Everyone,\n\nApologies in advance I don't know where to get knowledge regarding this\nissue that's why I posted here, Highly appreciated if someone could help on\nthis regard\n\nWe have installed and configured PostgreSQL V13 Master- Slave streaming\nreplication on Windows server 2016 ...
[ { "msg_contents": "Is this reasonable thinking?\n\nI'd think that one would want a *wal_keep_size* to cover the pending \nupdates while the standby server might be unavailable, however long one \nmight anticipate that would be.\n\nIn my case, I get a complete replacement (in the form of \"|\"- delimited \nASCII...
[ { "msg_contents": "we have some partitioned tables with inherence and planning to migrate them to the declaration.\n\nTable DDL:\n\nCREATE TABLE c_account_p\n\n(\n\n    billing_account_guid character varying(40)  NOT NULL,\n\n    ingestion_process_id bigint NOT NULL DEFAULT '-1'::integer,\n\n    load_dttm times...
[ { "msg_contents": "I am using postgresql 12 and using cursors in a stored procedure,\nexecuting procedure which has cursor is slowing down the call. However if I\ndo not use the cursor and just execute the queries using JDBC (Java client)\nit's fast.\n\nIs there any setting which needs to be modified to improve...
[ { "msg_contents": "Hello guys, I'm facing a problem. Currently I'm working on a Data\ntransformation Pipeline on Postgres. The strategy is,\n\nWe select every tables in a given schema ( 50 tables ), we apply some case\nwhen, translation, enum and load it into a different new schema with a\nCREATE TABLE SCHEMA_2...
[ { "msg_contents": "Hi, \n\n\n\nOn my production environment (PostgreSQL 13.3), one of my queries runs very slow, about 2 minutes.\n\nI noticed that it does not use an execution plan that I anticapited it would.\n\n\n\nThe query is :\n\n\n\nSELECT t.*\n\nFROM test t \n\nWHERE  t.\"existe\" IS true\n\nand  t.json...
[ { "msg_contents": "Hi, \n\n\n\nOn my production environment (PostgreSQL 13.3), one of my queries runs very slow, about 2 minutes.\n\nI noticed that it does not use an execution plan that I anticapited it would.\n\n\n\nThe query is :\n\n\n\nSELECT t.*\n\nFROM test t \n\nWHERE  t.\"existe\" IS true\n\nand  t.json...
[ { "msg_contents": "Hello everyone,\nI have a scenario where wanted to add PK on partition to make sure to monitor unique values for two columns values. but as PG required to partition column should be part of PK. How can we make sure actual two columns need to be unique values.\nand also while insert into table...
[ { "msg_contents": "Hi all,\n\nI got a question about PG log lines with temporary file info like this:\n\ncase 1: log line with no contextual info\n2021-07-07 20:28:15 UTC:10.100.11.95(50274):myapp@mydb:[35200]:LOG: \ntemporary file: path \"base/pgsql_tmp/pgsql_tmp35200.0\", size 389390336\n\ncase 2: log line wi...
[ { "msg_contents": "Hi,\n\nProbably my google-foo is weak today but I couldn't find any \n(convincing) explanation for this.\n\nI'm running PostgreSQL 12.6 on 64-bit Linux (CentOS 7, PostgreSQL \ncompiled from sources) and I'm trying to insert 30k rows into a simple \ntable that has an \"ON INSERT .. FOR EACH ST...
[ { "msg_contents": "New to Postgres, Oracle background. With Oracle the amount of work a query does is tracked via logical reads. Oracle tracks logical and physical reads differently than Postgres. With Oracle a physical read is always considered a logical read. So if a query reads 5 blocks are all 5 are rea...
[ { "msg_contents": "Hello,\n\nWe have a data warehouse working on Postgres V11.2. We have a query that is pretty beefy that has been taking under 5mn to run consistently every day for about 2 years as part of a data warehouse ETL process. It's a pivot over 55 values on a table with some 15M rows. The total table...