threads listlengths 1 275 |
|---|
[
{
"msg_contents": "Excuse me if this is a silly question. I am trying to fiddle with\nshared_buffers setting on postgresql 10.6 on ubuntu 18.04 server.\n\nI have this at bottom of my config file:\nshared_buffers = 1GB\n\nYet when I check the setting from pg_setting I see something quite different:\n\npostgres=... |
[
{
"msg_contents": "The following is output from analyzing a simple query on a table of\n13436 rows on postgresql 10, ubuntu 18.04.\n\n explain analyze select * from chart order by name;\n QUERY PLAN\n--------------------------------------------------------------... |
[
{
"msg_contents": "Hey,\nI'm using postgresql 9.6.11. I wanted to ask something about the functions\nI mentioned in the title :\nI created the next table :\npostgres=# \\d students;\n Table \"public. students \"\n Column | Type | Modifiers\n----------+---------+-----------\n id| integer |\n name| tex... |
[
{
"msg_contents": "Hi,\n\nAccording to https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server :\n\n> effective_cache_size should be set to an estimate of how much memory is available for disk caching by the operating system and within the database itself, after taking into account what's used by the OS ... |
[
{
"msg_contents": "Hi ,\n\n\nI need know how to calculate hardware sizing for database or query\n\n\nRAM\n\nCPU\n\nConfig tuning\n\n\nRequirement :\n\n\n1100 concurrent connection\n\n1600 column of table\n\n1GB of data can be select and dynamic aggregation will happen\n\n\nRegards\n\nSuganthiSekar\n\n\n\n\n\n\n... |
[
{
"msg_contents": "Hi,\nI have a table with a bytea column and its size is huge and thats why\npostgres created a toasted table for that column. The original table\ncontains about 1K-10K rows but the toasted can contain up to 20M rows. I\nassigned the next two settings for the toasted table :\n\n alter table or... |
[
{
"msg_contents": "Hello,\n\nWe use the plugin Wal2Json in order to catch every modification on database. We’ve got an issue : WAL were growing very fast, the state of pg_stat_replication still on ‘catchup’ , an error:pg_recvlogical: unexpected termination of replication stream: ERROR: out of memory DETAIL: Can... |
[
{
"msg_contents": "I am using Postgres on a large system (recording approximately 20million transactions per day). We use partitioning by date to assist with both vacuum processing time and to archive old data. At the core of the system are records in 2 different tables detailing different types of activity for... |
[
{
"msg_contents": "I have a report that takes about 20 minutes to generate. It is generated\nfrom 3 tables: according to image.\nThe report input parameter is a date range. So to generate it I select all\nrecords in Table A and run them\nin loop-for. For each record in Table A I make a query Table B join with\n... |
[
{
"msg_contents": "Hello,\n\nWe are developing a tool called sqlfuzz for automatically finding performance regressions in PostgreSQL. sqlfuzz performs mutational fuzzing to generate SQL queries that take more time to execute on the latest version of PostgreSQL compared to prior versions. We hope that these quer... |
[
{
"msg_contents": "I stumbled upon this question:\n\n https://dba.stackexchange.com/questions/229413\n\nin a nutshell: the bloom index is not used with the example from the manual. \n\nThe bloom index is only used if either Seq Scan is disabled or if the random_page_cost is set to 1 (anything about 1 trigger... |
[
{
"msg_contents": "Hey,\nI'm trying to understand the logic behind all of these so I would be happy\nif you can confirm what I understood or correct me if I'm wrong :\n-The commit command writes all the data in the wal_buffers is written into\nthe wal files.\n-Checkpoints writes the data itself (blocks that we... |
[
{
"msg_contents": "Hey,\nI have a very big toasted table in my db(9.2.5). Autovacuum doesnt gather\nstatistics on it because the analyze_scale/threshold are default and as a\nresult autoanalyze is never run and the statistics are wrong :\n\nselect * from pg_stat_all_Tables where relname='pg_toast_13488395';\n-[... |
[
{
"msg_contents": "Hi,\nI have a table with json col : R(object int, data jsonb).\nExample for content :\n object | data\n----------------+---------------------------------------\n 50 | {\"ranges\": [[1, 1]]}\n 51 | {\"ranges\": [[5, 700],[1,5],[9,10}\n ... |
[
{
"msg_contents": "*Postgres version: PostgreSQL 10.3 on x86_64-apple-darwin16.7.0*\n*Operating system and version: MacOS v10.12.6*\n*How you installed PostgreSQL: Homebrew*\n\nI have a table as defined below. The table contains 1,027,616 rows, 50,349\nof which have state='open' and closed IS NULL. Since closed... |
[
{
"msg_contents": "Hi, I have an Amazon Linux based Postgresql 11 server here on a \nt2.medium EC2 instance.\n\nIt is serving 24 worker processes that read jobs from a queue (thanks to \nSELECT ... FOR UPDATE SKIP LOCKED!) and do jobs some of which are \nreading and writing business data to the database, others... |
[
{
"msg_contents": "Hi all,\n\nI need to optimize the following query\nhttp://paste.debian.net/hidden/ef08f864/\nI use it to create a materialized view, but I think there is room for\noptimization.\nI tried to\nSET join_collapse_limit TO 15;\nwith to real difference.\n\nExplain shows that the GROUP AGGREGATE an... |
[
{
"msg_contents": "Hi all,\n\nI need to optimize the following query\nhttp://paste.debian.net/hidden/ef08f864/\nI use it to create a materialized view, but I think there is room for\noptimization.\nI tried to\nSET join_collapse_limit TO 15;\nwith to real difference.\n\nExplain shows that the GROUP AGGREGATE an... |
[
{
"msg_contents": "Hi,\n\nI am using an SQL queue for distributing work to massively parallel \nworkers. Workers come in servers with 12 parallel threads. One of those \nworker sets handles 7 transactions per second. If I add a second one, \nfor 24 parallel workers, it scales to 14 /s. Even a third, for 36 \npa... |
[
{
"msg_contents": "Hi,\n\nRecently we started seeing the Linux OOM killer kicking in and killing \nPostgreSQL processes on one of our development machines.\n\nThe PostgreSQL version we're using was compiled by us, is running on \nCentOS 7 and is\n\nPostgreSQL 10.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4... |
[
{
"msg_contents": "Hello,\n\nI have an article query which returns articles enabled for a participant.\nArticle table – Participant table – Table in between which stores the links\nbetween the Article and particitpant including characteristics such as\nenabled.\nIt is possible to search on the articles by numbe... |
[
{
"msg_contents": "I have been able to locate four google search results with the same inquiry. What’ve been able to understand is …\n\n1. If auto-vaccum is working as expected, stats collector does not nullify these values as part of a startup sequence or regular Maitenance. If a relation gets auto[vacuumed|an... |
[
{
"msg_contents": "Hi\n In the log file of my PostgreSQL cluster, I find :\n>>\nStatement: update t_shared_liste_valeurs set deletion_date=$1, deletion_login=$2, modification_date=$3, modification_login=$4, administrable=$5, libelle=$6, niveau=$7 where code=$8\n<<\n\n\nè how to get the content of ... |
[
{
"msg_contents": "Hi,\nI was testing pgstattuple and I realized that pgstattuple is working on\ntoasted table but pgstattuple_approx is raising the next error msg :\n\nERROR: \"pg_toast_18292\" is not a table or materialized view\n\nahm, is that because the pgstattuple_approx uses visibility map ? Can\nsomeon... |
[
{
"msg_contents": "Apologies for the cross-post to the general list. I realised I should\nhave (possibly?) posted here instead. Advice gratefully received.\n\nWe've been happy running a database server and replica for some years\nwith the following details and specs:\n\n postgres 9.5 (currently)\n supermi... |
[
{
"msg_contents": "Hi,\nI have the next relation in my db : A(id int, info bytea,date timestamp).\nEvery cell in the info column is very big and because of that there is a\ntoasted table with the data of the info column (pg_toast.pg_toast_123456).\n\nThe relation contains the login info for every user that logs... |
[
{
"msg_contents": "Hi,\n\nI was playing around with PG11.2 (i6700k with 16GB RAM, on Ubuntu 18.04, \ncompiled from sources) and LLVM, trying a CPU-bound query that in my \nsimple mind should benefit from JIT'ting but (almost) doesn't.\n\n1.) Test table with 195 columns of type 'numeric':\n\nCREATE TABLE test (d... |
[
{
"msg_contents": "Good afternoon.\nI need to know the commands to display the execution time, CPU usage and\nmemory usage, but through the Postgres console.Thank you.\n\nGood afternoon.I need to know the commands to display the execution time, CPU usage and memory usage, but through the Postgres console.Thank ... |
[
{
"msg_contents": "Hello,\n\nThanks for the feedback so far! Continue with the previous report, we\nsharing another four interesting cases that SQLFuzz discovered.\n(previous discussion:\nhttps://www.postgresql.org/message-id/flat/BN6PR07MB3409EE6CAAF8CCF43820AFB9EE670%40BN6PR07MB3409.namprd07.prod.outlook.com#... |
[
{
"msg_contents": "I have some query:\n\n \n\nEXPLAIN ANALYZE select id from sometable where fkey IS NOT DISTINCT FROM\n21580;\n\n \n\n \n\n QUERY PLAN\n\n----------------------------------------------------------------------------\n-----------------------... |
[
{
"msg_contents": "I am working on product managing and monitoring Network (NMS-like products).\n\nProduct manages configuration of network devices, for now each device has\nstored its configuration in simple table - this was the original design.\n\nCREATE TABLE public.configuration(\n id integer NOT NULL,\n ... |
[
{
"msg_contents": "Hi team,\n\nI want to know about the working and importance of shared_buffers in Postgresql? is it similar to the oracle database buffer cache?\n\nRegards,\nDaulat\n\n\n\n\n\n\n\n\n\n\nHi team,\n \nI want to know about the working and importance of shared_buffers in Postgresql? is it simila... |
[
{
"msg_contents": "Hi all,\n\nWhen I am executing multiple queries (for a benchmark) I obtained this \ngraph, the graph show me that one execution took more time and it was \nnot the firs(ont-shot), can you help me, please?\n\nThe figure shows the execution for the same query, bu one query took \nmore time and ... |
[
{
"msg_contents": "Hello,\n\nWe noticed that the following SQL queries are running 3 times slower on the\nlatest version of PostgreSQL. Here’s the time taken to execute them on\nolder (v9.5.16) and newer versions (v11.2) of PostgreSQL (in milliseconds):\n\n+-----------------------+--------+---------+---------+-... |
[
{
"msg_contents": "A client had an issue with a where that had a where clause something like\nthis:\n\nWHERE 123456 = ANY(integer_array_column)\n\n\nI was surprised that this didn't use the pre-existing GIN index on\ninteger_array_column, whereas recoding as\n\nWHERE ARRAY[123456] <@ integer_array_column\n\n\nd... |
[
{
"msg_contents": "Hello again. You may remember my queue issue for which some of you have \nproposed to use a partitioned table approach. I have done that, and I \nmight report more on that once I have this beast all tamed, which may be \nnow. Let's say in short, it definitely helped immensely. My test case \n... |
[
{
"msg_contents": "Hello,\n\ni’m currently working on a high Performance Database and want to make sure that whenever there are slow queries during regular operations i’ve got all Information about the query in my logs. So auto_explain come to mind, but the documentation explicitly states that it Comes at a cos... |
[
{
"msg_contents": "Hi all,\n\nFacing issue in using special characters. We are trying to insert records to a remote Postgres Server and our application not able to perform this because of errors.\nIt seems that issue is because of the special characters that has been used in one of the field of a row.\n\nRegard... |
[
{
"msg_contents": "Hi PostgreSQL Community.\n\nI tried to rewrite some plv8 stored procedures, which process in bulk JSONB\ndocuments, to PL/pgSQL.\nA SP usually has to delete/update/add multiple key with the same document\nand do it for multiple documents (~40K) in loop.\n\nWhen updating a single key PL/pgSQL ... |
[
{
"msg_contents": "We're buying some new Postgres servers with \n\n 2 x 240GB Intel SSD S4610 (RAID1 : system)\n 4 x 960GB Intel SSD S4610 (RAID10 : db)\n\nWe'll be using Postgres 11 on Debian.\n\nWe aren't sure whether to use MDRaid or a MegaRAID card\nThe MegaRAID 9271-8i with flash cache protection is ... |
[
{
"msg_contents": "Hi,\n\nI would like to overcome an issue which occurs only in case with *order by *\nclause.\n\nDetails:\nI am trying to insert into a temporary table 50 rows from a joined table\nordered by a modification time column which is inserted by the current time\nso it is ordered ascending.\n\nEach ... |
[
{
"msg_contents": "Hi all, look at this short story please:\n\nfoo=# CREATE TABLE Test(id int NOT NULL PRIMARY KEY);\nCREATE TABLE\nfoo=# INSERT INTO test SELECT row_number() OVER() FROM pg_class a CROSS JOIN pg_class b;\nINSERT 0 388129\nfoo=# EXPLAIN SELECT * FROM Test WHERE id = '8934';\n ... |
[
{
"msg_contents": "Hi,\n\nI have 250 rows to delete, but they are a target to a bunch of child \ntables with foreign key on delete cascade.\n\nEXPLAIN DELETE FROM Foo WHERE id = (SELECT fooId FROM Garbage);\n\nshows me that it uses the nested loop by Foo_pkey index to find the 250 \nitems from Garbage to be del... |
[
{
"msg_contents": "Hi all,\nI'm trying to analyze a deadlock that I have in one of our environments.\nThe deadlock message :\n\n06:15:49 EET db 14563 DETAIL: Process 14563 waits for ShareLock on\ntransaction 1017405468; blocked by process 36589.\nProcess 36589 waits for ShareLock on transaction 1017403840; bl... |
[
{
"msg_contents": "Hey,\nI was searching for a solution to scale my postgresql instance in the\ncloud. I'm aware of that that I can create many read only replicas in the\ncloud and it would improve my reading performance. I wanted to hear what\nsolution are you familiar with ? Are there any sharding solution th... |
[
{
"msg_contents": "Hi everyone,\n\n\n\nI’m using LIMIT offset with DB view. Looks like query planner is applying\nthe LIMIT for DB view at the end after processing all rows.\n\nWhen running same SQL that was used to create the DB view, LIMIT is applied\nearlier so the query is much faster.\n\n\n\nExplain plan u... |
[
{
"msg_contents": "PostgreSQL version: 11.2\nOperating system: Linux\nDescription:\n\nWe have a wuite complex CTE which collects data fast enough for us and has a ok execution plan.\n\nWhen we insert the result into a table like\n\nWith _some_data AS (\nSELECT….\n), _some_other_data AS (\nSELECT ….\n)\nINSERT... |
[
{
"msg_contents": "We noticed that the following SQL query runs 3 times slower on the latest\nversion of PostgreSQL with parallel query execution. It would be helpful if\nsomeone could shed light on why this is happening.\n\nHere’s the time taken to execute them on older (v9.5.16) and newer versions\n(v11.2) of... |
[
{
"msg_contents": "1、postgresql version\n\nqis3_dp2=> select * from version();\n version \n---------------------------------------------------------------------------------------------------------\n PostgreSQL 11.1 o... |
[
{
"msg_contents": "Hey,\nI wanted to a few questions regarding the parallel parameters :\nmax_worker_processes and max_parallel_workers_per_gather.\n\n1)Basically, max_worker_processes should be set to the number of cpus I\nhave in the machine ?\n2)If I set max_worker_processes to X and max_parallel_workers_per... |
[
{
"msg_contents": "We have a very simple table, whose DDL is as follows: \n\n CREATE TABLE public.next_id (\n id varchar(255) NOT NULL,\n next_value int8 NOT NULL,\n CONSTRAINT next_id_pk PRIMARY KEY (id)\n ); \n\nThe table only has about 125 rows, and there are no indexes apart from the... |
[
{
"msg_contents": "Hi,\n\nI have installed PostgreSQL 9.4 (open source) version on my CentOS Linux\nRed Hat 7 production server and kept default parameters which are in\npostgresql.conf file.So my basic question is, once I start using postgres\nhow much RAM the postgres processes consumes (postgres related pro... |
[
{
"msg_contents": "Hi there,\n\nI would like to monitor our postgresql instance under AWS-RDS to get some alert (or log) if any query runs over a certain amount of time, like 1.5 seconds.\nI would like to know which query took over that time (and how long), when and which parameters it used.\nThe exact paramete... |
[
{
"msg_contents": "It looks like I missed some functionality of LOG_STATEMENT such as filtering on the duration (log_min_duration_statement)\n\nSo maybe log_statement is what I am looking for, combined with some cloudwatch monitoring on the log?\n\n\n\nFrom: Mamet, Eric (GfK)\nSent: 04 April 2019 17:28\nTo: 'pg... |
[
{
"msg_contents": "Hi team,\n\nPlease confirm ! Can we migrate Oracle 12c database (12.1.0.1.0) running on Solaris to PostgreSQL 11.2 on Linux (Ubuntu). Also, please suggest the tools and pre-requisites.\n\nRegards,\nDaulat\n\n\n\n\n\n\n\n\n\n\n\nHi team,\n \nPlease confirm ! Can we migrate Oracle 12c database... |
[
{
"msg_contents": "Hi\n\nWe have some very strange query planning problem. Long story short it \ntakes 67626.278ms just to plan. Query execution takes 12ms.\n\nQuery has 7 joins and 2 subselects.\nIt looks like the issue is not deterministic, sometimes is takes few ms \nto plan the query.\n\nOne of the tables h... |
[
{
"msg_contents": "Hi all, I am sure this should be a FAQ, but I can't see a definitive \nanswer, only chatter on various lists and forums.\n\nDefault page size of PostgreSQL is 8192 bytes.\n\nDefault IO block size in Linux is 4096 bytes.\n\nI can set an XFS file system with 8192 bytes block size, but then it \... |
[
{
"msg_contents": "Hello team.\n\nWe have two node postgresql database version 9.6 with streaming replication which is running on docker environment, os Linux (Ubuntu) and we have to migrate on PostgresQL11. I need your suggestions & steps to compete the upgrade process successfully.\n\nRegards,\nDaulat\n\n\n\... |
[
{
"msg_contents": "For weeks now, I am banging my head at an \"out of memory\" situation. \nThere is only one query I am running on an 8 GB system, whatever I try, \nI get knocked out on this out of memory. It is extremely impenetrable to \nunderstand and fix this error. I guess I could add a swap file, and the... |
[
{
"msg_contents": "Dear all\nI have a postgres db have a big data so I seek for any enhancement in\nperformance and I think for iscsi disks so the question is :-\nis iscsi will increase db performance on read and write ....etc\n2- what is the best config to make use of iscsi disk - I mean\npostgresql.conf confi... |
[
{
"msg_contents": "Hello team,\n\nWe have a postgres11.2 on docker and we are migrating a kb_rep database from postgres 9.6 to postgres 11.2 via pg_dump/pg_restore\nWe have created a kb_rep schema in postgres 11.2 also but during pg_restore there is an error \"pg_restore: [archiver (db)] connection to database ... |
[
{
"msg_contents": "Hi,\r\n\r\nI am working on PostgreSQL 10.5 and I have a discrepancy between clients regarding parallelism feature.\r\n\r\nFor a simple query (say a simple SELECT COUNT(*) FROM BIG_TABLE), I can see PostgreSQL use parallelism when the query is launched from psql or PgAdmin4. However the same q... |
[
{
"msg_contents": "What would be the best filesystem to run PostgreSQL on, in Terms of Performance and data Integrity?\n\nBest regards,\n\nstephan\n\n\n\n\n\n\n\n\n\nWhat would be the best filesystem to run PostgreSQL on, in Terms of Performance and data Integrity?\n \nBest regards,\n \nstephan",
"msg_date"... |
[
{
"msg_contents": "Hello Team,\n\nWe are getting below error while migrating pg_dump from Postgresql 9.6 to Postgresql 11.2 via pg_restore in docker environment.\n\n90d4c9f363c8:~$ pg_restore -d kbcn \"/var/lib/kbcn_backup19\"\npg_restore: [archiver (db)] Error while PROCESSING TOC:\npg_restore: [archiver (db)]... |
[
{
"msg_contents": "Hi,\nSince Postgres 9.2, for prepared statements, the CBO automatically switches from Custom Plan to Generic plan on the sixth iteration (reference backend/utils/cache/plancache.c).\nI am observing that the Generic plan for Prepared statement requires 5544.701 ms to execute where as custom pl... |
[
{
"msg_contents": "Hi,\n\nThe queries in what follows can be executed on the following fiddle:\n*https://dbfiddle.uk/?rdbms=postgres_10&fiddle=64542f2d987d3ce0d85bbc40ddadf7d6\n<https://dbfiddle.uk/?rdbms=postgres_10&fiddle=64542f2d987d3ce0d85bbc40ddadf7d6>*\n- Please\nnote that the queries/functions might look... |
[
{
"msg_contents": "Hello all,\n\nI faced strange behavior of PostgreSQL during the query execution.\n\nSo, I have to databases: local and foreign. There are foreign server\ndefinitions in the local database (via postgres_fdw). The local database\nhas table 'local_table'. The foreign database has table 'foreign_... |
[
{
"msg_contents": "Hi,\n\n(Apologies if this isn't the right place to post this)\n\nA few days ago a blog post appeared on phoronix.com[1] comparing GCC 8.3.0 against 9.0.1 on Intel cascadelake processors.\nA notable difference was seen in the PostgreSQL benchmark (v10.3, pgbench, read/write, more detail below)... |
[
{
"msg_contents": "Hi all,\n\nWe would need to integrate Postgres Users Authentication with our own LDAP Server.\n\nBasically as of now we are able to login to Postgress DB with a user/password credential.\n[cid:image001.png@01D50650.D807AE30]\n\nThese user objects are the part of Postgres DB server. Now we wan... |
[
{
"msg_contents": "Hello\n\nHow can we generate in the log of executed querys (directory pg_log) the\namount of bytes transferred between the server and the client of the result\nof a query?\n\nExample:\n\na) select now (); - few bytes transferred\nb) select * from large_table; - 20,000,000 bytes transferred\n\... |
[
{
"msg_contents": "Hi,\n\nI recently stumbled across an interesting query performance question\nover at StackOverflow [1], which caught my attention and I started to\ninvestigate the issue further.\n\nOne of the things consuming most of the time was an Index Only Scan\nexecuted millions of times. And on top cam... |
[
{
"msg_contents": "Hello,\n\nI have an inefficient query execution for queries with postgres_fdw.\n\nI have an ineffective query with remote tables (postgres_fdw) that works\nfor about 1 second. The same query with local tables (with the same data)\ninstead of foreign ones has execution time less than 5 ms. So,... |
[
{
"msg_contents": "Hello,\n\n\n\nWe have several select statements whose performance is greatly improved by\ndeleting some stats from pg_statistic. With the stats present the database\nreaches 100% cpu at 13k queries per second. Without these stats, the same\nmachine can handle over 29k queries per second. We ... |
[
{
"msg_contents": "Hi,\n\nI am joining the union of three tables with another table. Postgresql uses\nthe index when only two tables are in the union. If I add one more table to\nthe union, it switches to seq scan. Apparently it also uses the index when\nonly one table is joined.\n\nThe SQL is:\nselect * from (... |
[
{
"msg_contents": "Hey,\nI'm trying to handle a corruption that one of our customers is facing.\nHis disk space was full and as a result of that he decided to run\npg_resetxlog a few times(bad idea..) .\nWhen I connected to the machine I saw that the db was down.\nWhen I started the db (service postgresql start... |
[
{
"msg_contents": "We had a mysterious (to us) slowdown today that I'm hoping someone can\nexplain just based on PG's principles of operation. It got better by itself\nso it seems like it was \"normal\" behavior -- I just don't know what\nbehavior it was exhibiting.\n\nWe have a table of user notifications cont... |
[
{
"msg_contents": "Is it efficient to use Postgres as a column store by creating one table per\ncolumn?\n\nI would query it with something like `[...] UNION SELECT value AS <table>\nFROM <table> WHERE value = <value> UNION [...]` to build a row.\n\nI'm thinking since Postgres stores tables in continuous blocks ... |
[
{
"msg_contents": "Hey,\nI'm trying to restore a cluster (9.2) from 3 binary dumps (pg_dump -Fc).\nEach dump contains only one database.\nThe sizes :\nA-10GB\nB-20GB\nC-5GB.\n\nFor unclear reason the restore of the third database is taking alot of\ntime. It isnt stuck but it continues creating db rules. This da... |
[
{
"msg_contents": "On Tue, 21 May 2019 21:28:07 -0700, Lev Kokotov <lev.kokotov@gmail.com> \nwrote:\n\n >Is it efficient to use Postgres as a column store by creating one \ntable per\n >column?\n >\n >I would query it with something like `[...] UNION SELECT value AS <table>\n >FROM <table> WHERE value = <value>... |
[
{
"msg_contents": "Hey,\nI have 2 nodes that are configured with streaming replication (PG 9.6,\nrepmgr 4.3).\nI was trying to upgrade the nodes to PG11 with the doc -\nhttps://www.postgresql.org/docs/11/pgupgrade.html\nEverything goes well until I try to start the secondary and then it fails\non the next error... |
[
{
"msg_contents": "Hi all,\n\nSome time ago, I was having trouble with some rather high load OLTP\napplication (in Java, but that doesn't really matter) that was using v1\nUUID's for primary keys and after some time, the bloat of certain\nindexes went quite high.\n\nSo I investigated the PostgreSQL code to see ... |
[
{
"msg_contents": "Hey,\nPG 9.6, I have a standalone configured. I tried to start up a secondary,\nrun standby clone (repmgr). The clone process took 3 hours and during that\ntime wals were generated(mostly because of the checkpoint_timeout). As a\nresult of that, when I start the secondary ,I see that the seco... |
[
{
"msg_contents": "Hi,\n\nBrowsing the PostgreSQL 12 release notes I noticed that JIT is now \nenabled by default. Having not followed PostgreSQL development closely - \ndoes this mean that compilation results are now getting cached and \ncompilation is no longer executed separately for each worker thread in a ... |
[
{
"msg_contents": "Hello,\n\nWe are migrating our PostgreSQL 9.6.10 database (with streaming replication\nactive) to a faster disk array.\nWe are using this opportunity to enable checksums, so we will have to do a\nfull backup-restore.\nThe database size is about 500GB, it takes about 2h:30min for a full\nbacku... |
[
{
"msg_contents": "Hello everyone, \nI started comparing performance between postgres 9.4 and 12beta1 more specifically comparing the new (materialized) CTE.\nThe statements i use are application statements that i have little control over,\nHardware is identical as both clusters are running on the same server, ... |
[
{
"msg_contents": "Hi,\n\n\nMaybe of some interest for the past, present and future community, I\nbenchmarked the impact of wal_log_hints with and without wal_compression\nenabled.\n\n\nhttps://portavita.github.io/2019-06-14-blog_PostgreSQL_wal_log_hints_benchmarked/\n\n\ncomments are welcome.\n\n\nregards,\n\n... |
[
{
"msg_contents": "Hi\n\nWe recently upgraded one of the instances from 9.6.3 to 9.6.12 and seeing\nfollowing issue that occurs for few cases.\n\nI have tried running analyze on the table with different values from 1000 -\n5000 but it doesn't seem to help the issue. There is some skew in a_id\nbut the combi... |
[
{
"msg_contents": "Dear Postgres performance experts,\n\nI noticed that when I added a BRIN index to a very large table, attempting to make a particular query faster, it became much slower instead. While trying to understand this, I noticed that the actual number of rows in the EXPLAIN ANALYZE output was much h... |
[
{
"msg_contents": "Hello everyone,\n\nI am attempting to set up a row level security policy based on geo-location\n(and the PostGIS extension). I am struggling to have it make use of column\nindexes.\n\nThe following example defines a table with geography points and aims to\nrestrict access to it based on dista... |
[
{
"msg_contents": "I'm not sure where else to look, so I'm asking here for tips.\n\nI have a table in a remote (Heroku-managed) postgresql database (PG 10.7).\n\nOn the other end, (PG 11.3) I have a foreign table configured with a\nmaterialized view in front of it.\n\nUp until Thursday evening, it was taking ab... |
[
{
"msg_contents": "Hi,\nI wrote a script that monitored the size of a specific table of mine(dead\ntuples_mb vs live tuples_mb). The script run a query on pg_stattuple every\n15 minutes : select * from pg_stattuple('table_name'). I know that every\nnight there is a huge delete query that deletes most of the tab... |
[
{
"msg_contents": "I came across a poorly performing report with a subplan like this:\n\nts=# explain SELECT * FROM eric_enodeb_cell_metrics WHERE start_time BETWEEN '2019-01-01 04:00' AND '2019-01-01 05:00' OR start_time BETWEEN '2019-01-02 04:00' AND '2019-01-02 05:00';\n Append (cost=36.04..39668.56 rows=12... |
[
{
"msg_contents": "I'm hoping people can help me figure out where to look to solve an odd\nPostgreSQL performance problem.\n\nA bit of background: We have a client with a database of approximately 450\nGB, that has a couple of tables storing large amounts of text, including\nfull HTML pages from the Internet. L... |
[
{
"msg_contents": "Hello team,\n\nWe have migrated our database from Oracle 12c to Postgres 11. I need your suggestions , we have sessions limit in Oracle = 3024 . Do we need to set the same connection limit in Postgres as well. How we can decide the max_connections limit for postgres. Are there any difference... |
[
{
"msg_contents": "Hi,\n\nI've been wondering whether it is possible somehow to have the standard\ncolumn statistics to respect a certain operator class?\n\nThe reason why I am asking for this is that I have a UUID column with a\nunique index at it using a custom operator class which implies a\ndifferent sort o... |
[
{
"msg_contents": "Hi!\n\nI am attempting to replicate YouTube's subscription feed. Each user has a list \nof channel IDs (as text[]) that they are subscribed to. The `users` table \nlooks like:\n\n```\n=# \\d users\n Table \"public.users\"\n Column | Type ... |
[
{
"msg_contents": "I am querying a remote server through a foreign table definition.\n\nCREATE TABLE example (id integer, product product_enum, status status_enum)\n\nWhere\n\nCREATE TYPE status AS ENUM ('active', 'testing', 'inactive', ...);\nCREATE TYPE product AS ENUM ('a', 'b', 'c', ...);\n\nI re-created en... |
[
{
"msg_contents": "My table is having data like below with 100M records (contains all dummy\ndata). I am having btree index on column (\"field\").\n*While searching for any text from that column takes longer (more than 1\nminute).*\n\nuser Id field\nd848f466-5e12-46e7-acf4-e12aff592241 Northern Arkansas College... |
[
{
"msg_contents": "Hi. I've got an app that queries pg_catalog to find any table columns that\nhave comments. After setting up PgBadger, it was #2 on my list of time\nconsuming queries, with min/max/avg duration of 199/2351/385 ms (across\n~12,000 executions logged).\n\nI'm wondering if there are any ways to ... |
[
{
"msg_contents": "Hello,\n\n\nI recently spent a bit of time benchmarking effective_io_concurrency on Postgres.\n\nI would like to share my findings with you:\n\nhttps://portavita.github.io/2019-07-19-PostgreSQL_effective_io_concurrency_benchmarked/\n\nComments are welcome.\n\nregards,\n\nfabio pardi\n\n\n",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.