threads
listlengths
1
275
[ { "msg_contents": "Hello list,\n\nI have noticed that the performance during a SELECT COUNT(*) command is\nmuch slower than what the device can provide. Parallel workers improve the\nsituation but for simplicity's sake, I disable parallelism for my\nmeasurements here by setting max_parallel_workers_per_gather t...
[ { "msg_contents": "Hi there,\nI’m on Postgres 13.11 and I'm seeing a situation where an INSERT...SELECT statement seq scans an index, but only when wrapped in a SQL function. When invoked directly (via psql) or when called via a PL/pgSQL function, it only reads the index tuples it needs, resulting in much bette...
[ { "msg_contents": "Hello Gents,\n\nI have a few queries regarding the TOAST Fields\nserialisation/deserialization performance.\n\nThe use case i am trying to solve here is to have millions of partitions\nand aggregate the data in array field.\n\nI wish to know if i declare certain column in table as \"array of ...
[ { "msg_contents": "Hi all\n\nMy colleague and I did some experiments to see what effect using UUIDs as\n2nd-ary indexes has on Index IO. The context is that by default ORM\nframeworks will use UUIDs as index keys which I found as a major factor to\nperformance issues at Celonis. I suspect this isn't specific to...
[ { "msg_contents": "Hi all\n\nBackground is we're trying a pg_repack-like functionality to compact a\n500Gb/145Gb index (x2) table from which we deleted 80% rows. Offline is not\nan option. The table has a moderate (let's say 100QPS) I/D workload running.\n\nThe typical procedure for this type of thing is basica...
[ { "msg_contents": "Hello,\n\nI'm trying to understand a bit of weirdness in a plan output. There is a\nsort node above a sequential scan node where the scan node produces 26,026\nrows yet the sort node above it produces 42,995,408. How is it possible to\nsort more data than you received?\n\nhttps://explain.dali...
[ { "msg_contents": "Hi:\nI have a function, if I call it from DBeaver, it returns within a minute.\n\n\ncall commonhp.run_unified_profile_load_script_work_assignment_details('BACDHP', 'G3XPM6YE2JHMSQA2');\n\n\nbut if I called it from spring jdbc template, it never comes back:\n\n public void runTransform(Str...
[ { "msg_contents": "Hi list,\n\nI have a queue table with the schema:\n\n```\ncreate table queue(id bigserial primary key, view_time timestamp with\ntimezone not null);\ncreate index queue_view_time ON queue(view_time ASC);\n```\n\nThe most concurrent operation is:\n```\nUPDATE queue SET view_time=view_time+INTE...
[ { "msg_contents": "I have created a table called _td with about 43 000 rows. I have tried to\nuse this as a primary key id list to delete records from my\nproduct.product_file table, but I could not do it. It uses 100% of one CPU\nand it takes forever. Then I changed the query to delete 100 records only,\nand m...
[ { "msg_contents": "Hello all\n\nWe are developping a software that has a lot of concurrent transactions so\nwe use a lot row locking (SELECT.. FOR SHARE/UPDATE) and we are\nexperiencing high disk write rates on large read queries.\n\nAs I understand the tuple is updated every time a lock is put on it (then\npag...
[ { "msg_contents": "I have this table:\n\nCREATE TABLE media.block (\n\nid uuid NOT NULL,\n\n\"size\" int8 NOT NULL,\n\nnrefs int8 NOT NULL DEFAULT 0,\n\nblock bytea NOT NULL,\n\nhs256 bytea NOT NULL,\n\nCONSTRAINT block_pkey PRIMARY KEY (id),\n\nCONSTRAINT chk_nrefs CHECK ((nrefs >= 0))\n\n)\n\nWITH (\n\ntoast_...
[ { "msg_contents": "Hi,\n\nTL;DR:\nObservations:\n\n 1. REINDEX requires a full table scan\n - Roughly create a new index, rename index, drop old index.\n - REINDEX is not incremental. running reindex frequently does not\n reduce the future reindex time.\n 2. REINDEX does not use the index its...
[ { "msg_contents": "Hi,\n\nI'm trying to implement some range partitioning on timeseries data. But it\nlooks some queries involving date_trunc() doesn't make use of partitioning.\n\nBEGIN;\nCREATE TABLE test (\n time TIMESTAMP WITHOUT TIME ZONE NOT NULL,\n value FLOAT NOT NULL\n) PARTITION BY RANGE (time);...
[ { "msg_contents": "I have a legacy system that uses `Posgresql 9.6` and `Ubuntu 16.04`. Everything was fine several days ago even with standard Postgresql settings. I dumped a database with the compression option (maximum compression level -Z 9) in order to have a smaller size (`pg_dump --compress=9 database_na...
[ { "msg_contents": "Hi,\n\nI'm from the Hibernate team (Java ORM) and a user recently reported that \na change in our SQL rendering affected his query plans in a bad way.\n\nIn short, we decided to model certain constructs in our ORM with \"nested \njoins\" i.e. using parenthesis to express the join order. This ...
[ { "msg_contents": "Hi,\n PGv14.8, OS RHEL8, no SSL enabled in this database, we have a lot of client sessions who check it's ssl state by query, all other sessions got done very quickly, but only 1 session hang there in 100% cpu. It looks like abnormal.\n\n select ssl from pg_stat_ssl where pid=pg_backend...
[ { "msg_contents": "Hi,\n PGv14.8, OS RHEL8, no SSL enabled in this database, we have a lot of client sessions who check it's ssl state by query, all other sessions got done very quickly, but only 1 session hang there in 100% cpu tens of hours, even pg_terminate_backend does not make it stopped either. It l...
[ { "msg_contents": "Hello,\nI have three tables:\n - test_db_bench_1\n - test_db_bench_tenants\n - test_db_bench_tenant_closure\n\nAnd the query to join them:\nSELECT \"test_db_bench_1\".\"id\" id, \"test_db_bench_1\".\"tenant_id\"\n FROM \"test_db_bench_1\"\n JOIN \"test_db_bench_tenants\" AS \"tenan...
[ { "msg_contents": "Hello.\n\nI just had an outage on postgres 14 due to multixact members limit exceeded.\n\nSo the documentation says \"There is a separate storage area which holds the\nlist of members in each multixact, which also uses a 32-bit counter and\nwhich must also be managed.\"\n\nQuestions:\nhaving ...
[ { "msg_contents": "Dear All\n\nI have a weird problem, I am trying to improve performance on this query :\n\nSELECT text('foo@bar.com') from mail_vessel_addressbook where \ntext('foo@bar.com') ~* address_regex limit 1;\n\nThe first system (linux) is a linux hosted in a cloud, kernel \n3.16.0-4-amd64, 32GB mem, ...
[ { "msg_contents": "I'm researching a query that's slow occasionally, and I'm seeing dirtied\nreads and am asking for some help in understanding.\n\nThe table has the following relevant fields:\n- insert_timestamp (timestamp without timezone, nullable, default now())\n- hasbeenchecked ( boolean, not null )\n- ha...
[ { "msg_contents": "Have encountered an intriguing issue processing a table with a large \nnumber of rows. The process is to loop over the table processing each \nrow executing the Apache AGE cypher function over each row \nindividually.The looping is necessary because of encountering a limit on \nthe number of ...
[ { "msg_contents": "Hello everyone!\n\n\nRecently, we upgraded the AWS RDS instance from Postgres 12.14 to 15.4 \nand noticed extremely high disk consumption on the following query \nexecution:\n\nselect (exists (select 1 as \"one\" from \"public\".\"indexed_commit\" where \n\"public\".\"indexed_commit\".\"repo_...
[ { "msg_contents": "Hi all,\n\nWorking on the emaj extension (for the curious ones, \nhttps://emaj.readthedocs.io/en/latest/ and \nhttps://github.com/dalibo/emaj), I recently faced a performance problem \nwhen querying and aggregating data changes. A query with 3 CTE has a O^2 \nbehavior (https://explain.dalibo....
[ { "msg_contents": "Hello! We have an issue with database planner choosing really expensive sequence scan instead of an index scan in some cases.\nI'm reaching out in order to maybe get some idea on what we're dealing with / what could be the actual issue here.\nThe table affected is the users table with a field...
[ { "msg_contents": "Hi all--\n\nI'm having a performance problem in 12.16 that I'm hoping someone can help\nwith.\n\nI have a table shaped roughly like this:\n\n Table \"public.data\"\n\n Column | Type | Collation | Nullable |\n Defa...
[ { "msg_contents": "Hi,\n We found one simple query manually run very fast(finished in several milliseconds), but there are 2 sessions within long transaction to run same sql with same bind variables took tens of seconds.\nManually run this sql only show <100 shared_blks_hit and very small reads, but for these...
[ { "msg_contents": "\n\n\n", "msg_date": "Sat, 18 Nov 2023 12:18:44 +0100", "msg_from": "Gulp <gulp@exe.se>", "msg_from_op": true, "msg_subject": "None" } ]
[ { "msg_contents": "Hello,\n\nI just switched from PG11 to PG15 on our production server (Version is \n15.5). Just made a vacuum full analyze on the DB.\n\nI have a relatively simple query that used to be fast and is now taking \nvery long (from less than 10 seconds to 3mn+)\n\nIf I remove a WHERE condition chan...
[ { "msg_contents": "Hello,\n\nI am trying to optimize a complex query and while doing some explains, I \nstumbled upon this :\n\n   CTE cfg\n     ->  Result  (cost=2.02..2.03 rows=1 width=25) (actual \ntime=7167.478..7167.481 rows=1 loops=1)\n           Buffers: shared hit=2\n           InitPlan 1 (returns $0)\n...
[ { "msg_contents": "We are currently on Postgres 13.9 (and will be moving to later releases).\nWe are capturing json explain plans and storing them in a database table.\nWe can tell that there are different plans for some queries, but that's a\nvery labor intensive process - we'd rather do this using SQL and com...
[ { "msg_contents": "It would be helpful if a timestamp column was added to pg_stat_statements\nto denote when a query entered the view. This would make it easier to tell\nhow frequently a query is being executed (100,000 times since a specific\ntimestamp vs 100,000 times since the execution stats were last rese...
[ { "msg_contents": "Is there any documentation on the semantics of $ variables in json explain\nplans for both InitPlans and SubPlans in 13?\n\nI'm trying to understand the attached json file.\n\n - It looks like $0 represents the value from the outer query block when\n the correlated subquery is evaluated\n...
[ { "msg_contents": "We are currently on 13. We are capturing the explain plans for query\nexecutions taking 1 second or longer and storing the json files. We are\nmost of the way through implementing a home grown solution to generate a\nconsistent hash value for a query plan, so we can find queries with\nmulti...
[ { "msg_contents": "The attached query plan is from 11.\nWe are getting Merge Joins on both sides of the UNION. In both cases, the\nfirst node under the Merge Join returns 0 rows but the other side of the\nMerge Join (the one being sorted) is executed and that's where all of the\ntime is spent.\n\nOn the surfac...
[ { "msg_contents": "Hello great day, we have a strange case with slow query and would like some help. \n\n\n\nI've already read the article https://wiki.postgresql.org/wiki/Slow_Query_Questions\n\n\n\nExplain: https://paste.depesz.com/s/PLP\n\n\n\nExplain2: https://explain-postgresql.com/archive/explain/8e4b573c...
[ { "msg_contents": "Hello Team,\nI observed that increasing the degree of parallel hint in the SELECT query\ndid not show performance improvements.\nBelow are the details of sample execution with EXPLAIN ANALYZE\n*PostgreSQL Version:* v15.5\n\n*Operating System details:* RHL 7.x\nArchitecture: x86_64\nC...
[ { "msg_contents": "Hello folks!\r\n\r\nI am having a complex query slowing over time increasing in duration. If anyone has a few cycles that they could lend a hand or just point me in the right direction with this – I would surely appreciate it! Fairly beefy Linux server with Postgres 12 (latest) – this parti...
[ { "msg_contents": "We are currently on 13.9. For each of the questions, I'd also like to know\nif anything has changed in that area in later releases.\nNOTE: We are capturing all explain plans via auto_explain and storing them\nin a database table. One of our longer term goals is to build the\nrelationship be...
[ { "msg_contents": "Hi,\n\nrunning postgresql 15.5 I was recently surpised postgresql didn't\nperform an optimization which I thought would be easy to apply.\nso in this case I don't have an actual performance problem but I am\nrather curious if this is limitation in postgresql or whether there is\na semantic di...
[ { "msg_contents": "We are on 13.9.\nI'm wondering why a sort is required for this query, as the index should be\nproviding the required ordering to satisfy the ORDER BY clause. Does it\nhave to do with the IS NULL predicate on the leading key column in the\nindex?\n\nThere's an index, job_u_closedate_g9cdc6ghu...
[ { "msg_contents": "Hello,\n\nThis EXPLAIN ANALYZE tells me the actual time was 11.xxx ms but the \nfinal Execution time says 493.xxx ms (this last one is true : about 1/2 \nsecond).\n\nI would like to optimize this query but with this inconsistency, it will \nbe difficult. This query is really a function so I a...
[ { "msg_contents": "Hi all,\n\nI have the following table:\n\nCREATE TABLE IF NOT EXISTS public.shortened_url\n(\n id character varying(12) COLLATE pg_catalog.\"default\" NOT NULL,\n created_at timestamp without time zone,\n expires_at timestamp without time zone,\n url text COLLATE pg_catalog.\"defa...
[ { "msg_contents": "Hi,\nWe want to work with PostgreSQL in our new project. I need your opinion on\nthe best way to create a database.\n\nDescription of our Project:\nIt will be in Client/Server Architecture. Windows Application users will\naccess the server as clients and they are all in different locations. T...
[ { "msg_contents": "Hi,\n We have a Postgresqlv14.8 server, client use Postgresql JDBC connections, today, our server see a lot of \"SubtransBuffer\" and \"SubtransSLRU\" wait_event. Could you help direct me what's the possible cause and how to resolve this waits ?\n\nThanks,\n\nJames\n\n\n\n\n\n\n\n\n\nHi,\n...
[ { "msg_contents": "Subject: Memory Growth Issue in \"Backend\" after Creating and Executing\nMultiple \"Named Prepared Statements\" with Different Names and Executing\nDISCARD ALL Finally.\n\nProduct: PostgreSQL 14\n\nDear Technical Support Team,\n\nWe reach out to you to report an issue related to memory growt...
[ { "msg_contents": "Hi all,\n\nI have performance issue for a pretty simple request in a PostgreSQL server\n14.10\n\n* Request\n\nSELECT p.id_parcelle\nFROM private.parcelles p\nWHERE (p.dep IN ( '08', '10', '54', '57', '67', '68'))\n;\n\n* Table definition (extract)\n\n Table « ...
[ { "msg_contents": "Hello,\n\n \n\nPostgreSQL doesn't use 'Index Only Scan' if there is an expression in index.\n\n \n\nThe documentation says that PostgreSQL's planner considers a query to be\npotentially executable by index-only scan only when all columns needed by\nthe query are available from the index. \n\n...
[ { "msg_contents": "Hi\n\nWe have a master code block which starts small, tiny operations that create a table and inserts data into that table in many threads.\n\nNothing is done the master code, we follow an Orchestration pattern , where master just sends a message about what to do and that is done in other dat...
[ { "msg_contents": "Hi experts,\n we have a SQL from Postgresql JDBC, primary is based on\n(bigint,varchar2,bigint), but from sql plan, it convert to ::numeric so\nthe plan just use one \"varchar\" key column and use the other 2 bigint keys\nas filters. what's the cause about that ?\n\n ...
[ { "msg_contents": "Dear pgsqlers,\n\nI'm trying to optimize simple queries on two tables (tenders & items) with\na couple million records. Besides the resulting records, the app also\ndisplays the count of total results. Doing count() takes as much time as\nthe other query (which can be 30+ secs), so it's an ...
[ { "msg_contents": "Postgresql 14.8, Redhat8. looks like have to create extend statistics\non indexed and joined columns to make join filters pushed down to secondary\nindex scan in nestloop, and the shared buffer hits show big difference.\n\nis it expected ?\n\n\n SELECT ....\n ...
[ { "msg_contents": "Hi,\n we create statistics (dependencies,distinct) on (cccid,sssid); with\nreal bind variables , it make good plan of Hash join , but when it try to\ngeneric plan, it automatically convert to Nestloop and then very poor sql\nperformance. why generic plan change to to a poor plan \"nestl...
[ { "msg_contents": "I was told that partitioned table indexed must always start with the\npartition key columns.\n\nIs this always the case or does it depend on use case? When would you want\nto create indexes in this way?\n\nThe documentation just mentions that it is strictly unnecessary but can be\nhelpful. My...
[ { "msg_contents": "Hi,\nWe are designing one application which is currently restricted to one time\nzone users but has the possibility to go global in future. Some of the\ntransaction tables are going to be daily range partitioned on the\ntransaction_create_date column. But the \"date\" data type will have no t...
[ { "msg_contents": "Hi list,\n\nIn France, the total number of cadastral parcels is around 10 000 000\n\nThe data can be heavy, because each parcel stores a geometry (PostGIS\ngeometry data type inside a geom column).\nIndexes must be created to increase performance of day-to-day requests:\n\n* GIST index on geo...
[ { "msg_contents": "Hi all,\n\nI have a table approx. 20GB.\n\nI have a create unique index statement.\n\nCREATE UNIQUE INDEX testindex_v1 ON testtable1 (test_index);\n\nMy observations:\nmaintenance_work_mem = 2G\nmax_parallel_workers = '16'\n\nThe create index completes in 20 minutes.\n\nWhen I change this:\nm...
[ { "msg_contents": "Hi,\n\nI have an issue with a query which has been migrated from a different\nRDBMS where it performed in a second or so, and takes minutes to run\nin postgresql 14.9 on AWS/RDS:\n\n PostgreSQL 14.9 on aarch64-unknown-linux-gnu, compiled by\naarch64-unknown-linux-gnu-gcc (GCC) 9.5.0, 64-bit\n...
[ { "msg_contents": "we found sometimes , with many sessions running same query \"select ...\"\nat the same time, saw many sessions waiting on \"LockManager\". for example,\npg_stat_activity show. It's a production server, so no enable\ntrace_lwlocks flag. could you direct me what's the possible reason and how\...
[ { "msg_contents": "Hi,\n\nWe're running PostgreSQL as essentially a data warehouse, and we have a few\nthousand roles, which are used to grant permissions on a table-by-table\nbasis to a few thousand users, so a user would typically have say between 1\nand 2 thousand roles. There is also quite a lot of \"churn\...
[ { "msg_contents": "I have been having an ongoing problem for years with PostgreSQL selecting\nvery poor plans when running queries. It does things like doing a table\nscan of gigabyte size tables to generate a hash table rather than use a\nsuitable index.\n\nWhen I disable enough features that it generates a se...
[ { "msg_contents": "I've written the below SQL query that joins pg_stat_statements with\npg_stat_activity using \"queryid\" as the join condition. Yet, the results\nshow that pg_stat_statements and pg_stat_activity are reporting two\ndistinct queries for the identical queryid. Can this occur?\n\nselect\n\npgss.q...
[ { "msg_contents": "Hello,\n\nIn our application after upgrading from postgresql from v15 to v16\nperformance for some queries dropped from less than 1-2 seconds to 2+\nminutes.\nAfter checking out some blogposts regarding DISTINCT improvements in v16 i\nwas able to \"fix\" it by adding order by clauses in subqu...
[ { "msg_contents": "Hi Team,\n\nI'm installing postgresql 14 version by using Rpm. However i'm getting\nerror while execute the database initialzation. Please check below error\nmessage\n\nError;\nHi Team, I'm installing postgresql 14 version by using Rpm. However i'm\ngetting error while execute the database i...
[ { "msg_contents": "Hi Team,\n\nCan anyone please help on SMTP configuration for send gmail. If any\ndocument please let me know.\n\nThanks & Regards,\nNikhil,\nPostgresql DBA,\n8074430856.\n\nHi Team,Can anyone please help on SMTP configuration for send gmail. If any document please let me know. Thanks & Regard...
[ { "msg_contents": "Hello Beautiful People,\n\nI have a question regarding a good performing BDR system for Postgres. I am currently evaluating/prototyping a primary-primary/master-master replication system. I have a question around the experience held by the community at large. Has anyone worked in a produc...
[ { "msg_contents": "Dear Postgresql performance guru,\n\nFor some reason on our client server a function written in SQL language \nexecutes *100 times slower* than the one written in plpgsql...\n\nAfter updating to \"PostgreSQL 12.18, compiled by Visual C++ build 1914, \n64-bit\" (from pg9.5) our client reported...
[ { "msg_contents": "Hi,\n\nI'm trying to implement a system which requires row level security on \nsome key data tables (most do not require RLS).  The data tables will \ngrow substantially (rows likely > +100M/year - the system is > 80% data \ninsert plus < 20% updates and by design, no deletes).\n\nSome querie...
[ { "msg_contents": "Heya, I hope the title is somewhat descriptive. I'm working on a\ndecentralized social media platform and have encountered the following\nperformance issue/quirk, and would like to ask for input, since I'm not\nsure I missed anything.\n\nI'm running PostgreSQL 16.2 on x86_64-pc-linux-gnu, com...
[ { "msg_contents": "Hi,\n a simple SQL \"select ... from tablex where id1=34215670 and\nid2=59403938282;\nid1 and i2 are bigint and primary key.\n Index Cond: ((tablex.id2 = ' 5940393828299'::bigint) AND (tablex.id1\n= ' 34215670 '::bigint))\n Buffers: shared hit=2\n Query Identifier: -1350604566224020...
[ { "msg_contents": "Both tables are hash partition tables , and we have a left out join ,\noptimizer convert to Hash Right Join, but it always try to seq scan on\ntablexxx 32 paritions. there are almost 250k rows per parition for\ntablexxxx , so it's slow. As a workaround, I disable hashjoin the it run\nmuch f...
[ { "msg_contents": "Hello everyone,\n\nI have a database of sufficient size that it does not fit entirely in RAM, including indexes that also exceed RAM capacity. Most of my big fact tables are following the same scheme :\n\n * 3-5 id columns.\n * Partitioned along one ID (ID_JOUR).\n * 10 - 100 Go part...
[ { "msg_contents": "hi All,\n\nI am new on the list.\nI hope someone can give me an adequate answer or good advice about my\nproblem.\n\nI have a client (normally a web service, for testing the psql client) in\nGCP. There is a PSQL server in another DC. The ping response time is 20ms.\nI measured the bandwidth v...
[ { "msg_contents": "Hello all,\n\nWhile executing the join query on the postgres database we have observed sometimes randomly below query is being fired which is affecting our response time.\n\nQuery randomly fired in the background:-\nSELECT p.proname,p.oid FROM pg_catalog.pg_proc p, pg_catalog.pg_namespace n W...
[ { "msg_contents": "Dear Team,\n\nWe received a request from client. They required all functions, stored\nprocedures and triggers backup. can anyone please let me know. How to take\nbackup only above objects.\n\n\nThanks & Regards,\nNikhil,\nPostgreSQL DBA.\n\nDear Team,We received a request from client. They re...
[ { "msg_contents": "Hey!\n\n[version: PostgreSQL 16.3]\n\nIn the example below, I noticed that the JOIN predicate \"t1.a<1\" is not\npushed down to the scan over \"t2\", though it superficially seems like it\nshould be.\n\ncreate table t as (select 1 a);\nanalyze t;\nexplain (costs off) select * from t t1 join t...
[ { "msg_contents": "Hello all postgres developers,\n\nRecently pg started to make a query plan, which I can not understand.\nThe pan is here: https://explain.depesz.com/s/Lvw0#source\n\nThe interesting part is at the top:\n```\nAggregate (cost=1132443.98..1132443.99 rows=1 width=24) (actual rows=1\nloops=1)\n ...
[ { "msg_contents": "Hi all,\n\nI'm trying to come up with an efficient query, ideally without having\nto coerce the planner into doing what I want, but I'm running up\nagainst a problem with row estimates, and I'm curious if there's a\nbetter way to address the problem than what I've come up with.\n\nHere's a st...
[ { "msg_contents": "2024-07-31 00:01:02.795\nUTC:10.240.6.139(33068):repl13801@pgpodb:[3603770]:[10-1]:pgreps_13801ERROR:\n out of memory\n2024-07-31 00:01:02.795\nUTC:10.240.6.139(33068):repl13801@pgpodb:[3603770]:[11-1]:pgreps_13801DETAIL:\n Cannot enlarge string buffer containing 378355896 bytes by 756711422 ...
[ { "msg_contents": "Hello all. I am trying to make postgres 16 prune partition for queries with\n`WHERE tenant_id=ANY(current_setting('my.tenant_id')::integer[])`, but I\nhaven't been able to make it work, and naturally it impacts performance so\nI thought this list would be appropriate.\n\nHere's the SQL I trie...
[ { "msg_contents": "Hi folks.\n\nI have a table with 4.5m rows per partition (16 partitions) (I know, very\nsmall, probably didn't need to be partitioned).\n\nThe table has two columns, a bigint and b text.\nThere is a unique index on (a,b)\nThe query is:\n\nSELECT b\nFROM table\nWHERE a = <id>\n AND b IN (<ids...
[ { "msg_contents": "All;\n\nI am running a select from a partitioned table. The table (and all the \npartitions) have an index on contract_date like this:\nCREATE INDEX on part_tab (contract_date) where contract_date > \n'2022-01-01'::date\n\nThe table (including all partitions) has 32million rows\nThe db server...
[ { "msg_contents": "All;\n\nI am running a select from a partitioned table. The table (and all the \npartitions) have an index on contract_date like this:\nCREATE INDEX on part_tab (contract_date) where contract_date > \n'2022-01-01'::date\n\nThe table (including all partitions) has 32million rows\nThe db server...
[ { "msg_contents": "Hi\nI encounter an query plan problem like as the following. It's contain two nodes which assume the result is 1 and 7, but however, the last result is 7418. And the actual result is just 1, but because of the result is too big, which will affect the following join methods. And I've analyze t...
[ { "msg_contents": "Hi experts,\n we have a Postgresql v14.8 database, almost thousands of backends hang\non MultiXactOffsetSLRU at the same time, all of these sessions running same\nquery \"SELECT ....\", from OS and postgresql slow log, we found all of these\nquery on \"BIND\" stage.\n LOG: duration: 36631...
[ { "msg_contents": "I'm getting a bit concerned by the slow performance of generating uidds on\nlatest dev code versus older versions. Here I compare the time to generate\n50k random uuids. Both son the same machine.\nI must be missing something.\n\nAny clues please ?", "msg_date": "Tue, 10 Sep 2024 14:58:03...