threads listlengths 1 275 |
|---|
[
{
"msg_contents": "Quick(?) question... why is there a Sort node after an Index Only Scan?\nShouldn't the index already spit out sorted tuples?\n\nCREATE INDEX ON orders_test(shipping_date, order_id);\n\nEXPLAIN ANALYZE SELECT\nFROM orders_test\nWHERE TRUE\nAND shipping_date >= '2022-05-01'\nAND shipping_date <... |
[
{
"msg_contents": "Dear All,\n\nWe have recently upgraded Postgresql 9.4 standalone server to Postgresql\n11.2 with High Availability (2 servers : Master and Standby).\n\nWhile trying to test using ETL applications and reports, we observe that\nthe ETL jobs fails with below error,\n\n2022/05/06 16:27:36 - Error... |
[
{
"msg_contents": "Hi Team,\n\nWe are facing an issue in running the query which takes at least 30 sec to run in PostgreSQL.\n\nWe have tried to create the indexes and done the maintenance and still that query is taking same time.\n\nBelow are the explain plan for the query.\n\nhttps://explain.depesz.com/s/sPo2... |
[
{
"msg_contents": "Hi,\nOne of our applications needs 3000 max_connections to the database.\nConnection pooler like pgbouncer or pgpool is not certified within the\norganization yet. So they are looking for setting up high configuration\nHardware with CPU and Memory. Can someone advise how much memory and CPU\n... |
[
{
"msg_contents": "Hi All\n\n I am a Database DBA. I focus on PostgreSQL and DB2.\n Recently. I experience some memory issue. The postgres unable allocate\nmemory. I don't know how to monitor Postgres memory usage.\n I try to search some document. But not found any useful information.\n This server have 16G ... |
[
{
"msg_contents": "Hello, please look into following example:\n\npostgres=# create table test_array_selectivity as select \narray[id]::int[] as a from generate_series(1, 10000000) gs(id);\nSELECT 10000000\npostgres=# explain analyze select * from test_array_selectivity where a \n@> array[1];\n ... |
[
{
"msg_contents": "Hi,\n We have a performance test on Postgresql 13.4 on RHEL8.4 , just after connection storm in ( 952 new connections coming in 1 minute), a lot of backends start on \" D \" state, and when more sessions got disconnected, they do not exit successfully, instead became \"defunct\". No er... |
[
{
"msg_contents": "> Hi,\n>\n> We are trying to reindex 600k tables in a single database of size 2.7TB\n> using reindexdb utility in a shell script\n> reindexdb -v -d $dbname -h $hostname -U tkcsowner --concurrently -j\n> $parallel -S $schema\n>\n> our config is as below\n> name | se... |
[
{
"msg_contents": "Hi listers,\n\nIs there any sql query which we can use to find the logical reads performed\nby particular sql statement in postgres ??\n\nThanks,\nGoti\n-- \nThanks,\n\nGoti\n\nHi listers,Is there any sql query which we can use to find the logical reads performed by particular sql statement i... |
[
{
"msg_contents": "0\n<https://stackoverflow.com/posts/72515636/timeline>\n\nI am using libpq to connect the Postgres server in c++ code. Postgres\nserver version is 12.10\n\nMy table schema is defined below\n\n Column | Type | Collation | Nullable | Default |\nStorage | Stats target | Desc... |
[
{
"msg_contents": "Hi,\n\nI'm using PostgreSQL 14.3 and I'm getting strange behavior in a complex\nquery generated by the Entity Framework.\n\nThe inner (complex) query has a quick execution time:\n\n# SELECT \"Extent1\".\"id\", CAST (\"Extent1\".\"date\" AS timestamp) AS \"C3\"\n FROM \"dbo\".\"ng_conte... |
[
{
"msg_contents": "Hi,\n\nI have a table \"tbl\" with a couple of columns. One of them is \"row\"\njsonb. It has a GIN index as per below. The table isn't particularly\nlarge, in lower tens of GB. Each \"row\" has maybe 5-20 keys, nothing\ncrazy.\nNow, when I query it with @> operator I get very different perfo... |
[
{
"msg_contents": "Hey y'all!\n\nSo recently, I ran into an issue where a query I wrote wasn't using an index, presumably because what I was doing was too hard for the query planner to figure out. I've distilled the problem into its essence to the best of my ability, and found that it's because `select` seems t... |
[
{
"msg_contents": "Hi ,\n\n We plan to migrate large database from Oracle to Postgres(version 13.6, OS Redhat8 Enterprise), we are checking options to make data load in Postgres fast. Data volume is about several TB, thousands of indexes, many large table with partitions. We want to make data load running f... |
[
{
"msg_contents": "Hi,\n We have a table have range partition (about 5K partitions) , when\nExplain select count(*) from table where partitionkey between to_timestamp() and to_timestamp();\nIt show\nAggregate (cost=15594.72..15594.73 rows=1 width=8)\n -> Append (cost=0.15..15582.00 rows=5088 width=0)\n ... |
[
{
"msg_contents": "Hi all,\n\nI have a performance issue that I would really appreciate if somebody \ncould help me better understand and investigate. I experience \nfluctuating performance of combined updates and inserts, seemingly \nfollowing a pattern which isn't immediately obvious.\n\nIn short I'm running ... |
[
{
"msg_contents": "Hi,\n\nI am running Postgres 13 on CentOS 7, installed from the yum.postgresql.org <http://yum.postgresql.org/> repo.\n\nI have 3 servers in different sites, with asynchronous replication managed by pgpool 4.0.11. Highest latency is 16ms RTT - but shouldn’t matter as it’s async - but my appli... |
[
{
"msg_contents": "Hi,\n\nPostgreSQLv14- compiled with LLVM-Clangv13 and GCCv11,And captured\nperformance using HammerDBv4.3-TPC-H.\nAnd Observed the functionality differences as LLVM-Clangv13-triggers\nheapgetpage instead XidInMVCCSnapshot or vice versa with GCC.\nI would like to know here the functionality di... |
[
{
"msg_contents": "Hi,\nI have one Oracle fdw table which is giving performance issue when joined\nlocal temp table gives performance issue.\n\nselect * from oracle_fdw_table where transaction_id in ( select\ntransaction_id from temp_table) ---- 54 seconds. Seeing HASH SEMI JOIN in\nEXPLAIN PLAN. temp_table ha... |
[
{
"msg_contents": "I'd be grateful for some comments on the advisability of using a large\nnumber of concurrent logical replication publications/subscriptions.\nBelow I've set out the current environment and a suggested design.\nApologies for the length of this email.\n\nWe presently have many hundreds of small... |
[
{
"msg_contents": "Hello.\n\nI'm investigating an issue on a PostgresSql 9.5.21 installation that\nbecomes unusable in an intermittent way. Simple queries like \"select\nnow();\" could take 20s. commits take 2s. and all gets fixed after an engine\nrestart.\n\nI look into the pg logs and no signs of errors. and ... |
[
{
"msg_contents": "Hi ,\nWe have PG v13.6 in RHEL8.4, we try to set table unlogged before load data. There are a lot of existing data in this table, when 'alter table xxx set unlogged', we found it take long time and spend time on IO datafileread. Is it expected?\n\nThanks,\n\nJames\n\n\n\n\n\n\n\n\n\nHi ,\n... |
[
{
"msg_contents": "I'm spinning up a new Postgresql 14 database where I'll have to store a\ncouple years worth of time series data at the rate of single-digit millions\nof rows per day. Since this has to run in AWS Aurora, I can't use\nTimescaleDB.\n\nI've been soliciting advice for best practices for building... |
[
{
"msg_contents": "We have a Postgresql 13 database where we have a single table with\nseveral millions of rows . We plan to partition it based on timestamp .\nWe have been seeking advice for best practices for building this.\nThis table will get lots of updates for the same rows during a short period\nof ti... |
[
{
"msg_contents": "Using logical replication is it possible to have a single table \nsubscriber connect to multiple publishers of the same table ? This \nwould be for INSERT's only.\n\nThink multiple DB publishers just inserting records (audit transaction \nlogs)....\n\nIs it possible to have a single subscrib... |
[
{
"msg_contents": "Hi,\nWe are doing an oracle to postgres migration(5 TB+ data). We are encoding\nand decoding BLOB data after migration and for that we are running updates\non tables having BLOB/CLOB data. When we execute this pg_wal is filling up.\n\nDo you have any general guidelines for migrating a 5TB + d... |
[
{
"msg_contents": "Good day,\n\nconsider the following query:\n\nWITH aggregation(\n SELECT\n a.*,\n (SELECT array_agg(b.*) FROM b WHERE b.a_id = a.id) as \"bs\",\n (SELECT array_agg(c.*) FROM c WHERE c.a_id = a.id) as \"cs\",\n (SELECT array_agg(d.*) FROM d WHERE d.... |
[
{
"msg_contents": "Hi Everyone,\n\nI'm trying to run pgbench with various numbers of connections. However, my\nDB seems to be hitting some limit around 147-150 connections. I'd like to\nrun with at least 500 and even up to 2000 if possible.\n\nI've already increased the max_connections, shared_buffers\nand kern... |
[
{
"msg_contents": "Dear all,\n\nAfter detecting some performance issues accessing a partitioned table in a\npostgres database we created a simple Java test to analyse the possible\ncauses of this problem. The test is very simple. It just creates a database\nconnection and executes a query on a partitioned table... |
[
{
"msg_contents": "We run same update or delete SQL statement \" DELETE FROM ... WHERE ... \" the table is a hash partition table (256 hash partitions). When run the sql from Postgresql JDBC driver, it soon increased to 150MB memory (RES filed from top command), but when run the same SQL from psql , it o... |
[
{
"msg_contents": "I was on this DBA.StackExchange question \nhttps://dba.stackexchange.com/questions/316715/in-postgresql-repmgr-master-slave-environment-is-it-necessary-to-have-same-h-w-c/316756, \nand which reminded me of my experience and disappointment with the \nhot-standby design.\n\nSay you have millio... |
[
{
"msg_contents": "What could be the reason of a query, which is sometimes fast and sometimes slow (factor >10x)?\n(running on a large table).\n \n \n",
"msg_date": "Wed, 14 Sep 2022 17:02:07 +0200",
"msg_from": "tiaswin@gmx.de",
"msg_from_op": true,
"msg_subject": "Query is sometimes fast and s... |
[
{
"msg_contents": "Hello! I have written python program to benchmark view efficiency,\nbecause in our platform they have a role to play and we noticed the\nperformance is less than expected.\nBasically, benchmark creates table:\n\nCREATE TABLE IF NOT EXISTS foobar ( id int, text varchar(40) );\n\nfor i in range... |
[
{
"msg_contents": ">\n> Hi All,\n>\n> I'm looking for suggestions:\n>\n> Environment: AWS PostgreSQL RDS instance - Version 14.3\n> Operations support gets intermittent alerts from the monitoring tool\n> through AWS cloud watch metrics on Disk Queue Depth, CPU burst-credit & CPU\n> Utilization.\n> I would like ... |
[
{
"msg_contents": "> I executed the following statements 3 times\n> explain(analyze, buffet) select * from table1\n>\n> The number of rows are different. Is the table corrupted? How to confirm\n> and how to fix it?\n>\n\nI executed the following statements 3 times explain(analyze, buffet) select * from table... |
[
{
"msg_contents": "Hei\n\nThe main problem is that for instance ogr2ogr is using more time to get system info about tables than doing the actual job.\n\nThe time pick up postgresql meta info takes between 30 and 60 seconds and sometimes hours if we have not done vacuum analyze recenlty.\nThen actual spatial job... |
[
{
"msg_contents": "Hello!\n\nI have been struggling with finding a proper solution for this query for\nsome time and wanted to ask if someone here knows how to approach this?\n\nI have a table named \"report\" which has an index on report.reporter_id.\nThis column consists of IDs which are grouped together usin... |
[
{
"msg_contents": "I've come up with a patch designed to improve performance for the case\nwhere Postgres has one or more overflowed subtransactions, i.e. at\nleast one open transaction has >64 subtransactions.\n\nSo far, performance results are very promising, which shows a loss of\nperformance of x8-9 unpatch... |
[
{
"msg_contents": "Hey all!\n\nI'm interested in the rules that Postgres uses to avoid joins. Are\nthese documented somewhere? If I had to look at the source code, where\nwould I start? They don't seem to match my intuition about which joins\ncould be avoided. Then again, it's quite possible that I'm wrong and\... |
[
{
"msg_contents": "Hi all,\nI'm just having a doubt about the choice of the planner for a small\nexample table.\nI've a table with a numeric column (integer), and I've created two\nindexes on such column, one btree and one hash. The hash results much\nlarger as the btree, but what puzzles me is that executing a... |
[
{
"msg_contents": "Hi All,\n\nI'm looking for suggestions:\n\nWhat kind of metrics would be beneficial to monitor and alert on Postgres\nRDS while switching to GP3 volumes (from existing GP2 volumes)?\n- We see intermittent I/O (disk queue depth) alerts with the existing GP2\nstorage type and burst credit alert... |
[
{
"msg_contents": "Hey, folks:\n\nI haven't configured a PostgreSQL server since version 11 (before that, \nI did quite a few).\n\nWhat's changed in terms of performance configuration since then? Have \nthe fundamentals of shared_buffers/work_mem/max_connections changed at \nall? Which new settings are must-t... |
[
{
"msg_contents": "Hello everyone,\n\nI'm having a problem regarding the point type/gist indexes. Here's a\nminimal reproduction of it:\n\ncreate table test(p point);\ninsert into test(p) values (point(0, 0));\ninsert into test(p) values (point(0, 1));\ninsert into test(p) values (point(1, 0));\ninsert into tes... |
[
{
"msg_contents": "Hi there,\n\nI'm wondering if anyone has any insight into what might make the database\nchoose a sequential scan for a query (table defs and plan below) like :\n\nSELECT orders.orderid FROM orders\nWHERE (\norders.orderid IN ('546111')\n OR\norders.orderid IN (select orderid FROM orderstotr... |
[
{
"msg_contents": "Hi,\n It's a prepared sql statement on a non-partitioned table , 16millions\ntuples and multiple indexes on this table. pk_xxxxx primary\nkey (aid,bid,btype) all 3 cols are bigint datatype, there is another index\nidx_xxxxx(starttime,endtime) , both cols are \"timestamp(0) without time\nz... |
[
{
"msg_contents": "Hi everyone,\nI'm writing to ask about a correlation I was surprised to observe on our\nPSQL machines (particularly read-only standbys) where increasing\n\"shared_buffers\" appears to result in\nincreased pg_stat_database.blk_read_time and CPU iowait, which in turn\nseems to correlate with re... |
[
{
"msg_contents": "I inherited a database with several single-digit billion row tables. Those\ntables have a varchar(36) column populated with uuids (all connected to\neach other via FKs) each currently supported by a btree index.\n\nAfter the recent conversations about hash indexes I thought I'd do some\ncomp... |
[
{
"msg_contents": "Hi, \n\ncould someone please comment on this article https://vladmihalcea.com/uuid-database-primary-key/ specifically re the comments (copied below) in regards to a Postgres database. \n\n... \n\n\nBut, using a random UUID as a database table Primary Key is a bad idea for multiple reasons. \n... |
[
{
"msg_contents": "Hi,\n We had some load test ( DML inserts/deletes/updates/ on tens of hash partition tables) and found that PGV14 slow down 10-15% compared with PGV13. Same test server, same schema tables and data. From pg_stat_statements, sql exec_time, we did found similar mean_exec_time increased from... |
[
{
"msg_contents": "Hi,\n We had some load test ( DML inserts/deletes/updates) and found that PGV14 slow down 10-15% compared with PGV13. Same test server, same schema tables and data. From pg_stat_statements, sql exec_time, we did found similar mean_exec_time increased from 20%-30% with same SQL statements.... |
[
{
"msg_contents": "Hello to everyone\n\nI'm new here, and I hope that my question is on the correct mail-list.\n\nWe use PostgreSQL to store JSON-B in different tables, all tables have the same schema and all tables are indexed with GIN index for the JSON data.\n\nWe use two properties of the JSON to locate dat... |
[
{
"msg_contents": "Hi! Sorry to post to this mailing list, but I could not find many tips working around HashAggregate issues.\n\nIn a research project involving text repetition analysis (on top of public documents)\nI have a VirtualMachine (CPU AMD Epyc 7502P, 128GB RAM, 12TB HDD, 2TB SSD),\nrunning postgres 1... |
[
{
"msg_contents": "Hi list,\n\nI have a misbehaving query which uses all available disk space and then\nterminates with a \"cannot write block\" error. To prevent other processes\nfrom running into trouble I've set the following:\n\ntemp_file_limit = 100GB\n\nThe query does parallelize and uses one parallel wor... |
[
{
"msg_contents": "I have a complex query which essentially runs a finite state automaton \nthrough a with recursive union, adding the next state based on the \nprevious. This is run at 100,000 or a million start states at the same \ntime, picking a new record (token), matching it to the FSA (a three-way \njoi... |
[
{
"msg_contents": "Hi,\n\nWhen performing post-mortem analysis of some short latency spikes on a\nheavily loaded database, I found that the reason for (less than 10 second\nlatency spike) wasn't on the EXECUTE stage but on the BIND stage.\nAt the same time graphical monitoring shows that during this few second\... |
[
{
"msg_contents": "Hello,\n\nI am trying to speed up the initial logical replication sync process. The database being replicated is dominated by one table that is 750GB (heap). The process quickly boils down to a single COPY writing into the subscriber. We have dropped all indexes and key constraints in the ... |
[
{
"msg_contents": "Hello,\n\nWe have a table containing ~1.75 billion rows, using 170GB storage.\nThe table schema is the following:\n\nmessages=# \\d messages\n Table \"public.messages\"\n Column | Type | Collation | Nullable | Default \n--------------+---------+-----------+----------+... |
[
{
"msg_contents": "The default is enable_bitmapscan on. However, TPC-H.query17 get slower running on my NVMe SSD (WD SN850) after switching on the parameter: latency drop from 9secs to 16secs. During a B-tree Index Scan, bitmapscan optimization converts random I/O into sequential. However, many users use SSDs r... |
[
{
"msg_contents": "Hi,\nWe have a Postgres 11.16 DB which is continuously connected to informatica\nand data gets read from it continuously.\n\nWhen we have to ALTER TABLE.. ADD COLUMN.. it gets blocked by the SELECTs\non the table mentioned by process above.\n\nIs there any way to ALTER the table concurrently ... |
[
{
"msg_contents": "Hi,\nIs there any way to improve performance of LIKE clause on VIEWS.\n\nselect * From request_vw where upper(status) like '%CAPTURED%' - 28 seconds.\n\nselect * from request_vw where status='CAPTURED'\n\nApplication team is reluctant to change queries from the Application side\nto = instead... |
[
{
"msg_contents": "Hi,\n\nWe've started to observe instances of one of our databases stalling for a\nfew seconds.\n\nWe see a spike in wal write locks then nothing for a few seconds. After\nwhich we have spike latency as processes waiting to get to the db can do\nso.\n\nThere is nothing in the postgres logs tha... |
[
{
"msg_contents": "Hello,\n\nI'm trying to get the following query to use a plan with parallelism, but I\nhaven't been successful and would like some advice.\n\nThe schema and table that I'm using is this:\n\nCREATE TABLE testing(\n id INT,\n info INT,\n data_one TEXT,\n data_two TEXT,\n primary key(i... |
[
{
"msg_contents": "Dear Postgres Family,\n\nI need some clarity and suggestions on the situation below.\n\nThere is a table called table_1\n\n 1. its immutable only INSERTS allowed.\n 2. it should get partitioned monthly basis\n 3. partitions should be created while inserting data\n 4. inheritance metho... |
[
{
"msg_contents": "I'm used to adding an empty column being instant in most cases, so my \nattention was drawn when it took a long lock.\n\nThe timings below imply that each row is running the CHECK?\n\nI've come to expect addition of a NULL column to be fast, and what I'm \nseeing seems to contradict the docs ... |
[
{
"msg_contents": "Hell postgres people!\n\nThis is not an issue report so much as a gripe. I'm on postgres 12.2, so it\nis entirely possible that the issue I describe is fixed in a later version.\nIf so, it is not described in the docs or any posts I can find archived on\npgsql-performance. (I am not brave eno... |
[
{
"msg_contents": "I've been thinking about the max_wal_senders parameter lately and wondering\nif there is any harm in setting it too high. I'm wondering if I should try\nto shave a few senders off, perhaps to match my logical replicas + 1,\ninstead of just leaving it at the default of 10. Or vice-versa, can... |
[
{
"msg_contents": "Hi all,\n\nI am running a simple test and am curious to know why a difference in execution times between PostgreSQL 12 vs PostgreSQL 15.\n\nI have this function:\nCREATE function test() returns int language plpgsql as $$\ndeclare\n v_number bigint;\n v_multiplier float = 3.14159;\n ... |
[
{
"msg_contents": "Dear Postgres Folks,\n\nTypically we expect that UPDATE is a slow operation in PostgreSQL, however,\nthere are cases where it's hard to understand why. In particular, I have a table like\n\n```\nCREATE SEQUENCE t_inodes_inumber_seq\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n N... |
[
{
"msg_contents": "Hi,\nWe are getting this error when transferring data using COPY command or\nrunning workflow for huge data. We are using Password Authentication(LDAP)\n\n\"Connection forcibly closed remote server\"\n\nCan someone help how we can avoid this?\n\n\nRegards,\nAditya.\n\nHi,We are getting this e... |
[
{
"msg_contents": "Hello everyone,\n\nI'm playing around with BRIN indexes so as to get a feel for the feature.\nDuring my tests, I was unable to make BRIN indexes perform better than a\nsequential scan for queries searching for large value sets (20K values in\nthe example down below).\n\nCreating the table wit... |
[
{
"msg_contents": "Hi All,\nUnfortunately I am unable to share a query plan or query.\n\nI have a SQL which is getting called from a web service. At a certain point\nwhere it inserts data in the table . Process is going in a hung state.\npg_stat_activity shows wait_even='IPC' , wait_even_type=MessageQueueSend.... |
[
{
"msg_contents": "Hi,\n\nI have a query which is taking roughly 10mins to complete and the query\nplanner is choosing a nested loop.\n\nquery and query plan with analyze,verbose,buffers\nqsEn | explain.depesz.com <https://explain.depesz.com/s/qsEn#html>\n\nDisabling the nested loop on session is allowing the q... |
[
{
"msg_contents": "Hello Guys\n\nRegarding a particular performance + architecture situation with postgres\n12, I have a table with 300 millions rows and then I ask you, which basic\napproach like *parameters in postgres.conf*, suitable index type ,\npartitions type, would you suggest me knowing that we have Q... |
[
{
"msg_contents": "Hey folks,\nI am having issues with multicolumn partitioning. For reference I am using\nthe following link as my guide:\nhttps://www.postgresql.org/docs/devel/sql-createtable.html\n\nTo demonstrate my problem, I created a simple table called humans. I want\nto partition by the year of the hum... |
[
{
"msg_contents": "1) Querying the table using the primary key and selecting one of the\ncolumns from the table which is not part of the index.\n explain (analyze, buffers) select date_created from schema_name.table1\nwhere id = 200889258190298;\n ... |
[
{
"msg_contents": "The test data below is from a non-virtualized (client system and database\nserver) Postgres 14 environment, with no replication, no high availability,\nand with no load balancing. This environment has older and slower disk\ndrives, and the test is driven by a single client process.\n\n\nIn th... |
[
{
"msg_contents": "Hello,\n\nWe have encountered an unexpected quirk with our DB and we are unsure if\nthis is expected behaviour or an issue.\n\nPG version PostgreSQL 14.3 on aarch64-unknown-linux-gnu, compiled by\naarch64-unknown-linux-gnu-gcc (GCC) 7.4.0, 64-bit\n\nschema of table in question and related ind... |
[
{
"msg_contents": "Hi Listers,\nAnyone here use such a tool for Postgres? Any recommendations?\n\nSay I have 150 queries in Postgres 11 and I want to upgrade to Postgres 15.\nI want to run explain analyze for 150 in both versions for comparative\nanalysis.\n\nI am looking for the easiest way to do it with a too... |
[
{
"msg_contents": "Hello\n\nI have just started in the new challenger as dba postgres and I am in\ncharge of enhancing our postgres monitoring( dashboards and alarms ) using\nGrafana.\n\nCould you list me relevant metrics in postgres that I can apply in my\nenvironment ?\n\n\nIn additional, If someone else has... |
[
{
"msg_contents": "Hi,\n\nI am currently trying to migrate an influxdb 1.7 smarthome database to\npostgresql (13.9) running on my raspberry 3.\nIt works quite well, but for the queries executed by grafana I get a\nbit highter execution times than I'd hoped for.\n\nExample:\ntable smartmeter with non-null column... |
[
{
"msg_contents": "Hi all\n\nThe company I work for has a large (50+ instances, 2-4 TB each) Postgres\ninstall. One of the key problems we are facing in vanilla Postgres is\nvacuum behavior on high QPS (20K writes/s), random index access on UUIDs.\n\nIn one case the table is 50Gb and has 3 indexes which are als... |
[
{
"msg_contents": "If not , how can I get the same functionality by writing a\nquery/job/procedure?\n\nSomething which doesn't require me to install a plugin , it is RDS\nPostgreSQL so cannot install /enable plugin without downtime to a\ncritical production database\n\nv$sesstat use case - I run a query , I wou... |
[
{
"msg_contents": "Postgres noob question.\n\nFor example say datadog\nhttps://docs.datadoghq.com/database_monitoring/query_metrics/#explain-plans\n\nDo they run EXPLAIN on all queries?\nOr is it automatic in postgres? Like when auto_explain is enabled?\n\n\n-- \nCheers,\nKunwar\n\nPostgres noob question.For ex... |
[
{
"msg_contents": "Dear all,\n\nWe are facing a performance issue with the following query. Executing this\nquery takes about 20 seconds.\n(the database version is 14.1)\n\nThe query:\n\n----- SLOW QUERY -----\n\nSELECT lead_record.id AS id\n FROM \"lead_record\" lead_record\n LEFT JOIN \"l... |
[
{
"msg_contents": "Hi there,\n\n I've been struggling with very high write load on a server.\n\n We are collecting around 400k values each 5 minutes into a hypertable. \n(We use timescaledb extension, I also shared this on timescale forum but \nthen I realised the issue is postgresql related.)\n\n When runni... |
[
{
"msg_contents": "Hi,\nWe are getting intermittent connection errors on Postgres 11.16, in\ninformatica as well as Python jobs that run queries on Postgres.\n\nIn informatica logs we see below error.\n\nODBC PostgreSQL Wire Protocol driver]SSL I/O Error.[DataDirect][ODBC lib]\nConnection in use\n\nWhile in Po... |
[
{
"msg_contents": "Hi there,\n\nI am investigating possible throughput with PostgreSQL 14.4 on an ARM i.MX6 Quad CPU (NXP sabre board).\nTesting with a simple python script (running on the same CPU), I get ~1000 request/s.\n\nimport psycopg as pg\nconn = pg.connect('dbname=test')\nconn.autocommit = True\ncur = ... |
[
{
"msg_contents": "Hello\n\nWe have an application (https://dhis2.org) which has been using postgresql\nas a backend for the past 15 years or so. Gradually moving through pg\nversions 8,9,10 etc as the years went by. At the moment a large number of\nour implementations are using versions 13, 14 and 15. Unfor... |
[
{
"msg_contents": "Hi guys,\n\nI've been configuring a new server and tuning Postgresql 15.3, but I'm\nstruggling with a latency I'm consistently seeing with this new server when\nrunning fast short queries, compared to the other server.\n\nWe're running two different versions of Postgresql:\n\n- Server A: Post... |
[
{
"msg_contents": "PG V14.8-1 , client using Postgresql JDBC driver we found 40MB process memory per backend, from Operating system and memorycontext dump \"Grand total:\", both mached. But from details, we found almost of entry belong to \"CacheMemoryContext\", from this line CacheMemoryContext: 8737352 tot... |
[
{
"msg_contents": "Hi Listers,\n\n\nWe would like to determine how long it takes for each SQL statement to\nexecute within a long-running procedure. I tried to see if\npg_stat_statements could offer any insight into the matter. But I was\nunable to locate any. Is this even possible? How can we also determine th... |
[
{
"msg_contents": "Hi Listers,\n\nDB : postgres 14.\n\nWe are experiencing weird performance issue of one simple insert statement\ntaking several minutes to insert data. The application calls insert\nstatement via stored procedure show mentioned below.\n\nThe select query in the insert returns about 499 rows. H... |
[
{
"msg_contents": "How does hash join estimation rows ? pg v14, it make wrong rows estimation then leave nest loop lef join that make poor sql plan. A\n\n -> Nested Loop Left Join (cost=171112.69..475856.90 rows=1 width=521)\n ... |
[
{
"msg_contents": "Hi,\n We migrate from Oracle to Postgresql14.8, one SQL has regression in Postgres run in 5800 milliseconds in Postgresql v14.8, but the same SQL got done in several hundred milliseconds in Oracle database.\n With multiple table JOINs, if the join condition is tablea.column1=ta... |
[
{
"msg_contents": "Hello\n\n\nI have a database with few 60gb tables. Tables rows are requested with multiple ANY or IN operators. I am not able to find an easy way to make DB able to use indexes. I often hit the index, but see a a spike of 200mb of IO or disk read.\n\n\nI am using version 13 but soon 14.\n\n\n... |
[
{
"msg_contents": "Hi,\n When join two table on multiple columns equaljoin, rows estimation always use selectivity = multiplied by distinct multiple individual columns, possible to use extended n-distinct statistics on multiple columns?\n PG v14.8-1, attached please check test case with details.\n\nThan... |
[
{
"msg_contents": "Hi all,\n\nI recently started at a new firm and have been trying to help to grok\ncertain planner behavior. A strip-down example of the sort of join we do in\nthe database looks like this, wherein we join two tables that have about 1\nmillion rows:\n\n-- VACUUM (FULL, VERBOSE, ANALYZE), run t... |
[
{
"msg_contents": "In my use case I have a 2billion / 1To table. I have daily data to upsert around 2milion, with say 50% inserts, based on the primary key in a fresh analyzed table.\n\nI have tested multiple strategies to merge the data, all based on first stage to copy the 2m dataset in an staging unlogged / ... |
[
{
"msg_contents": "Dear fellow list members,\n\nI'm in the process of implementing a file storage system that is based on\nPostgreSQL and streaming replication. There will possibly be many similar\nfiles stored. I would like to implement block-level deduplication: each\nfile consists of a series of blocks, and ... |
[
{
"msg_contents": "Hi,\n\n------\nPostgres version\n------\npostgres=# SELECT version();\n version\n\n-----------------------------------------------------------------------------------------------------------------------------------\n PostgreSQL 15.3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.