threads
listlengths
1
275
[ { "msg_contents": "Hello,\n\nWe have a query that is run almost each second and it's very important to\nsqueeze every other ms out of it. The query is:\n\nSELECT c0.\"id\" FROM \"campaign_jobs\" AS c0\nWHERE (((c0.\"status\" = $1) AND NOT (c0.\"id\" = ANY($2))))\nOR ((c0.\"status\" = $3) AND (c0.\"failed_at\" >...
[ { "msg_contents": "Hi List,\n\nI have a Server where a simple SQL is taking a long time to return the\nresults the Server settings are as follows:\n\nDebian GNU/Linux 7 (wheezy)\nCPU: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz\nMem: 16GB\nHD: SSG 120 GB\nPostgresql 9.2\n\npostgresql.conf\nshared_buffers = ...
[ { "msg_contents": "Hi experts,\nWe have configured a replication environment in Windows 10. But I am getting an error below the error messages while starting slave instance.\n\nError:\n\n2017-07-05 00:00:02 IST LOG: restored log file \"000000010000000000000022\" from archive\n2017-07-05 00:00:02 IST LOG: WAL ...
[ { "msg_contents": "Hi experts,\nWe have configured a replication environment in Windows 10. But I am getting below the error messages while starting slave instance.\n\nError:\n\n2017-07-05 00:00:02 IST LOG: restored log file \"000000010000000000000022\" from archive\n2017-07-05 00:00:02 IST LOG: WAL file is f...
[ { "msg_contents": "I'm pondering approaches to partitioning large materialized views and was\nhoping for some feedback and thoughts on it from the [perform] minds.\n\nPostgreSQL 9.6.3 on Ubuntu 16.04 in the Google Cloud.\n\nI have a foreign table with 250M or so rows and 50 or so columns, with a\nUUID as the pr...
[ { "msg_contents": "I’m running PostgreSQL 9.6.3 on Ubuntu 16.10 (kernel 4.4.0-85-generic).\nHardware is:\n\n*2x Intel Xeon E5550\n\n*72GB RAM\n\n*Hardware RAID10 (4 x 146GB SAS 10k) P410i controller with 1GB FBWC (80%\nread/20% write) for Postgresql data only:\n\nLogical Drive: 3\n\nSize: 273.4 GB\n\nFault Tole...
[ { "msg_contents": "We are on Postgres 9.5, and have been running a daily vacuum analyze on the\nentire database since 8.2 \nThe data has grown exponentially since, and we are seeing that queries are\nnow being significantly affected while the vacuum analyze runs. The query\ndatabase is a Slony slave. \nSo the q...
[ { "msg_contents": "Hello Experts,\n\n\nwe have created a postgres dump using this command: pg_dump pixabay | gzip > pixabay.gz\n\n\nAfter restarting postgres (even with a new cluster) and creating a new database, postgres is hanging while extracting the dump: gunzip -c pixabay.gz | psql pixabay\n\n\nThe log fil...
[ { "msg_contents": "Issuing exactly the same query as PostgreSQL 8.2.21 and PostgreSQL 9.3.2 will slow the response by 6.4 ms on average.\nWhat could be the cause?\nMeasurement method is as follows.\n・ PostgreSQL 8.2.21 installation\n ★Measurement\n・ Export DUMP of PostgreSQL 8.2.21\n・ PostgreSQL 8.2.21 uninstal...
[ { "msg_contents": "Dear expert,\n\nI have to create a user which have permission to create schemas and create database objects in database.\nI am using postgres 9.1.\n\nCould you please assist me?\n\nRegards,\nDinesh Chandra\n|Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida.\n---------------------...
[ { "msg_contents": "Hi team,\n\nIs this possible to create the postgis extension by CREATE EXTENSION postgis; in PostgreSQL 9.1\n\nAs I know the template_postgis database is created by default during postgis installation to support the spatial objects.\nI am getting below the error messages while creating post...
[ { "msg_contents": "Dear expert,\n\nI have to download PostgreSQL 9.5.6 version for windows 64 bit.\nam unable to find this version in PostgreSQL site.\nCould anyone tell me how I can find this software.\n\nRegards,\nDinesh Chandra\n|Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida.\n\n\n___________...
[ { "msg_contents": "Hi team,\n\nI need to connect to MS-SQL server 2008/2012 from PostgreSQL 9.5 in Windows7 environment to fetch the tables of SQL server.\n\nPlease help on this.\n\nRegards,\nDaulat\n\n\n\n\n________________________________\n\nDISCLAIMER:\n\nThis email message is for the sole use of the intende...
[ { "msg_contents": "Hi,\n\nI have 2 PG servers with same h/w and configuration and they are not in\nreplication.\n\nOn server A it takes 20 minutes to execute the script.\nOn server B it takes more than 20 hours. (Seems to be stuck with create\nindex and and create foreign key steps)\n\nAny guidance to troublesh...
[ { "msg_contents": "Dear team,\n\nCan you please let me know how we can create a view using db link,\nA base table column having serial datatype. And we want to create a view of that table on server B. But unable to create and getting the below issue.\n\nError:\n\nERROR: type \"serial\" does not exist\nLINE 17:...
[ { "msg_contents": "Hi,\n\n We recently upgraded our database from 9.1 to 9.6. We are seeing some\nunusual slow queries after the upgrade.\nSometimes the queries are faster after vacuum analyze, but not consistent.\nWe tried with different settings of random_page_cost, work_mem,\neffective_cache_size but the qu...
[ { "msg_contents": "Hello,\n\n\nWe have a fairly large static dataset that we load into Postgres. We made the tables UNLOGGED and saw a pretty significant performance improvement for the loading. This was all fantastic until the server crashed and we were surprised to see during a follow up demo that the data ha...
[ { "msg_contents": "On Wed, 9 Aug 2017 09:14:48 -0700, Jeff Janes <jeff.janes@gmail.com> wrote:\n\n >Why doesn't the Windows scheduled shutdown signal postgres to shutdown\n >cleanly and wait for it to do so? That is what is supposed to happen.\n\nWindows *does* signal shutdown (and sleep and hibernate and wake...
[ { "msg_contents": "Kaufen Pass, Führerschein und Ausweis,COUNTERFEIT DOLLARS, EURO, AND POUNDS:\n--(contact--Whatsapp: +44 7572 012958)\n\nDO you want to travel, study or work abroad, ACQUIRE; TOEIC,TIEP NEBOSH,\nIELTS, TOEFL, ESOL, GMAT, \nCERTIFICATES Without Attending Exam. # WE can also help you to get vali...
[ { "msg_contents": "Kaufen Pass, Führerschein und Ausweis,COUNTERFEIT DOLLARS, EURO, AND\nPOUNDS: --(contact--Whatsapp: +44 7572 012958)\n\nDO you want to travel, study or work abroad, ACQUIRE; TOEIC,TIEP NEBOSH,\nIELTS, TOEFL, ESOL, GMAT,\nCERTIFICATES Without Attending Exam. # WE can also help you to get valid...
[ { "msg_contents": "I have performance issues with two big tables. Those tables are located on\nan oracle remote database. I'm running the quert : insert into\nlocal_postgresql_table select * from oracle_remote_table.\n\nThe first table has 45M records and its size is 23G. The import of the data\nfrom the oracle...
[ { "msg_contents": "This particular db is on 9.3.15. Recently we had a serious performance\ndegradation related to a batch job that creates 4-5 temp tables and 5\nindexes. It is a really badly written job but what really confuses us is\nthat this job has been running for years with no issue remotely approachin...
[ { "msg_contents": "Hi all,\n\nI have come across a unexpected behavior.\nYou can see full detail on an issue on the QGEP project in Github :\nhttps://github.com/QGEP/QGEP/issues/308#issuecomment-323122514\n\nBasically, we have this view with some LEFT JOIN :\nhttp://paste.debian.net/982003/\n\nWe have indexes o...
[ { "msg_contents": "I am a Postgres Newbie and trying to learn :)We have a scenario wherein, one\nof the SQL with different input value for import_num showing different\nexecution plan.As an example, with import_num = '4520440' the execution plan\nshows Nested Loop and is taking ~12secs. With import_num = '4520...
[ { "msg_contents": "Hi, I have a query that I run in my postgresql 9.6 database and it runs for\nmore than 24 hours and doesnt finish.\n\nMy select consist from few joins :\n\nSELECT a.inst_prod_id,\n product_id,\n nap_area2,\n ...
[ { "msg_contents": "I'm trying to understand what postgresql doing in an issue that I'm having.\nOur app team wrote a function that runs with a cursor over the results of a\nquery and via the utl_file func they write some columns to a file. I dont\nunderstand why, but postgresql write the data into the file in t...
[ { "msg_contents": "Many years ago, I considered myself fairly expert when it came to\nperformance tuning and query optimization in postgresql, but I've been\nhiding out inside (insert big company that doesn't use Postgresql here) for\na long while while postgresql has continued to evolve, and much has changed\n...
[ { "msg_contents": "Hello,\n\nWould I request to help me on this query.\n\nSELECT 'Inspection Completed' as \"ALL Status\" ,COUNT(*) as \"Number of Count\" FROM ud_document WHERE status = 'Inspection Completed' union SELECT 'Pending', COUNT(*) FROM ud_document WHERE status = 'Pending' union SELECT 'Approved', CO...
[ { "msg_contents": "Dear all\n\nSomeone help me analyze the execution plans below, is the query 12 of\nTPC-H benchmark [1].\nI need to find out why the query without index runs faster (7 times)\nthan with index, although the costs are smaller (see table).\nI have other cases that happened in the same situation....
[ { "msg_contents": "Hi,\n\nI recently came across a performance difference between two machines that surprised me:\n\nPostgres Version / OS on both machines: v9.6.3 / MacOS 10.12.5\n\nMachine A: MacBook Pro Mid 2012, 2.7 GHz Intel Core i7 (Ivy Bridge), 8 MB L3 Cache, 16 GB 1600 MHz DDR3 [1]\nMachine B: MacBook P...
[ { "msg_contents": "Hi,\r\n\r\nWe have an issue with one of our partitioned tables. It has a column with timestamp without time zone type, and we had to partition it daily. To do that, we created the following constraints like this example:\r\nCHECK (to_char(impression_time, 'YYYYMMDD'::text) = '20170202'::text)...
[ { "msg_contents": "On Thu, 24 Aug 2017 16:15:19 +0300, Mariel Cherkassky \n<mariel.cherkassky@gmail.com> wrote:\n\n >I'm trying to understand what postgresql doing in an issue that I'm \nhaving.\n >Our app team wrote a function that runs with a cursor over the results \nof a\n >query and via the utl_file func t...
[ { "msg_contents": "Hi team,\n\nI'm trying to configure postgres and pgbouncer to handle many inserts from\nmany connections.\n\nHere's some details about what i want to achieve :\n\n We have more than 3000 client connections, and my server program forks\nbackend process for each client connections.\n If backe...
[ { "msg_contents": "Consider these 2 index scan produced by a query\n\n-> Index Scan using response_log_by_activity on public.response_log rl2\n (cost=0.00..51.53 rows=21 width=8) (actual time=9.017..9.056 rows=0\nloops=34098)\n Output: rl2.activity_id, rl2.feed_id\n ...
[ { "msg_contents": "Hello All, I would like to know about how OS cache works for postgres table\nand index file.\n\nLet's say I have 10 year data, and commonly used data only the last 1 year.\nThis data is quite big, so each table and index file is divided into\nseveral file in PGDATA/base\n\nLet's say 1 index n...
[ { "msg_contents": "I am using a GIST index on timestamp range, because it supports 'contains'\noperator ('@>'). Unfortunately, in large scale (billions of rows, index\nsize: almost 800 GB) vacuuming the index takes an order of magnitude longer\nthan btrees (days/weeks instead of hours).\nAccording to the code, ...
[ { "msg_contents": "Hello\n\nTrying to setup table partitioning I noticed strange behavior that prevents\nme from using it.\n\nI set up master and child tables via inheritance, with range CHECK by date\nand with\ntrigger on 'insert', as described in the documentation.\n\nI was happy with insertion speed, it was ...
[ { "msg_contents": "Dear,\nI'm trying to interpret an Explain Analyze, but I did not understand this:\n\n-> According to the Postgresql documentation at: https://www.postgresql.org/\ndocs/9.6/static/using-explain.html\n\n\" the loops value reports the total number of executions of the node, and\nthe actual time ...
[ { "msg_contents": "I want to check something regarding postgresql performance during my app is\nrunning.\n\nMy app does the next things on 20 tables in a loop :\n\n1.truncate table.\n2.drop constraints on table\n3.drop indexes on table\n4.insert into local_table select * from remote_oracle_table\n4.1.Recently I...
[ { "msg_contents": "Postgres 9.5\n\nI have a query of a partitioned table that uses the partition index in\nproduction but uses sequence scans in qa. The only major difference I can\ntell is the partitions are much smaller in qa. In production the\npartitions range in size from around 25 million rows to around...
[ { "msg_contents": "Hi\n\n*Requirement :- *\nWe need to retrieve latest health of around 1.5 million objects for a given\ntime.\n\n*Implementation :-*\nWe are storing hourly data of each object in single row. Given below is the\nschema :-\n\n*CREATE TABLE health_timeseries (*\n\n* mobid text NOT NULL,\n ...
[ { "msg_contents": "I have a user who is trying to match overlapping duplicate phone info but\nfor different customer_ids.\n\nThe intended conditional could be expressed:\nIF the intersection of the sets\n{c.main_phone, c.secondary_phone}\nand\n{c1.main_phone, c1.secondary_phone}\nis not empty\nTHEN join\nEXCEPT...
[ { "msg_contents": "I tried to use partitioning and have problem with it,\nas I get very bad perfomance. I cannot understand, what I am doing wrong.\n\n\nI set up master and child tables via inheritance, with range CHECK by date\nand with\ntrigger on 'insert', as described in the documentation.\n\nI was happy wi...
[ { "msg_contents": "Hello All\n\nI am using Postgresql extension pageinspect.\n\nCould someone tell me the meaning of these columns: magic, version, root,\nlevel, fastroot, fastlevel of the bt_metap function.\n\nThis information is not presents in the documentation.\n\nThe height of the b-tree (position of node ...
[ { "msg_contents": "I use materialized views to cache results from a foreign data wrapper to a\nhigh latency, fairly large (cloud) Hadoop instance. In order to boost\nrefresh times I split the FDW and materialized views up into partitions.\n\nNote: I can't use pg_partman or native partitioning because those do...
[ { "msg_contents": "Hi experts,\n\nFor an academic experiment I need to *restrict the total amount of memory\nthat is available for a pgSQL server* to compute a given set of queries.\n\nI know that I can do this through postgressql.conffile, where I can adjust\nsome parameters related with Resource Management.\n...
[ { "msg_contents": "On Tue, 19 Sep 2017 00:49:14 +0000, ???? <shohei.nkapl@gmail.com> wrote:\n\n> For an academic experiment I need to *restrict the total amount of memory\n> that is available for a pgSQL server* to compute a given set of queries.\n>\n> I know that I can do this through postgressql.conffile, whe...
[ { "msg_contents": "I have a complicated query which runs the exact same subplan more than once.\n\nHere is a greatly simplified (and rather pointless) query to replicate the\nissue:\n\nselect aid, sum_bid from\n (select\n aid,\n (select sum(bid) from pgbench_branches\n where bbalance...
[ { "msg_contents": "Hi\n\nI wanted to query top 20 rows by joining two tables, one table having\naround 1 lac rows and other table having 5 lac rows. Since I am using ORDER\nBY in the query so I created compound index with the columns being used in\nORDER BY. Initially index size was 939 MB.\n\nThen I ran EXPLA...
[ { "msg_contents": "Hi,\n\nWe're using PostgreSQL 9.6.3 on Linux.\n\nI have a pl/pgsql stored procedure that is not utilizing the new \nparallel sequential scan feature although manually running the same \nquery does (assuming the same settings/optimizer hints are used ofc).\nA rough outline of the stored proced...
[ { "msg_contents": "Hi\n\nWhen I try to execute the query from sql command line then that query is\ntaking only around 1 sec. But when I execute the query using JDBC(Java)\nusing preparedStatement then the same query is taking around 10 secs.\n\nCan you please let us know the reason and how to fix this issue?\n\...
[ { "msg_contents": "Hi all,\n\n\nI've an environment 9.4 + bdr:\nPostgreSQL 9.4.4 on x86_64-unknown-linux-gnu, compiled by gcc (Debian\n4.7.2-5) 4.7.2, 64-bit\n\nkernel version:\n3.2.0-4-amd64 #1 SMP Debian 3.2.65-1 x86_64 GNU/Linux\n\nThis is consolidation databases, in this machine there are around 250+ wal\ns...
[ { "msg_contents": "Hi,\nI need to use the max function in my query. I had very bad performance when\nI used the max :\n\n SELECT Ma.User_Id,\n COUNT(*) COUNT\n FROM Manuim Ma\n WHERE Ma.Bb_Open_Date =\n (SELECT ...
[ { "msg_contents": "Hello,\n\nI come from Oracle world and we are porting all our applications to\npostgresql.\n\nThe application calls 2 stored procs,\n- first one does a few selects and then an insert\n- second one does an update\n\nThe main table on which the insert and the update happens is truncated\nbefore...
[ { "msg_contents": "Hello,\n\nThis is my first question on this list.\n\nHow does max_parallel_workers_per_gather change Linux server load averages?\n\nI have 2 cores and my max_parallel_workers_per_gather = 2 and max_worker_processes = 8, but my load averages are between 8 and 5 with scheduled at 1/189 to 5/195...
[ { "msg_contents": "I've got a query that's regressed from 9.4 to 9.6. I suspect it has \nsomething to do with the work done around bad plans from single-row \nestimates. There's a SeqScan happening even though the join is to the PK \nof bd_ident. Full plans are at [1,2,3], but here's the relevant bits...\n\n9.4...
[ { "msg_contents": "Hi,\n\nduring implementation of a runtime environment and the adjoining database\nabstraction layer I noticed (like many before me [0] and as correctly mentioned\nin the documentation) the sizeable performance impact of declaring a cursor\n\"with hold\" for queries with large result sets.\n\n...
[ { "msg_contents": "I stumbled upon a severe row count underestimation that confusingly\nwent away when two inner joins in the from clause were reordered. I\nwhittled it down to a reproducible test case.\n\nSchema:\n\nCREATE TABLE small (id serial primary key, ref_id int not null, subset\nint not null);\nCREATE ...
[ { "msg_contents": "Hi,\n\nI wrote a query that joins several tables usually returning less than\n1000 rows, groups them and generates a JSON object of the result. In\n9.6 is was a question of milliseconds for that query to return the\nrequested data. Now, after upgrading to 10, the query never returns -\nat lea...
[ { "msg_contents": "Hello all,\n\nMy scenario is: postgresql 10, Processor Xeon 2.8GHz / 4-core- 8gb Ram, OS\nDebian 8.\n\nWhen creating index on table of approximately 10GB of data, the DBMS hangs\n(I think), because even after waiting 10 hours there was no return of the\ncommand. It happened by creating Hash i...
[ { "msg_contents": "Hi,\n\nI've faced a problem that a query without limit works much faster than with\none. Steps to reproduce\n\ncreate extension pg_trgm;\ncreate table t (id serial, val text, constraint t_pk primary key (id));\ninsert into t (val) select (random() * 100)::text from generate_series(1,\n1000000...
[ { "msg_contents": "Hi\n I would like your advice and recommendation about the following infrastructure problem :\nWhat is the best way to optimize synchronization between an instance PostgreSQL on Windows 7 workstation and an Oracle 11gR2 database on linux RHEL ?\nHere are more detailed explanat...
[ { "msg_contents": "Hello,\n\nWe are running workload on a EDB Postgres Advanced Server 9.6 and we see\nthat 99% of the time is spent on WAL wait events:\n\n\n\n\n\n\n\n*System Wait Information WAIT NAME COUNT WAIT TIME % WAIT\n---------------------------------------------------------------------------\nwal flus...
[ { "msg_contents": "we are using cloud server\n\n*this are memory info*\n\nfree -h\n total used free shared buffers cached\nMem: 15G 15G 197M 194M 121M 14G\n-/+ buffers/cache: 926M 14G\nSwap: 15G 32M ...
[ { "msg_contents": "Hello.\n\nI have not used row level security policies in the past but am \nconsidering using them for a project in which I would like to restrict \nthe set returned in a query based on specific fields. This is more as a \nconvenience issue (for me) rather than a security issue.\n\nWhat I was ...
[ { "msg_contents": "Hi there,\n\nThat's my first question in this mailing list! :)\n\nIs it possible (node.js connecting to PG 9.6 on RDS) to set a lower\npriority to a connection so that that particular process (BATCH INSERT)\nwould have a low impact on other running processes on PG, like live queries\nand sing...
[ { "msg_contents": "Hello Experts,\n\nWe are trying to tune our postgresql DB using perf. We are running a C\nprogram that connects to postgres DB and calls very simple StoredProcs, one\neach for SELECT, INSERT & UPDATE.\n\nThe SPs are very simple.\n*SELECT_SP*:\nCREATE OR REPLACE PROCEDURE query_dept_new(p1 IN ...
[ { "msg_contents": "Hi,\n\nI see in the v10 release notes (2017-10-05) that there's been a change to \"Improve performance of queries affected by row-level security restrictions\". I am using RLS in a Postgres 9.5 database and am seeing some very bad performance when joining tables. Upgrading this DB to v10 show...
[ { "msg_contents": "Hello,\n\nWe're encountering some problems with WAL growth in production with\nPostgreSQL 9.6.3 and 9.6.2. From what I know a WAL file can either be\nrecycled(and would be reused) or deleted.\nWe'd like to have better control over the amount of WAL that is kept around.\nThere were a few occas...
[ { "msg_contents": "Hello everyone,\n\nPlease consider the following three semantically equivalent, but differently written queries:\n\nQuery A:\n\nSELECT * FROM items a INNER JOIN (\n SELECT item, sum(amount) stock FROM stocktransactions GROUP BY item HAVING sum(amount) >= 1\n) b ON b.item = a. \"ID\"\n\nQuery...
[ { "msg_contents": "It's not a modified postgres version. It's simply for my convenience that my tooling calculats \"total\" as \"actual time\" multiplied by \"loops\". Looks like I didn't properly strip that away when copy-pasting.\n\nHere are the queries and original plans again, sorry for the confusion.\n\nQu...
[ { "msg_contents": "There is actually another separate issue here apart from that the planner obviously choosing the wrong plan as originally described in my last message, a plan it knows to be more expensive based on cost estimates.\n\nTake a look at the way the filter condition is treated differently when esti...
[ { "msg_contents": " From performance standpoint I thought set operation was better than Cursor.\nBut I found Cursor to be more effective than Set operation. Is there a way\nwe can force optimizer to use cursor plan. QUERY PLAN ...
[ { "msg_contents": "I'm working on an application which performs a lot of inserts in 2 large\ntables.\nPreviously we didn't know about lwlocks, but we're now testing in Amazon RDS\nAurora - PostgreSQL (9.6.3).\nIn previous load tests, both local servers and classic Amazon RDS, there was\nsome scalability limit w...
[ { "msg_contents": "Hello All I'm researching on Index-Advisor Tools to be applied in SQL\nqueries. At first I found this: - EnterpriseDB -\nhttps://www.enterprisedb.com/docs/en/9.5/asguide/EDB_Postgres_Advanced_Server_Guide.1.56.html\nSomeone would know of other tools for this purpose. I'd appreciate it if\nyou...
[ { "msg_contents": "Hi, this is Gunther, have been with PgSQL for decades, on an off this \nlist. Haven't been on for a long time making my way just fine. But there \nis one thing that keeps bothering me both with Oracle and PgSQL. And \nthat is the preference for Nested Loops.\n\nOver the years the archives hav...
[ { "msg_contents": "Hi all:\n\nI am new in pgsql, I am even new in using mailing list. I send this email\njust to give a suggestion on performance.\nI found that if primary key or a colume which has an unique index, is in a\nselect sql,the distinct sometimes is Unnecessary.\nActually, the SQL with DISTINCT will ...
[ { "msg_contents": "Good morning all,\r\n\r\nWe have a problem with performance after upgrading from 9.3 to 9.6 where certain queries take 9 times longer to run. On our initial attempt to upgrade, we noticed the system as a whole was taking longer to run through normal daily processes. The query with the large...
[ { "msg_contents": "Hello,\n\nI was encouraged to write up a few simplified, reproducible performance cases, that occur (similarly) in our production environment. Attached you find a generic script that sets up generic tables, used for the three different cases. While I think at all of them\nI included the times...
[ { "msg_contents": "Hi there,\n\nI'm using PostgreSQL 9.5.9 on Debian and experience slow execution of some\nbasic SET statements.\n\nI created about 1600 roles and use that setup for a multi tenancy\napplication:\n\n--snip--\n-- create one role per tenant\nCREATE ROLE tenant1;\n...\nCREATE ROLE tenant1600;\n\n-...
[ { "msg_contents": "Hi all,\n\nWe have recently upgraded our project with a huge DB from Postgres v9.1 to\nv9.4. The whole system performance has degraded alarmingly after the\nupgrade. Simple operations that were taking only a few seconds in Postgres\n9.1 are now taking minutes of time.\n\nThe problem is not sp...
[ { "msg_contents": "(or, the opposite of the more common problem)\n\nI wrote this query some time ago to handle \"deferred\" table-rewriting type\npromoting ALTERs of a inheritence children, to avoid worst-case disk usage\naltering the whole heirarchy, and also locking the entire heirarchy against\nSELECT and IN...
[ { "msg_contents": "I am interested in giving the query planner the ability to replan (or\nre-rank plans) after query execution has begun, based on the\nprogression of the query so far.\n\nExample use case:\n\n* A LIMIT 1 query is planned using an expensive scan which the\nplanner expects to return a large numb...
[ { "msg_contents": "Hello,\nI am having performance issues with one of the query.\nThe query is taking 39 min to fetch 3.5 mil records.\n\nI want to reduce that time to 15 mins.\ncould you please suggest something to its performance?\n\nserver configuration:\n CPUs = 4\nmemory = 16 GM\nshared_buffers = 3 GB\nwor...
[ { "msg_contents": "I just noticed that PG10 CREATE STATISTICS (dependencies) doesn't seem to work\nfor joins on multiple columns; is that right?\n\nWith statistics on table for 20171111 but not 20171110:\n\nts=# CREATE STATISTICS x ON site_id,sect_id FROM eric_enodeb_cell_20171111;\nts=# ANALYZE VERBOSE eric_en...
[ { "msg_contents": "Dear all\n\nI have successfully installed POWA (http://dalibo.github.io/powa),\nincluding all required extensions, see the following Printscreen of its\noperation of end email.\n\nBut when executing queries in psql- comand line, this queries are not\nmonitored by powa. I have checked that onl...
[ { "msg_contents": "Hi,\nI'm trying to understand my wals behavior on my postgresql environment.\nMy wal settings are :\n\n wal_keep_segments = 200\n max_wal_size = 3GB\n min_wal_size = 80MB\n archive_command = 'cp %p /PostgreSQL-wal/9.6/pg_xlog/wal_archives/%f'\n archive_timeout = 10\n #checkp...
[ { "msg_contents": "Greetings,\n\nWe will be migrating these lists to pglister in the next few minutes.\n\nThis final email on the old list system is intended to let you know\nthat future emails will have different headers and you will need to\nadjust your filters.\n\nThe changes which we expect to be most signi...
[ { "msg_contents": "Greetings!\n\nThis list has now been migrated to new mailing list software known as\n'PGLister'. This migration will impact all users of this mailing list\nin one way or another.\n\nIf you would like to unsubscribe from this mailing list, please click on\n'Show Original' or 'Show Headers' in...
[ { "msg_contents": "Hello PGSQL experts,\n\nI've used your great database pretty heavily for the last 4 years, and during\nthat time it's helped me to solve an amazingly wide variety of data\nchallenges. Last week, I finally ran into something weird enough I couldn't\nfigure it out by myself. I'm using a self-co...
[ { "msg_contents": "Hi!\nFirst of all, thanks for the great work! PostgreSQL is amazing, and\ncommunity is super helpful.\n\nI found an unexpected behaviour in PostgreSQL, and was advised to post\nit to the performance mailing list on IRC. \n\nUsing GROUPING SETS with more than one set disables predicate pushdow...
[ { "msg_contents": "Hello\n\nWe use a system in filmproduction called DaVinci Resolve. It uses a pgsql database when you work in a collaborative workflow and multiple people share projects. Previously it was using pgsql 8.4 but for a new major upgrade they recommend an upgrade to 9.5. Probably also to some macOS...
[ { "msg_contents": "Hi!\n\nI've seen few letters like this on mailing list and for some reason thought\nthat probably it won't happen to us, but here I am lol.\n\nIt's \"nestloop hits again\" situation.\n\nI'll try to provide plan from 9.6 later, but right now I have only plan\nfrom 10.1.\n\nQuery: https://paste...
[ { "msg_contents": "Hi,\n\nWe have table created like this:\n\nCREATE TABLE xyz AS SELECT generate_series(1,10000000,1) AS gs;\n\nNow:\n\ndb=# explain analyze select * from xyz where gs&1=1;\n\n QUERY PLAN\n---------------------------------------------------------...
[ { "msg_contents": "I configured replication with repmgr on 2 postgresql 9.6.3 nodes. Both of\nthose utilities can handle failover but I should let only one of them do\nit. So, I wanted to know who should be the one responsible for the failover\nand why ?\n\nThanks .\n\nI configured replication with repmgr on 2 ...
[ { "msg_contents": "Hi team,\n\nWe are facing the below issue while logging with postgres as given below:\n\n[centos@ip-192-90-2-208 ~]$ su - postgres\nPassword:\nLast login: Thu Nov 23 16:15:45 UTC 2017 on pts/1\n-bash-4.2$ psql\npsql: could not connect to server: No such file or directory\n Is the serve...
[ { "msg_contents": "Hi there,\n\nWe are creating a new DB which will behave most like a file system, I mean,\nthere will be no complex queries or joins running in the DB. The idea is to\ngrab the WHOLE set of messages for a particular user and then filter,\norder, combine or full text search in the function itse...
[ { "msg_contents": "Good afternoon.\n\nWe run Postgres (currently 9.2, upgrading to 9.6 shortly) in VMWare ESX\nmachines. We currently have effective_io_concurrency set to the default of\n1. I'm told that the data volume is a RAID 6 with 14 data drives and 2\nparity drives. I know that RAID10 is recommended, jus...
[ { "msg_contents": "I'm on PostgreSQL 9.6.5 and getting an awkwardly bad plan chosen for my\nquery.\n\nI want to do:\n\nselect investments.id, cim.yield\nFROM contributions\nJOIN investments ON contributions.investment_id = investments.id\nJOIN contribution_investment_metrics_view cim ON cim.investment_id =\ninv...
[ { "msg_contents": "Getting following error when running the pg_routing function. The text\nvalue consists over 1.8gig is there something I can tweak to handle the\nlarge size in function?\n\nERROR: invalid memory alloc request size 1080000000\nCONTEXT: PL/=pgSQL function pgr_xxxx(text,anyarray,boolean) line 3 a...