threads
listlengths
1
275
[ { "msg_contents": "Hello everybody,\n\n\n\nI have trouble with my table that has four columns which their data types\nare text, JSON, boolean and timestamp.\n\nAlso, I have 1K rows, but my JSON column size approximately 110KB and maybe\nover it.\n\nWhen I select all the data from my table, it takes 600 seconds....
[ { "msg_contents": "På fredag 07. februar 2020 kl. 15:35:04, skrev Asya Nevra Buyuksoy <\nayisan1096@gmail.com <mailto:ayisan1096@gmail.com>>: \nI use pgadmin3. \n\nTry \"psql\", it has the lowest overhead (I think). pgAdmin might use time \npresenting the results etc. which is easy to overlook. \n\n\n-- \nAndre...
[ { "msg_contents": "Hi,\n\nI have a large table of immutable events that need to be aggregated\nregularly to derive statistics. To improve the performance, that table is\nrolled up every 15minutes, so that online checks can aggregate rolled up\ndata and combine it with latest events created after the last roll u...
[ { "msg_contents": "Hi\n\nI recently came across a performance problem with a big transaction block,\nwhich doesn't make sense to me and hopefully someone more knowledgeable can\nexplain the reasons and point out a direction for a solution.\n\n-- TL; DR;\n\nUPDATE on a row takes relatively constant amount of tim...
[ { "msg_contents": "Hello,\n\nWhen creating partial indexes, can postgres utilize another index for\nfiguring which rows should be included in the partial index, without\nperforming a full table scan?\n\nMy scenario is that I have a table with 50M rows that are categorized into\n10K categories. I need to create ...
[ { "msg_contents": "Hi\n\n\nOn a server with 32 cores and 250 GB memory, with CentOS 7 and kernel 4.4.214-1.el7.elrepo.x86_64, I try to run 30 parallel threads using dblink. (https://github.com/larsop/postgres_execute_parallel) . I have tried to disconnect and reconnect in the dblink code and that did not help.\...
[ { "msg_contents": "after upgrade Postgres to v9.6.11 from v9.6.9 DB running out of memory issues no world load has changed before and after upgrade. \n\nspec: RAM 16gb,4vCore\nAny bug reported like this or suggestions on how to fix this issue? I appreciate the response..!! \n\n\n\n\nI could see below error logs...
[ { "msg_contents": "Hi\n\nI have both hdd and ssd disk on the postgres server. The cluster is\nright now created on the hdd only. I am considering using a tablespace\nto put some highly used postgres object on the ssd disk. Of course the\nssd is small compared to the hdd, and I need to choose carefully what\nobj...
[ { "msg_contents": "Hi Team,\n\nCan we have multiple tablespaces with in a database in postgres?\n\nCan we have a table on different tablespace same as Oracle?\n\nThanks,\n\n\n\n\n\n\n\n\n\nHi Team,\n \nCan we have multiple tablespaces with in a database in postgres?\n\n \nCan we have a table on different tables...
[ { "msg_contents": "Hi,\nI am looking to Range Partition one of my table (i.e. TransactionLog) in PostgreSQL 11.While evaluating query performance difference between the un-partitioned and partitioned table I am getting huge difference in planning time. Planning time is very high on partitioned table.Similarly w...
[ { "msg_contents": "Hi All,\n\nWe have recently upgraded our postgres servers from 9.4 version to 11.5\nversion. Post upgrade we are see delay in authentication.\n\nIssue is when we are using ldaptls=1 the authentication takes 1 second or\ngreater than that. But if I disable ldaptls it's getting authenticated\nw...
[ { "msg_contents": "Greetings,\n\nI was trying to use postgresql database as a backend with Ejabberd XMPP\nserver for load test (Using TSUNG).\n\nNoticed, while using Mnesia the “simultaneous users and open TCP/UDP\nconnections” graph in Tsung report is showing consistency, but while using\nPostgres, we see dr...
[ { "msg_contents": "Dear all,\n\nI am facing a much, much slower query in production than on my\ndevelopment computer using a restored production backup, and I\ndon't understand why nor I see what I could do to speedup the\nquery on production :/\n\nShort data model explanation: one table stores tickets, one tab...
[ { "msg_contents": "Running into a strange issue that just popped up on a few servers in my\nenvironment and was wondering if the community had any insight into as to\nwhat could be causing the issue.\n\nFirst, a bit of background. I am running Postgres 10.11 on Windows (but\nhave seen similar issue on a server ...
[ { "msg_contents": "Hey,\nI upgraded from 96 to 12 in our test env and I'm seeing that for queries\nthat involve join operation between a partition table and other tables\nthere is degradation is performance compared to pg96 performance.\n\nMy machine : 8cpu,16gb,regular hd,linux redhat 6\npg settings :\nmax_wal...
[ { "msg_contents": "Hello,\n\nOn PG 12.2, I am analyzing a performance problem when using a client\n(Elixir/postgrex) querying via the extended query protocol. I am comparing\nwith\npsql and a C program. Logs for all three follow this short explanation.\n\nThe query is trivial: `SELECT [cols] FROM t WHERE id =...
[ { "msg_contents": "Hi,\n\nWe have a multi-tenant app where each tenant has their own schemas, and\ninherits tables from tables defined in the public schema. Other shared data\nsuch as data types are also stored in the public schema. While running this\napp, every transaction is started with setting the search_p...
[ { "msg_contents": "Hi folks,\n\nWe are using postgreSQL database and I am hitting some limits. I have\npartitions on company_sale_account table\nbased on company name\n\nWe generate a report on accounts matched between the two. Below is the\nquery:\n\nSELECT DISTINCT cpsa1.*\nFROM company_sale_account cpsa1\n J...
[ { "msg_contents": "I have noticed that my write/update performance starts to dramatically\nreduce after about 10 million rows on my hardware. The reason for the\nslowdown is the index updates on every write/update.\n\nThe solution would be partitioning? One of my tables will have more\nthan 1 billion rows of da...
[ { "msg_contents": "Hello All,\n\nWhile doing some tests with hash partitioning behavior in PG11 and 12, I\nhave found that PG11 is not performing partition pruning with DELETEs\n(explain analyze returned >2000 lines). I then ran the same test in PG12\nand recreated the objects using the same DDL, and it worked\...
[ { "msg_contents": "Hi,\n\nI am trying to generate some random data using the random() function.\n\nHowever, I am getting the same result over mulitiple rows. This is a \nsample of the SQL I am using:\n\nselect (select string_agg(random()::text,';')\n           from pg_catalog.generate_series(1,3,1) )\n   from g...
[ { "msg_contents": "Hello list,\n\nI'm trying to clean up a database with millions of records of \nuseless-but-don't-remove-just-in-case data. This database has all tables \nin public schema so I've created a new schema \"old_data\" to move there \nall this data. I have several tables with 20million of records o...
[ { "msg_contents": "Dear list,\n\nhere is a pretty contrived case where increasing work_mem produces a worse plan, with much worse overall query time. I wonder why that is the case.\n\n\nProblem: INSERTing a thousand new rows in a table which can easily have one million rows. PK is \"id\", which comes from a tab...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 16334\nLogged by: Tejaswini GC\nEmail address: tejaswini.gc@decathlon.com\nPostgreSQL version: 10.10\nOperating system: Centos 7\nDescription: \n\nHello Team,\r\n\r\nWe have upgraded our database i...
[ { "msg_contents": "Hi Team,\n\nGood Evening,\n\nCould someone please help us share the procedure to troubleshoot the locks\non proc issues.\n\nEnvironment:\n============\n 1 pgpool server (Master Pool Node) using Straming replication with load\nbalancing\n 4 DB nodes (1Master and 3 Slaves).\n\n Versions:\n 1. p...
[ { "msg_contents": "Dear I have a question to ask you\nI am having a slow problem with a query and I am seeing with the explain\nthat the current cost and time differ by 4 times\nPostgres version 9.5.16 in centos 7.6\nTo try to solve this run the statistics to the table and the same problem\nremains\nIt's a very...
[ { "msg_contents": "I have a table with 120 million rows of data spread among 512\npartitioned by hash table. The id column of the table is a uuid, which\nis what is being used for the partition hash and it's also the PK for\nthe table.\n\nThe table has a text column, which also has a btree index on it. A\nselec...
[ { "msg_contents": "Hi,\n\nI am seeing a performance problem with postgresql v 11.7 on views, and I am wondering if anyone can tell me why or has any suggestion.\n\nA table is created as:\n\nCREATE TABLE \"FBNK_CUSTOMER\" (RECID VARCHAR(255) NOT NULL PRIMARY KEY, XMLRECORD VARCHAR)\n\nAnd contains only 180 rows....
[ { "msg_contents": "hi folks,\n\nwe are looking for a PostgreSQL DBA to help us in tuning our database.\n\nCould you please recommend somebody in your network?\nthanks,\n--daya--\n\nhi folks,we are looking for a PostgreSQL DBA to help us in tuning our database. Could you please recommend somebody in your network...
[ { "msg_contents": "Hi,\n\nI have performance issues which I never seen before in my 20+ years\nexperience with PostgreSQL.\n\nWith database on dedicated server I encountered unusual load profile:\nmulti thread (200 connections static size pool via pgbouncer) insert only\ninto single table around 15.000 insert/s...
[ { "msg_contents": "Good morning,\n\nUbuntu 16.04.6 LTS\nPostgreSQL 9.6.5\n\nOn one of our database servers, we're regularly seeing kswapd at the top of\n\"top\" output, regularly using over 50 %CPU. We should have well over 80GB\nof available memory according to \"free -m\".\n\n# free -m\n total ...
[ { "msg_contents": "Hi,\n\nWe have an odd issue where specifying the same where clause twice causes PG\nto pick a much more efficent plan. We would like to know why.\n\nQuery A (this is the 'slow' query):\nUPDATE problem_instance SET processed = false\nFROM problem\nWHERE problem.id = problem_instance.problem_id...
[ { "msg_contents": "Hi. Apologies in advance if this is not the right place to ask.\n\nI was wondering if anyone was using unlogged tables for website\nsessions in production. I'm interested if UNLOGGED breaks the\nprevailing opinion that you don't put sessions in PG.\n\n\n", "msg_date": "Wed, 15 Apr 2020 23...
[ { "msg_contents": "Hi,\n\nI don't understand why postgresql doesn't use clearly the most optimal \nindex for a query in PLAN.\n\nCan you help me?\n\n\ncreate table public.tabla\n(\n     cod_tabla bigint not null,\n     tabla varchar(31) not null,\n     constraint pk_tabla primary key (cod_tabla)\n);\n\n\ncreate...
[ { "msg_contents": "We have production database that has slow queries because of the query get\nall columns even if I'm using only one column.\nThe result is slow for tables that there are too much columns\nThe weird part is that there is environment that I can't reproduce it even\nif they are using the same pos...
[ { "msg_contents": "Hello,\n\nI have a performance/regression problem on a complicated query (placed \ninto a function) when some tables are empty.\n\nOn Pg 11.6 the query takes 121ms\nOn Pg 12.2 it takes 11450ms\n\nI first sent a message to the pgsql-bugs mailing list :\n\nhttps://www.postgresql.org/message-id/...
[ { "msg_contents": "Hello,\n\nI am trying to figure out the recommended settings for a PG dedicated \nmachine regarding NUMA.\n\nI assume that the shared buffers are using Huge Phages only. Please \ncorrect if I am wrong:\n\n1) postgres is started with numactl --interleave=all, in order to spread \nmemory pages ...
[ { "msg_contents": "I need to store about 600 million rows of property addresses across\nmultiple counties. I need to have partitioning setup on the table as\nthere will be updates and inserts performed to the table frequently\nand I want the queries to have good performance.\n\n From what I understand hash part...
[ { "msg_contents": "Hi,\n\nHoping someone can help with this performance issue that's been driving a\nfew of us crazy :-) Any guidance greatly appreciated.\n\nA description of what you are trying to achieve and what results you\nexpect.:\n - I'd like to get an understanding of why the following query (presented\...
[ { "msg_contents": "I have created the following table to duplicate my performance\nnumbers, but I have simplified the table for this question.\n\nI'm running PostgreSQL 12 on the following hardware.\n\nDual Xeon Quad-Core E5320 1.86GHz\n4GB of RAM\n\nThe table structure is\n\n id uuid\n address_api_url text\n c...
[ { "msg_contents": "Hi,\n\nI am Oracle DBA for 20+ years and well verse with Oracle internal and all\nrelated details, performance optimization , replication etc...\nSo I 'm looking for acquiring similar expertise for Postgresql.\n\nNow I am using Aurora Postgresql and looking for excellent technical book\nfor P...
[ { "msg_contents": "Version: Postgres 9.6.3 production system (but also tested on Postgres 12)\n\nFor my query the Planner is sometimes choosing an execution plan that uses\n\"Bitmap And\" (depending on the parameters):\n\n-> Bitmap Heap Scan on observation (cost=484.92..488.93 rows=1 width=203)\n(actual time=...
[ { "msg_contents": "Hi,\n\nPostgreSQL version : PostgreSQL 9.6.2 on x86_64-pc-linux-gnu, compiled by\ngcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9), 64-bit\n\nWe have noticed huge difference interms of execution plan ( response time)\n, When we pass the direct values Vs inner query to IN clause.\n\nHigh level det...
[ { "msg_contents": "Hi experts,\n\nOur application serves multiple tenants. Each tenant has the schema with a\nfew hundreds of tables and few functions.\nWe have 2000 clients so we have to create 2000 schemas in a single database.\n\nWhile doing this, i observed that the catalog tables pg_attribute,\npg_class, p...
[ { "msg_contents": "Hello Team,\n\nWe are using a PostgreSQL version -9.6.12 version and from last 4 weeks our\nTransaction ID's (XID's) have increased by 195 million to 341 million\ntransactions. I see the below from pg_stat_activity from the postGreSQL DB.\n\n1) Viewing the pg_stat-activity I noticed that t...
[ { "msg_contents": "I noticed something peculiar while optimizing complex views today. The query planner does not skip inner joins that, to my understanding, can have no impact on the result. Am I missing a situation where these joins could impact the result?\n\nThe following demonstrates the problem without the...
[ { "msg_contents": "I redid the same tests with vanila postgres and with empty tables.\nI'm surprised, why does the plan have 2550 rows in explain?\n\nregards,\nRanier Vilela\n\nI redid the same tests with vanila postgres and with empty tables.I'm surprised, why does the plan have 2550 rows in explain?regards,Ra...
[ { "msg_contents": "First time posting here, so please let me know what additional information\nyou'd like. Thanks!\n\n## A description of what you are trying to achieve and what results you\nexpect:\n\n- I have a program that dynamically generates SQL queries\n- I made changes to how that program generates the...
[ { "msg_contents": "Hi folks,\n\nWe met unexpected PostgreSQL shutdown. After a little investigation we've\ndiscovered that problem is in OOM killer which kills our PostgreSQL.\nUnfortunately we can't find query on DB causing this problem. Log is as\nbelow:\n\nMay 05 09:05:33 HOST kernel: postgres invoked oom-ki...
[ { "msg_contents": "Hi Team,\n\nThanks for your support.\n\nWe are using below environment:\n\nApplication :\nProgramming Language : JAVA\nGeoserver\n\nDatabase Stack:\nPostgreSQL : 9.5.15\nPostgis\n\nWe have 3 geoserver queries and are getting some performance issues after\nchanging the GeoServer queries.I have...
[ { "msg_contents": "Hi Team,\n\nThanks for your support.\n\nCould you please suggest on below query.\n\nEnvironment\nPostgreSQL: 9.5.15\nPostgis: 2.2.7\n\nMostly table contain GIS data.\n\nWhile analyzing the table getting below NOTICE. It seems is pretty\nunderstanding, but needs help on the below points.\n\n1 ...
[ { "msg_contents": "Hi Team,\nThanks for your support.\nCould you please suggest on below query.\n\nEnvironment\n\nPostgreSQL: 9.5.15\nPostgis: 2.2.7\nMostly table contains GIS data and we are trying to creating an index on\nthe column which is having an avg width of 149bytes.\n\n CREATE INDEX index_idx\n ON SC...
[ { "msg_contents": "Hi Team,\nThanks for your support.\n\nCould you please suggest on below query.\n\nWe have multiple long procs that are having 100s of data validations and\ncurrently we have written as below.\n\n***********\n\nif (SELECT 1 FROM SCHEMA.TABLE WHERE column=data AND column=data) then\nstatements...
[ { "msg_contents": "Hi Team,\n\nThanks for your support.\n\nCould you please suggest on below query.\n\nEnvironmentPostgreSQL: 9.5.15\nPostgis: 2.2.7\n\nThe table contains GIS data which is fiber data(underground routes).\n\nWe are using the below query inside the proc which is taking a long time to\ncomplete.\n...
[ { "msg_contents": "Hi Team,\n\nThanks for your support.\n\nCould someone please suggest on the below query.\n\nOne of the query which was created on GIS data is taking a long time and\neven it is not taking the index as well. I have included all the required\ndetails for reference.\n\nDatabase Stack:\n=========...
[ { "msg_contents": "Hi Team,\n\nThanks for your support.\n\nCould someone please suggest on the below query.\n\nOne of the query which was created on GIS data is taking a long time and\neven it is not taking the index as well. I have included all the required\ndetails for reference.\n\nDatabase Stack:\n=========...
[ { "msg_contents": "Apologies for the cross-post to the general list.\n\nI'm keen to know if there are any good reasons apart from disk space and\npossible replication connection overhead to avoid the strategy proposed\nbelow.\n\nWe have quite a few databases of type a and many of type b in a cluster.\nBoth a an...
[ { "msg_contents": "Just in case someone is interested enough to answer this. Does anyone know\nif the performance for a date column vs a timestamp column as a partition\nkey is large? What i mean with large is that say you have 6 partitions with\n10GB each. Would it be a 10 second+ difference? An explanation of...
[ { "msg_contents": "Hi PostgreSQL community,\n\nI have a system that was running version 9.6.17 running on a system with\n48gb of memory and spinning disks front-ed by a HW RAID controller with\nNVRAM cache. We moved to a new box running version 12.3 on a system with\n64gb of memory and NVME SSD drives. Here are...
[ { "msg_contents": "Hi ,\n Can you help to tune the below plan\nLimit (cost=0.87..336777.92 rows=100 width=57) (actual time=599302.173..599481.552 rows=100 loops=1) Buffers: shared hit=78496066 -> Nested Loop (cost=0.87..11005874.67 rows=3268 width=57) (actual time=599302.170..599481.506 rows=100 loops=1) Buffer...
[ { "msg_contents": "Hi ,\nIn PGtune I can able to get configuration changes based on RAM and Disk and No of Connection.\nbut if we want to recommend RAM, DISK, and No of connection based on DB size. any calculation is there\n\nFor Example, 1 TB Database how much RAM and DISK Space required for better performance...
[ { "msg_contents": "Hi!\n\nI was reading up on declarative partitioning[1] and I'm not sure what could\nbe a possible application of Hash partitioning.\n\nIs anyone actually using it? What are typical use cases? What benefits\ndoes such a partitioning scheme provide?\n\nOn its face, it seems that it can only g...
[ { "msg_contents": "Hi all,\nI’ve been experimenting with some performance tuning on a particular query, and I observed a result that I don’t understand. \n\nI’ve been setting max_parallel_workers_per_gather to values the range 1-6 and then running EXPLAIN ANALYZE to see how much benefit we get from more parall...
[ { "msg_contents": "I have problem with one of my Postgres production server. Server works fine\nalmost always, but sometimes without any increase of transactions or\nstatements amount, machine gets stuck. Cores goes up to 100%, load up to\n160%. When it happens then there are problems with connect to database a...
[ { "msg_contents": "Hi all,\n\nI have a query that runs much slower in Postgres on Windows than on \nLinux, and I'm so far unable to explain why - the execution plans are \nidentical and the hardware is reasonably the same caliber.\n\nUsing explain analyze on the database running on Windows I get\n\n-> Index Sc...
[ { "msg_contents": "I'm facing performance issues migrating from postgres 10 to 12 (also from 11\nto 12) even with a new DB.\nTh performance difference is huge 300ms in pg10 vs 3 minutes in pg12.\n\nI have a view that abstracts the data in the database:\n\nCREATE OR REPLACE VIEW public.my_constraints\nAS SELECT ...
[ { "msg_contents": "Hello \n\n\nMy PostgreSQL server 10.11 running on windows which are running very slow. DB has two tables with ~200Mil records in each. user queries are very slow even explain analyze also taking a longer.\n\n\nCould you please help me to tune this query and any suggestions to improve system p...
[ { "msg_contents": "I wrote a simple query, and it is taking too long, not sure what is wrong in it, even its not giving EXPLAIN ANALYZE.\n\nselect T0.\"physical_address_sid\", T0.\"individual_entity_proxy_id\", T2.\"infrrd_hh_rank_nbr\"\nfrom \"cms_prospects\".PROSPECT T0\n--inner join \"sas_prs_tmp\".DEDUPE358...
[ { "msg_contents": "Hello,\n\nplease consider the following SQL query:\n\nSELECT * FROM \"transactions\" WHERE \n\t\"account\" IN (SELECT \"ID\" FROM \"accounts\" WHERE \"name\" ~~* '%test%') OR\n\t\"contract\" IN (SELECT \"ID\" FROM \"contracts\" WHERE \"name\" ~~* '%test%')\n\nThis yields the following plan on...
[ { "msg_contents": "> No. The subplan estimates are for the number of rows produced by one\n> execution of the subplan, ie the numbers of \"accounts\" or \"contracts\"\n> rows that match those inner WHERE conditions. This has very little\n> a-priori relationship to the number of \"transactions\" rows that will...
[ { "msg_contents": "Hi PostgreSQL users,\n\nI was looking at a slow query in our CMDB that using postgresql-12.3 as its\nbackend. I since I am using the pg_trgm extension elsewhere I decided to give\nit a try. To my surprise, the query plan did not change. But when I disabled\nthe index scan I got the much, much...
[ { "msg_contents": "> While you're waiting, you might think about recasting the query to\n> avoid the OR. Perhaps you could do a UNION of two scans of the\n> transactions table?\n\nThanks for the hint, I am well aware of the workaround for OR via UNION. I am not trying to improve this query per se as it is the ...
[ { "msg_contents": "Hi Team,\n\nWe have a PostgreSQL 11.5.6 database running on VM.\nRAM - 48GB\nCPU - 6 cores\nDisk - SSD on SAN\n\nWe wanted to check how the WAL disk is performing using pg_test_fsync.We\nran a test and got around 870 ops/sec for opendatasync and fdatasync and\njust 430 ops/sec for fsync.We fe...
[ { "msg_contents": "Hi all,\n\nlong time ago I devised with your help a task queuing system which uses \nSELECT ... FOR UPDATE SKIP LOCKED for many parallel workers to find \ntasks in the queue, and it used a partitioned table where the hot part \nof the queue is short and so the query for a job is quick and the...
[ { "msg_contents": "Hello list,\n\nI am having issues with performance inserting data in Postgres and would\nlike\nto ask for help figuring out the problem as I ran out of ideas.\n\nI have a process that generates a CSV file with 1 million records in it\nevery\n5 minutes and each file is about 240MB. I need this...
[ { "msg_contents": "Hi,\n\nI have two machines - one with 8GB RAM & 4core CPU and the other with 64GB\nRam & 24 core CPU. Both machines have the same DB (Postgres 12 + Postgis\n2.5.3). Same query is taking less time in low end machine whereas more\ntime in high end machine. Any thoughts on where to look? I h...
[ { "msg_contents": "Hello,\n\nA description of what you are trying to achieve and what results you expect:\nOur database is growing on a daily basis by about 2.5million rows per table (2 at the moment). Because of that, we decided to partition the data, especially, as we are pre-aggregating the data for weeks, m...
[ { "msg_contents": "Hi,\n\nI have problem with my Postgres production server.\nSometimes there a lot of Multiexact* LWlocks:\nMultiXactOffsetControlLock\nMultiXactMemberControlLock\nthat significantly impact on users queries performance.\nHow to find what is the reason of Multiexact* LWlocks?\n\nHardware:\n110 C...
[ { "msg_contents": "Hi all,\n\nI need help in full text search optimization for hstore type. I added my\nquery to explain.depesz, you can check the query and also i added explain\nanalyze result in this link: https://explain.depesz.com/s/QT1e\n\ntable_ord.ops column type is hstore. I couldn't find the effective ...
[ { "msg_contents": "Hi. I've got a query that runs fine (~50ms). When I add a \"LIMIT 25\" to\nit though, it takes way longer. The query itself then takes about 4.5\nseconds. And when I do an explain, it takes 90+ seconds for the same query!\n\nExplains and detailed table/view info below. tbl_log has 1.2M r...
[ { "msg_contents": "Hello,\n\nI wish to use logical replication in Postgres to capture transactions as\nCDC and forward them to a custom sink.\n\nTo understand the overhead of logical replication workflow I created a toy\nsubscriber using the V3PGReplicationStream that acknowledges LSNs after\nevery 16k reads by...
[ { "msg_contents": "Using V12, Linux [Ubuntu 16.04LTS]\n\nI have a system which implements a message queue with the basic pattern \nthat a process selects a group of, for example 250, rows for processing \nvia SELECT .. LIMIT 250 FOR UPDATE SKIP LOCKED.\n\nWhen there are a small number of concurrent connections ...
[ { "msg_contents": "Hi,\r\n\r\nare there any nice rules of thumb about capacity planning in relation the expected\r\namount of transactions or request per second?\r\n\r\nFor example, if I have around 100 000 transactions per second on a 5 TB database.\r\nWith what amount of Memory and CPUs/Cores and which settin...
[ { "msg_contents": "I have a query which will more often run on DB and very slow and it is doing 'seqscan'. I was trying to optimize it by adding indexes in different ways but nothing helps.\nAny suggestions?\n\nQuery:\nEXPALIN ANALYZE select serial_no,receivingplant,sku,r3_eventtime from (select serial_no,recei...
[ { "msg_contents": "Update: Better title and format corrections\r\n\r\nHi %,\r\n\r\nin order to be able to readjust the effects of the stored procedure and, if necessary, to save turnaround times, different requests can be concatenated using semicolons for bundling several statements in one request. We did some ...
[ { "msg_contents": "Hi,\nWe have an application where one of the APIs calling queries(attached) is\nspiking the CPU to 100% during load testing.\nHowever, queries are making use of indexes(Bitmap Index and Bitmap Heap\nscan though). When run separately on DB queries hardly take less than 200\nms. Is CPU spiking ...
[ { "msg_contents": "Hi,\n\nGood Morning!\n\nPostgres Version : 11.6 (AWS Native Postgres/AWS Aurora tried on both flavours).\n\nWhen i'm joining two tables the primary index is not being used. While is use in clause with values then the index is being used. I have reindexed all the tables, run the auto va...
[ { "msg_contents": "Howdy folks,\n\nRecently i've run into a problem where autoanalyze is causing a query\nplan to flip over to using an index which is about 10x slower, and the\nproblem is fixed by running an alayze manually. some relevant info:\n\nUPDATE sleeping_intents SET\nraptor_after='2020-09-14T19:21:03....
[ { "msg_contents": "Hi,\nI'm running one query, and I created two types of index one is composite and the other one with single column one and query planner showing almost the same cost for both index bitmap scan, I'm not sure which is appropriate to keep in production tables.\n\nexplain analyze SELECT BAN, SUBS...
[ { "msg_contents": "Hi,\n\nI'm seeing a strange behavior when we implement policies (for RLS - Row level security) using functions.\n\ntable test consists of columns testkey,oid,category,type,description...\n\nPolicy\n\ncreate policy policy_sel on test FOR SELECT to ram1 USING ( testkey in (f_sel_policy_te...
[ { "msg_contents": "Hi,\nWe have Amazon RDS Postgres. Currently we are using .pgpass file and\nrunning psql from different EC2 instances to connect to DB. But the\npassword in this file is not encrypted. What are our options to encrypt the\npassword? Or do passwordless connection from EC2 to database? Lambda\nfu...
[ { "msg_contents": "Is there some way to tell the planner that unless it's guaranteed by a\nconstraint or some such it shouldn't guess that the selectivity of a\nfilter/anti-join is 1 row (e.g. minimum to consider is 2 rows unless it's\nguaranteed to be 1 row) or somehow otherwise make it more conservative\narou...
[ { "msg_contents": "Hi,\nWe have AWS RDS and we are trying to connect to DB remotely from EC2\ninstance.as client connection using psql. We are trying to set up IAM\nroles. We did all the necessary settings but got below error. Could you\nplease advise?\n\nPassword for user lmp_cloud_dev:\n\npsql: FATAL: PAM au...
[ { "msg_contents": "Hi Team,\n\nCan someone please guide me how to improve/reduce these wait events.\n\nPostgres Version:9.5\n\nLOG: process 3718 still waiting for ExclusiveLock on extension of relation\n266775 of database 196511 after 1000.057 ms\n\n*Detail:* Process holding the lock: 6423. Wait queue: 3718, 46...
[ { "msg_contents": "Hi there!\r\n\r\nIs there any way to use indexes with XMLTABLE-query to query XML type data?\r\nI've only managed to use text[] indexes with plain xpath queries. Is there any similar workaround for XMLTABLE type queries?\r\n\r\nCheers!\r\n\r\n * Anssi Kanninen, Helsinki, Finland\r\n\n\n\n\...
[ { "msg_contents": "Hi all,\n\nWe've been struggling with a slow query! -- and it's been exploding as rows\nhave been added to relevant tables. It seems like a fairly common workflow,\nso we think we're overlooking the potential for an index or rewriting the\nquery.\n\nI've linked a document compiling the inform...
[ { "msg_contents": "We have a large Django application running against a Postgresql database.\n\nThe test suite for the application runs in GitLab-CI using Docker\nCompose to run the unit tests inside the application container against\na Postgresql database running in another container.\n\nWhen Django runs the u...
[ { "msg_contents": "Hi,\nBelow query always shows up on top in the CPU matrix. Also despite having\nindexes it does sequential scans(probably because WHERE condition satisfies\nalmost all of the data from table). This query runs on the default landing\npage in application and needs to fetch records in less that ...
[ { "msg_contents": "Dear Postgres community,\n\nI'm looking for some help to manage queries against two large tables.\n\nContext:\nWe run a relatively large postgresql instance (5TB, 32 vCPU, 120GB RAM)\nwith a hybrid transactional/analytical workload. Data is written in batches\nevery 15 seconds or so, and the ...
[ { "msg_contents": "Hi, I have long running query which running for long time and its planner always performing sequnce scan the table2.My gole is to reduce Read IO on the disk cause, this query runns more oftenly ( using this in funtion for ETL). \n\ntable1: transfer_order_header(records 2782678)table2: transfe...