threads listlengths 1 275 |
|---|
[
{
"msg_contents": "Hi\n\nThis will be a rather lengthy post, just to give the full (I hope) picture. We're using Zabbix for monitoring and I'm having problems\nunderstanding why the deletion of rows in the events table is so slow.\n\nZabbix: 4.2 (never mind the name of the db - it is 4.2)\nnew values per second... |
[
{
"msg_contents": "Hi,\n\nI have finally found some time to implement a custom data type optimized\nfor version 1 UUID's (timestamp, clock sequence, node):\nhttps://github.com/ancoron/pg-uuid-v1\n\nSome tests (using a few millions of rows) have shown the following\nresults (when used as a primary key):\n\nCOPY ... |
[
{
"msg_contents": "Hello there.\n\nI am not an PG expert, as currently I work as a Enterprise Architect (who\nbelieves in OSS and in particular PostgreSQL 😍). So please forgive me if\nthis question is too simple. 🙏\n\nHere it goes:\n\nWe have a new Inventory system running on its own database (PG 10 AWS\nRDS... |
[
{
"msg_contents": "Hello,\n\n\nI attached one example of a partitioned table with multi column partition key. I also attached the output.\n\nDisabling the hash_join is not really necessary, it just shows the more drastic result in the case of low work_mem.\n\n\nComparing the first and the second query I was sur... |
[
{
"msg_contents": "Hey all,\nI have a questions regarding streaming replication that I would like to\nask in order to understand the feature better :\nI have 2 nodes configured with replication (primary + secondary).\nIn my primary I configured streaming replcation + archiving. My archive\ncommand :\ngzip < %p... |
[
{
"msg_contents": "Hello team,\n\nWe have to migrate a schema from oracle to postgres but there is one table that is having following large lob segments. This table is taking time to export. What parameters we have to set in ora2pg.conf to speed up the data export by ora2pg.\n\nTable: CLIENT_DB_AUDIT_LOG\n\... |
[
{
"msg_contents": "Hello,\n\nWe are working on development of an application with postgresql 9.6 as\nbackend. Application as a whole is expected to give an throughput of 100k\ntransactions per sec. The transactions are received by DB from component\nfiring DMLs in ad-hoc fashion i.e. the commits are fired after... |
[
{
"msg_contents": "I stumbled across this question on SO: https://stackoverflow.com/questions/56517852\n\nDisregarding the part about Postgres 9.3, the example for Postgres 11 looks a bit confusing. \n\nThere is a script to setup test data in that question: \n\n==== start of script ====\n\n create table foo ... |
[
{
"msg_contents": "Hey,\nI have a very big query that consist from 3-4 subqueries that use windows\nfunctions. There is a chance that I'll need to rewrite the query but first\nI'm trying to search for other ways to improve it and I'll be happy to hear\nif one of u have an idea.\n\nBasically my table has the fol... |
[
{
"msg_contents": "Hi,\n\nwe have created restricted view for our tables, so that we can allow \naccess to non-gdpr relevant data but hide everything else.\n\nFor exactly those views, the Query Planner uses the wrong indices, when \nexecuting exactly the same query, once it takes 0.1 s and on the views \nit tak... |
[
{
"msg_contents": "Hi Guys,\n\nI’m at a bit of a loss where I can go with the following 2 queries\nthat are over the same data structure (DDL attached) under postgresql\nPostgreSQL 9.5.16 on x86_64-pc-linux-gnu (Debian 9.5.16-1.pgdg90+1),\ncompiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit and\ncou... |
[
{
"msg_contents": "Hello,\n\nWe have partitioned tables in two levels. Both stages are partitioned in\nranges method. We see that planner and executor time was 10 time slower when\nwe asked main table rather than partitioned. My question is did planner and\nexecutor are working optimal? I have doubts about it. ... |
[
{
"msg_contents": "Hey guys,\n\nSo I have two tables: users and events. It is very common for my \napplication to request the last user event.\n\nUsually, what I'll do is get the user, and then SELECT * from events \nWHERE user_id = :user order by timestamp_inc desc LIMIT 1.\n\nI have a big problem, however:\n\... |
[
{
"msg_contents": "Hi team ,\nI am getting the below error while fetching the data from Oracle 12c using ora2pg.\n\nDBD::Oracle::st fetchall_arrayref failed: ORA-24345: A Truncation or null fetch error occurred (DBD SUCCESS_WITH_INFO: OCIStmtFetch, LongReadLen too small and/or LongTruncOk not set)ERROR no state... |
[
{
"msg_contents": "hello,\r\n\r\nWe used benchmarksql 4.1.0 to test the performance of PG12 beta TPCC.\r\n\r\n\r\nWe found performance bottlenecks on lock transactionid.\r\n\r\nhelp,\r\n\r\nWe hope to find a way to solve this bottleneck in order to improve performance.\r\n\r\nHere are some of our configurations... |
[
{
"msg_contents": "hello,Laurenz Albe\r\n\r\nYes, pg_locks is only an item that does not get a lock in the view. The test data is 300 warehouses connections, and the CPU is only... |
[
{
"msg_contents": "Hello!\n\nI was wondering if there is any external tool or extention to PostgreSQL >\n10 (EC2 or RDS) which would:\n\n - Collect the TOP X statements (queries or DML) used in the last Y days\n IN PRODUCTION;\n - Everytime there is a change in the DATABASE Structure (Migrations,\n prop... |
[
{
"msg_contents": "Ooops, looks like I need to add email rules for this community list! You can ignore my AWS-specific comments in the last paragraph. 😊\r\n\r\nFrom: \"Nasby, Jim\" <nasbyj@amazon.com>\r\nDate: Wednesday, August 14, 2019 at 3:57 PM\r\nTo: Jean Baro <jfbaro@gmail.com>, \"pgsql-performance@postgr... |
[
{
"msg_contents": "Hey,\nI upgraded my pg9.6 cluster to pg11.2.\nAs it seems after the upgrade the duration of the same flow in my\napplication raised from 13 minutes to 19 minutes.\n\nThe test I did :\n1.reset pg_stat_statements\n2.run the applicative flow\n3.collect everything from pg_stat_statements\n\nI did... |
[
{
"msg_contents": "Hey,\nI'm trying to understand when using hash partitions can be better than\nusing list partition when the partition column is bigint. I understand that\nIf my partition column has many distinct values then If I'll use a list\npartitions I might have a lot of partitions. On the other hand, ... |
[
{
"msg_contents": "Hello,\nI'm running \"PostgreSQL 11.2, compiled by Visual C++ build 1914,\n64-bit\" and I have a query that runs several times per user action\n(9-10 times).\nThe query takes a long time to execute, specially at first, due to\ncold caches I think, but the performance varies greatly during a r... |
[
{
"msg_contents": "Hi all,\n\ntoday I debugged a query that was executing about 100x slower than expected, and was very surprised by what I found.\n\nI'm posting to this list to see if this might be an issue that should be fixed in PostgreSQL itself.\n\nBelow is a simplified version of the query in question:\n\... |
[
{
"msg_contents": "Hello!\n\nAny help would be greatly appreciated.\nI need to run these simple queries on a table with millions of rows:\n\n```\nSELECT COUNT(*) FROM \"subscriptions\" WHERE \"subscriptions\".\"project_id\" =\n123;\n```\n\n```\nSELECT COUNT(*) FROM \"subscriptions\" WHERE \"subscriptions\".\"pr... |
[
{
"msg_contents": "Hi Folks,\n\n\nI am having trouble setting up replication with Postgres 11.3.\npg_basebackup is taking an unusually long time for an small Postgres\ndatabase. Anything wrong in my configuration or anything I could do to\nspeed up pg_basebackup?\n\n\nI recently upgraded form Postgres 9.2.1. Us... |
[
{
"msg_contents": "Hi All,\n\nWith PostgreSQL 10 and 11, the planner doesn't use the lists of most \ncommon values to determine the selectivity of \"=\" for Nested Loop as it \ndoes for a normal inner join in eqjoinsel_inner(). Incorrect choice of a \nnested loops join strategy causes poor query performance.\nT... |
[
{
"msg_contents": "Hi,\n\nI have tried doing some research for quite a while on the performance\nimplications of the built-in upsert (INSERT ... ON CONFLICT UPDATE...) when\na lot of upserts are made. The scale is something like 1 million\nrecords/hour, that is split up in groups of around 300 records each.\n\n... |
[
{
"msg_contents": "We have a query that takes 1min to execute in postgres 10.6 and the same\nexecutes in 4 sec in Oracle database. The query is doing 'select distinct'.\nIf I add a 'group by' clause, performance in postgres improves\nsignificantly and fetches results in 2 sec (better than oracle). But\nunfortun... |
[
{
"msg_contents": "Hi,\nAs part of one query tuning, it was observed that query execution time was\nmore even though cost was decreased.\n\n*Initial Query :* Nested Loop Left Join (cost=159.88..*38530.02* rows=1\nwidth=8) (actual time=0.387..*40.766* rows=300 loops=1)\n\n*Changed Query :* Nested Loop Anti Jo... |
[
{
"msg_contents": "Hi\n\nWe are trying to diagnose why postgres might be making poor decisions\nregarding query plans. One theory is that it does not assume it has\nthe memory suggested in effective_cache_size.\n\nWe do know that max_connections is set quite high (600) when we don't\nreally expect more than 10... |
[
{
"msg_contents": "Hey there;\n\nI have a weird use case where I am basically taking data from many\ndifferent sources and merging it into a single table, while trying to avoid\nduplicates as much as possible. None of them share any kind of primary\nkey, but I have determined 3 columns that, together, will alm... |
[
{
"msg_contents": "Hey,\nThanks to the new partitions features in pg12 (referencing partition table\nis possible) I was trying to migrate some of my tables into a partitions\nstructure.\n\nLets assume I have the following non partitions structure :\n\nProduct(id int PK,vendor int references Vendor(id),price int... |
[
{
"msg_contents": "https://blog.jooq.org/2019/09/19/whats-faster-count-or-count1/\n\nIs there a reason why count(*) seems to be faster? \n\n\n\n",
"msg_date": "Thu, 19 Sep 2019 12:09:32 +0200",
"msg_from": "Thomas Kellerer <spam_eater@gmx.net>",
"msg_from_op": true,
"msg_subject": "Surprising be... |
[
{
"msg_contents": "Hey,\nI tried to get a list of all tables that has a reference to my_table. I\nused two different queries :\n\n1)select R.*\nfrom INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE u\ninner join INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS FK\n on U.CONSTRAINT_CATALOG = FK.UNIQUE_CONSTRAINT_CATALOG\... |
[
{
"msg_contents": "Hi,\nI am running Postgresql 9.6 XFS as filesystem , kernel Linux 2.6.32.\n\nI have a table that Is not being use anymore, I want to drop it.\nThe table is huge, around 800GB and it has some index on it.\n\nWhen I execute the drop table command it goes very slow, I realised that\nthe problem... |
[
{
"msg_contents": "Hey,\nI got the following partitions structure in pg12 beta 3 version :\n\npostgres=# \\d+ students\n Partitioned table \"public.students\"\n Column | Type | Collation | Nullable | Default | Storage | Stats\ntarget | Description\n--------+---------+-----------+-... |
[
{
"msg_contents": "Hi!\n\nRecently I've been looking for bloat in my databases and found a query \nto show which tables are more bloated and by how much.\n\nThis is the explain plan on v12.3: https://explain.depesz.com/s/8dW8C\nAnd this is with v11: https://explain.depesz.com/s/diXY\n\nBoth databases have appro... |
[
{
"msg_contents": "Hi team,\n\nWe want to check the postgres database status on docker container just like we monitor Postgres (up / down) via /etc/init.d/postgresql status\n\nBut I am not sure how we can do that with docker.\n\nThanks,\nDaulat\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nHi team,\n \nWe want to check the p... |
[
{
"msg_contents": "Hey,\nI'm handling a very weird situation. I tried to check which sequences\nbelong to a specific table (table_A) with the following query :\n WITH\nsequences AS\n(\nSELECT oid,relname FROM pg_class WHERE relkind = 'S'\n)\nSELECT s.oid as seq_oid,d.objid as objid,d.refobjid\nFROM pg_depend d,... |
[
{
"msg_contents": "Hi,\nIs this necessary to run analyze on a slave using streaming replication\nafter promotion??\n\nHi,Is this necessary to run analyze on a slave using streaming replication after promotion??",
"msg_date": "Thu, 26 Sep 2019 09:54:40 +0200",
"msg_from": "Joao Junior <jcoj2006@gmail.co... |
[
{
"msg_contents": "Hi,\n\nI use PG 11.5 into CentOS6 server, with 50 schemas, exactly equals in \ntables structure, and more than 400 tables/schema. Then, there is more \nthan 20000 tables.\n\nI found the discussion in pgsql-general thread:\n\nhttps://www.postgresql.org/message-id/flat/11566.1558463253%40sss.pg... |
[
{
"msg_contents": "Hi,\n\nAs part of vacuum tuning, We have set the below set of parameters.\n\n\n\n\n\n*> select relname,reloptions, pg_namespace.nspname from pg_class join\npg_namespace on pg_namespace.oid=pg_class.relnamespace where relname\nIN('process_instance') and pg_namespace.nspname='public'; relname... |
[
{
"msg_contents": "Hey,\n\nI'm working on PG12.\nI have the following table :\n\\d dates_table\n Table \"public. dates_table \"\n Column | Type | Collation | Nullable | Default\n----------+---------+-----------+----------+--------------------------------------... |
[
{
"msg_contents": "Hardware\n\n - CPU: Core i7 6700\n - OS: Ubuntu 19.04\n - RAM: 32GB (limited to 2GB for this test)\n\nAlso reproducible on a 2018 MacBook Pro.\nDetails\n\nOn my machine, this query that is generated by Hibernate runs in about 57\nms on MySQL 8 but it takes more than 1 second to run on P... |
[
{
"msg_contents": "Hey,\nIn PG12 I'm trying to create partitions by range on a date column that\nmight be null (indicates it is the most recent version of the object). My\nPK has to include the partition column, therefore I'm getting an error that\nI cant create a primary key with the specific column because it... |
[
{
"msg_contents": "I recently performed a pg_dump (data-only) of a relatively large database\nwhere we store intermediate results of calculations. It is approximately 3\nTB on disk and has about 20 billion rows.\n\nWe do the dump/restore about once a month and as the dataset has grown, the\nrestores have gotten... |
[
{
"msg_contents": "Hi All,\n\nAll of sudden the query went slow before the query was executing in 30- 35\nsec now even after 30 mins i am not getting any result.\n\nlater I have dropped a table ( t_meners) and recreated it and again it\nstarted working very fast.\n\nis there way to find what happen on that why... |
[
{
"msg_contents": "I have a question about the files in .../data/postgresql/11/main/base,\nspecifically in relation to very large tables and how they are written.\n\nI have been attempting to restore a relatively large database with\npg_restore and it has been running for more than a week. (I also have\nanothe... |
[
{
"msg_contents": "As my table has gotten bigger, it takes longer to get a single row back\nwhen querying a row by its btree index.\n\nRight now the database is running on a traditional HDD. SSDs have a much\nfaster seek time than traditional HDDs.\n\nWould switching to an SSD improve \"Index Only Scan\" time g... |
[
{
"msg_contents": "Is there a way to display the planner algorithm used by a query, either in\nEXPLAIN or in a different way?\n\nRegards,\nBehrang (sent from my mobile)\n\nIs there a way to display the planner algorithm used by a query, either in EXPLAIN or in a different way?Regards,Behrang (sent from my mobil... |
[
{
"msg_contents": "This is a follow up to\nhttps://www.postgresql.org/message-id/flat/CAERAJ%2B-1buiJ%2B_JWEo0a9Ao-CVMWpgp%3DEnFx1dJtnB3WmMi2zQ%40mail.gmail.com\n\nThe query (generated by Hibernate) got a bit more complex and performance\ndegraded again. I have uploaded all the details here (with changed table\... |
[
{
"msg_contents": "Hi all,\n\nI have a problem with views. When I use view in my query it really slows down(1.7seconds)\nIf I use inside of view and add conditions and joins to it, it is really fast(0.7 milliseconds).\nI have no distinct/group/partition by in view so I have no idea why is this happening.\nI wro... |
[
{
"msg_contents": "Hello,\n\nThere's a \"users\" table with the following structure:\n\nCREATE TABLE \"user\" (\n id SERIAL PRIMARY KEY,\n -- other fields\n);\n\nand there's a \"friends\" table with the following structure:\n\nCREATE TABLE friend (\n user1_id INTEGER NOT NULL REFERENCES \"user\"(id),\n user2... |
[
{
"msg_contents": "Dear I would like to share with you to see what you think about the\nstatistics of pg_stat_bgwriter\n\npostgres = # select * from pg_stat_bgwriter;\n checkpoints_timed | checkpoints_req | checkpoint_write_time |\ncheckpoint_sync_time | buffers_checkpoint | buffers_clean | maxwritten_clean\n| ... |
[
{
"msg_contents": "Hi folks -\n\nDoes anyone know if there's been a change in the way values for CTEs are \ndisplayed in query plans?\n\nI think that it used to be the case that, for keys that include the \nvalues of child nodes values (eg \"Shared Hit Blocks\", or \"Actual Total \nTime\"), CTE scans included t... |
[
{
"msg_contents": "Hi all,\n\n\n\nHow to fetch certain number of tuples from a postgres table.\n\n\n\nSame I am doing in oracle using following lines by setting prefetch attribute.\n\n\n\nFor oracle\n// Prepare query\n if( OCIStmtPrepare( myOciStatement, myOciError, (text *)aSqlStatement,\n// Get statement t... |
[
{
"msg_contents": "https://explain.depesz.com/s/Caa5\n\nI am looking at this explain analyze output and seeing a nested loop\ntowards the lowest levels with pretty bad estimate vs actual (2.3k vs 99k),\nbut the things that feed that nested loop seem like the estimates are\nrather close (index scans with 11 esti... |
[
{
"msg_contents": "Hi,\nI am not sure if here is the best place to post this.\nI would like to know why max_connections parameter can't be changed\nwithout a restart. I know that it is a postmaster's context parameter.\nWhich PostgreSQL's subsystems, structures and OS kernel parameters should\nbe affected to... |
[
{
"msg_contents": "Hi there!\n\nI guess we stumbled upon a performance issue with notifications sent within triggers (using PostgreSQL version 11.5)\nand I'd like your opinion about this.\n\nWe want our app to maintain a data cache, so each instance of the app listens to some channels (one per table).\nThere ar... |
[
{
"msg_contents": "On Postgres 9.6 (config below), I have a case I don't understand: three\ntables that can be separately queried in milliseconds, but when put\ntogether into one view using UNION, take 150 seconds to query. Here's the\nrough idea (actual details below):\n\ncreate view thesaurus as\n ... |
[
{
"msg_contents": "I have created a GIN index using jsonb_path_ops over some JSONB\ncolumns. Initially, while the index was small, the query planner would\nselect a Bitmap Index Scan strategy to execute queries leveraging the\nappropriate JSONB operator (@>). Now that the table has grown to\nalmost 200k rows an... |
[
{
"msg_contents": "Hi All,\n\nWe have configured postgres 11.2 in streaming replication (primary & Standby) on docker and I am looking to initiate the Postgres backup using barman. As I know there are few options for taking backup using barman.\n\nRSYNC backup\nIncremental Backups\nStreaming Backup with contin... |
[
{
"msg_contents": "We’re having trouble working out why the planning time for this particular query is slow (~2.5s vs 0.9ms execution time). As you can see below, there are only 3 tables involved so it’s hard to imagine what decisions the planner has to make that take so long. After 5 runs the prepared-statemen... |
[
{
"msg_contents": "Hello all,\r\n\r\nWe are trying to debug some slow performance in our production environment (Amazon RDS, Postgresql 9.6.11), and we’re looking at a particular EXPLAIN node that seems… weird. This is a very large query involving a number of joins, but it performs pretty well in our staging e... |
[
{
"msg_contents": "The time has come.\n\nFPGA optimization is in the palm of our hands (literally a 2 TB 40 GB/s \nIO PostgreSQL server fits into less than a shoe box), and on Amazon AWS \nF1 instances.\n\nSome demos are beginning to exist: https://github.com/Xilinx/data-analytics.\n<https://github.com/Xilinx/d... |
[
{
"msg_contents": "I have a large table with millions of rows. Each row has an array field\n\"tags\". I also have the proper GIN index on tags.\n\nCounting the rows that have a tag is fast (~7s):\nSELECT COUNT(*) FROM \"subscriptions\" WHERE (tags @> ARRAY['t1']::varchar[]);\n\nHowever counting the rows that do... |
[
{
"msg_contents": "Hi!\n\nIs there a reason query 3 can't use parallel workers? Using q1 and q2 \nthey seem very similar but can use up to 4 workers to run faster:\n\nq1: https://pastebin.com/ufkbSmfB\nq2: https://pastebin.com/Yt32zRNX\nq3: https://pastebin.com/dqh7yKPb\n\nThe sort node on q3 takes almost 12 se... |
[
{
"msg_contents": "Hi,\n\nWe have a table which has a jsonb column in it. Each row contains a lot \nof data in that column, so TOASTed.\n\nWe have to extract data from that column at different levels, so an \nexample query could look like\n\nselect\n col1,\n col2, \njsonb_path_query_first(data,'$.lvl1.lvl2.... |
[
{
"msg_contents": "I'm completely baffled by this problem: I'm doing a delete that joins three\nmodest-sized tables, and it gets completely stuck: 100% CPU use forever.\nHere's the query:\n\nexplain analyze\n select count(1) from registry.categories\n where category_id = 15 and id in\n (select c.id from reg... |
[
{
"msg_contents": "Hi all,\n\nThis morning I was checking postgres servers logs, looking for errors \n(we've recently upgraded them and changed default config) and long \nrunning queries when I found one of the servers had really big logs \nsince yesterday. It was giving the error of this mail's subject: out o... |
[
{
"msg_contents": "Hello colleagues -\n\n \n\nThe problem description:\n\nWe're moving from 9.6 to 11.5. There is a SQL code that never ends in 11.5\nbut works fine in 9.6. The main cause is the optimizer considers of using NL\nAnti join instead of Merge in 9.6. And the root cause - wrong estimation\nwhile self... |
[
{
"msg_contents": "Hello\n\nI'm on a PostgreSQL 12.1 and I just restored a database from a backup.\nWhen I run a query I get a big execution time: 5.482 ms\nAfter running EXPLAIN ANALYZE I can see that the \"Planning Time: \n5165.742 ms\" and the \"Execution Time: 6.244 ms\".\nThe database is new(no need to vac... |
[
{
"msg_contents": "Hey,\n\nI'm trying to figure out why Postgres is choosing a Hash Join over a \nNested Loop in this query:\n\nSELECT T1.PesID, T1.PesNom, T1.PesValSal, T1.PesCPFCNPJ, T2.CarAti, \nT1.CarCod, T1.EmpCod,\n T2.CarFan, T1.PesDatAge, T1.PesCod, COALESCE( T3.PesDatAnt, DATE \n'00010101') AS P... |
[
{
"msg_contents": "Hey all,\nI'm testing performance of two identical machines one in 9.6 and the second\none is in 12. The second machine is a clone of the first one + db upgrade\nto 12 beta 3 (Yes I'm aware 12.1 was released).\n\nmachine stats :\n32gb ram\n8 cpu\nregular hd (not ssd)\n\nmy postgresql.confg se... |
[
{
"msg_contents": "Hi,\nI'm using PostgreSQL on Windows for Planet OSM database and have\nnoticed considirable decrease in performance when upgrading from v10\nto 11 or 12. Here are the details of the experiment I conducted trying\nto figure out what is causing the issue.\n\nInstalled PostgreSQL 10 from scratch... |
[
{
"msg_contents": "Hello community!\n\nWe are currently testing PostgreSQL 11's built-in logical replication. We\nare trying to initialize a subscriber (from scratch) from a publisher with\na large database (+6TB) with around 220 tables.\n\nWe tweaked the configuration parameters below, both on publisher and\ns... |
[
{
"msg_contents": "Hello,\n\nI'm trying to figure out how to optimise 3-table (many-to-many relation) joins\nwith predicate, limit, and ordering, where one of the tables returns at most one\nrow.\n\nThis is the query that I have right now:\n\nSELECT entity.id\nFROM (\n SELECT entity_tag.entity_id\n FROM t... |
[
{
"msg_contents": "Hi,\n\nI am looking for tuning my PG setup such that recently inserted or updated\nrecord will be available in the buffer/cache (I believe they are same in\nthis context). Does PostgreSQL do it by default? If yes, just increasing\nbuffer size sufficient? What will be its effect on LRU perform... |
[
{
"msg_contents": "Hi\n\nI have a function that prepares data, so the big job can be run it in parallel.\n\nToday I have solved this by using \"Gnu parallel\" like this.\npsql testdb -c\"\\! psql -t -q -o /tmp/run_cmd.sql testdb -c\\\"SELECT find_overlap_gap_make_run_cmd('sl_lop.overlap_gap_input_t1','geom',425... |
[
{
"msg_contents": "Hi,\nI am investigating a performance problem in our application and am seeing something unexpected in the postgres logs regarding the autovacuum.\n\n2019-12-01 13:05:39.029 UTC,\"wb\",\"postgres\",6966,\"127.0.0.1:53976\",5ddbd990.1b36,17099,\"INSERT waiting\",2019-11-25 13:39:28 UTC,12/1884... |
[
{
"msg_contents": "Hi,\n\nWe are in the process of migrating an oracle database to postgres in Google\nCloud and are investigating backup/recovery tools. The database is size is\n> 20TB. We have an SLA that requires us to be able to complete a full\nrestore of the database within 24 hours. We have been testing\... |
[
{
"msg_contents": "Hi all,\n\nThis question is somewhat related to my previous question:\nhttps://www.postgresql.org/message-id/0871fcf35ceb4caa8a2204ca9c38e330%40USEPRDEX1.corp.kns.com\n\nI was attempting to measure the benefit of doing a VACUUM FULL on my database. I was using the query found here:\n\nhttps:... |
[
{
"msg_contents": "Hi team,\n\nCould you please help me with this strange issue I am facing in my current live server I am maintaining.\n\nThere is a specific search query I am running to get list of Documents and their metadata from several table in the DB.\nWe are running Postgres 9.6.9 on Amazon RDS (db.m5.4... |
[
{
"msg_contents": "Hey all,\nI'm trying to analyze a weird situation that I have seen in my db.\nSometimes my app fails to start because of the following msg :\nSQL State : null\nError Code : 0\nMessage : Cannot create PoolableConnectionFactory (ERROR: canceling\nstatement due to user request)\n\nIn the db ... |
[
{
"msg_contents": "> From: Joe Conway\n\n> Sent: Sunday, December 8, 2019 9:04 PM\n\n> To: Lars Aksel Opsahl; Laurenz Albe; pgsql-performance@lists.postgresql.org\n\n> Subject: Re: How to run in parallel in Postgres, EXECUTE_PARALLEL\n\n>\n\n> On 12/8/19 1:14 PM, Lars Aksel Opsahl wrote:\n\n> > Do you or anybod... |
[
{
"msg_contents": "Hi all,\n\nI am running TPC-H on recent postgresql (12.0 and 12.1).\nOn some of the queries (that may involve parallel scans) I see this\ninteresting behavior:\nWhen these queries are executed back-to-back (sent from psql interactive\nterminal), the total execution time of them increase monot... |
[
{
"msg_contents": "I'm using postgres 9.4.17 on centos 7.\nI check the running queries with the following SQL:\nSELECT\n procpid,\n start,\n now() - start AS lap,\n current_query\nFROM\n (SELECT\n backendid,\n pg_stat_get_backend_pid(S.backendid) AS procpid,\n pg_stat_get_bac... |
[
{
"msg_contents": "Hello,\n\nCurrently we're working on PSQL 11.5 and we're trying upgrade to 12.1.\n\nDuring that we have a problem:\n\ncommand: \"/usr/pgsql-12/bin/pg_dump\" --host /cluster/postgresql --port 50432\n--username postgres --schema-only --quote-all-identifiers --binary-upgrade\n--format=custom --... |
[
{
"msg_contents": ">> On Tue, Dec 17, 2019 at 08:03:41PM +0000, Piotr Włodarczyk wrote:\n>> Currently we're working on PSQL 11.5 and we're trying upgrade to 12.1.\n>> \n>> During that we have a problem:\n>> \n>> command: \"/usr/pgsql-12/bin/pg_dump\" --host /cluster/postgresql --port\n50432\n>> --username postg... |
[
{
"msg_contents": "The docs for parallel_tuple_cost are quite terse, as the reference section\nof the docs usually are:\n\n\"Sets the planner's estimate of the cost of transferring one tuple from a\nparallel worker process to another process. The default is 0.1.\"\n\nUsually you can find more extensive discussi... |
[
{
"msg_contents": "Hi all,\n\nQuery plan quick link: https://explain.depesz.com/s/JVxn\nVersion: PostgreSQL 10.4 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu\n5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609, 64-bit\n\ntbl: ~780 million rows, bigint primary key (keytbl), col1 is smallint and\nthere is an index on (co... |
[
{
"msg_contents": "Is it possible to tell what component of the cost estimate of an index scan is\nfrom the index reads vs heap ?\n\nIt would help to be able to set enable_bitmapscan=FORCE (to make all index\nscans go through a bitmap). Adding OR conditions can sometimes do this. That\nincludes cost of bitmap... |
[
{
"msg_contents": "Hello!\n\nI have a query on a large table that is very fast (0s):\nhttps://gist.github.com/collimarco/039412b4fe0dcf39955888f96eff29db#file-fast_query-txt\n\nBasically the query matches the rows that have a tag1 OR tag2 OR tag3 OR\ntag4 OR tag5...\n\nHowever if you increase the number of OR a... |
[
{
"msg_contents": "Hi All,\n\nI'm testing an upgrade from Postgres 9.6.16 to 12.1 and seeing a\nsignificant performance gain in one specific query. This is really great,\nbut I'm just looking to understand why. Reading through the release notes\nacross all the new versions (10, 11, 12) hasn't yielded an obvious... |
[
{
"msg_contents": "Hi,\nI have a master slave setup with streaming replication.\nI have a lots of wal files that were moved from master but not applied yet\n, a big delay in the replica.\nThe replica is not working on hotstandby mode , no conflicts to delay\nwals apply on it.\n\nI would like to know if incr... |
[
{
"msg_contents": "After migrating to a partitioned table, I noticed that a\nperformance-critical plpgsql function is a few times slower.\nBasically, the function takes a key as an argument, and performs SELECT,\nUPDATE and DELETE operations on tables partitioned by the key.\nI narrowed down the problem to the ... |
[
{
"msg_contents": "Hello List, I'm Cosmin. This is my first post and I'll get right down to\nthe problem. I'm using Postgresql 10 (because that's what's installed by\ndefault on Ubuntu 18.04):\n\nexplain analyze\n select R, C, V from LBD\n where Ver = 92 and Id in (10,11)\n\nIndex Scan using \"IX_LBD_Ver_Id... |
[
{
"msg_contents": "Hello mail group members,\n\nI started a new job as PostgreSQL DBA. This is my first mail, I hope the mail I sent meets the rules.\n\nThere is a query that runs slowly when I look at the logs of the database. When I check the resources of the system, there is no problem in the resources, but ... |
[
{
"msg_contents": "Hello!\n\nLet's say that you have a simple query like the following on a large table\n(for a multi-tenant application):\nSELECT \"subscribers\".* FROM \"subscribers\" WHERE \"subscribers\".\"project_id\"\n= 123 AND (tags @> ARRAY['de']::varchar[]);\n\nIf you run EXPLAIN ANALYZE you can see th... |
[
{
"msg_contents": "Hello,\n\nI am experiencing slow performance when joining a table against itself on its\nprimary key column.\n\nI expect the query plan to be identical for both of the below queries (and I\nexpect the performance to also be identical). But the second one is much slower:\n\nThe FAST QUERY has ... |
[
{
"msg_contents": "I'm looking to write about 1100 rows per second to tables up to 100 million\nrows. I'm trying to come up with a design that I can do all the writes to a\ndatabase with no indexes. When having indexes the write performance slows\ndown dramatically after the table gets bigger than 30 million ro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.