threads
listlengths
1
275
[ { "msg_contents": "Substantial different index use between 9.5 and 9.6\nPostgres versions 9.5 and 9.6 running on Windows Server 2012. Installed \nusing EnterpriseDB. Both instances are on the same server, \npostgresql.conf for both are the same except max_locks_per_transaction = \n200 in 9.6 (caused insertion e...
[ { "msg_contents": "Hello, List.\n\nWe’ve got a strange planner behavior on a query to one of our bigger tables after we upgraded to postgres 9.6.1 recently.\nThe table (schema here http://pastebin.com/nRAny4bw <http://pastebin.com/nRAny4bw>) has 28m+ rows and is used to store chat messages for different chat ro...
[ { "msg_contents": "Hi all,\nI have a query that I *think* should use a multicolumn index, but\nsometimes isn't, resulting in slow queries.\n\nWe have a DB that records GPS coordinates for vehicles:\n\n Table \"public.updates\"\n Column | Type | ...
[ { "msg_contents": "Hi All;\n\n\nWe have a client running on VMware, they have heavy write traffic and we \nwant to isolate the IO for the tx logs (pg_xlog). However it seems the \nbest plan based on feedback from the client is either\n\n(a) simply leave the pg_xlog dir in the VMDK\n\nor\n\n(b) relocate pg_xlog ...
[ { "msg_contents": "Hello mailing list!\n\nWe have a JSONB column in a table that has a key (string) => value (int)\nstructure. We want to be able to create a btree index that accepts an\narbitrary key to allowing sorting by key.\n\nTable Example:\n\n> +----+------------------------------------------+\n> | ID | ...
[ { "msg_contents": "Dear expert,\n\nIn postgreSQL-9.1,the size of pgsql_tmp inside tablespace (Temp tablespace) is increased by 544G in one day.\nHowever, the DBsize is as usual but tablespace size is getting increased.\nCould you please suggest why it is happening ?\n\n\nRegards,\nDinesh Chandra\n|Database admi...
[ { "msg_contents": "Hey All,\n\nI am not a PG expert. I like PG but i am puzzled as to what I shoud do .\n\nI have a 4 core 5 GIG vm running a 500M db (it should fit to ram easly) and\nI face slow queries.\n\nhere is a view that I have :\n SELECT o.id,\n cc.name AS \"from\",\n o.phone,\n c.name AS \"to...
[ { "msg_contents": "Dear Expert,\n\nCould you please suggest me for the below query?\n\nI want to vacuum the entire database with the exception of several\ntables.\n\nBecause there are some tables which are very big in size, so I just want to exclude them.\n\nThanks in advance.\n\nRegards,\nDinesh Chandra\n|Data...
[ { "msg_contents": "Dear Expert,\nI am getting the below error in my database.\nERROR: invalid page header in block 25561983 of relation pg_tblspc/55703433/PG_9.1_201105231/55703436/113490260\n\nCan you please suggest me how to resolve it? I think its related to block corruption.\nHow can I find particular block...
[ { "msg_contents": "Dear colleagues,\n\ncan anyone please explain, why we do not create indexes on master?\nIn my case master / child design blindly follows partitioning guide https://www.postgresql.org/docs/9.6/static/ddl-partitioning.html <https://www.postgresql.org/docs/9.6/static/ddl-partitioning.html>.\nMy ...
[ { "msg_contents": "Hi there, fellow experts!\n\nI need an advice with query that became slower after 9.3 to 9.6 migration.\n\nFirst of all, I'm from the dev team.\n\nBefore migration, we (programmers) made some modifications on query bring\nit's average time from 8s to 2-3s.\n\nAs this query is the most execute...
[ { "msg_contents": "Hi Alex,\n\nsorry, I missed your response somehow, got it only with today’s digest.\n\nThanks for the hint. I have basic idea how to investigate query perf issues.\nI thought maybe I miss some understanding of the grounds.\nIt’ll take some time to get enough test data and I’ll try to take a l...
[ { "msg_contents": "Hello there!\n\nI have an performance issue with functions and args type.\n\nTable and data:\ncreate table t1 (id serial, str char(32));\ninsert into t1 (str) select md5(s::text) from generate_series(1, 1000000)\nas s;\n\nAnd simple functions:\ncreate function f1(line text) returns void as $$...
[ { "msg_contents": "Hi, \n\ntoday i head a issue with pgsql 9.3, a lot of clients complained that they are unable to connect to the server. \nwhen i have checked the logs i sow a lot of \nFATAL: canceling authentication due to timeout \n\nserver configuration is: \nUbuntu 16.04 \n128G RAM \nRAID 10 4X 2T HDD \nI...
[ { "msg_contents": "Hello,\n\nI'm investigating options for an environment which has about a dozen\nservers and several dozen databases on each, and they occasionally need to\nrun huge reports which slow down other services. This is of course \"legacy\ncode\". After some discussion, the idea is to offload these ...
[ { "msg_contents": "I'm using postgresql 9.5.4 on amazon RDS with ~1300 persistent connections\nfrom rails 4.2 with \"prepared_statements: false\". Over the course of hours\nand days, the \"Freeable Memory\" RDS stat continues to go down indefinitely\nbut jumps back up to a relatively small working set every tim...
[ { "msg_contents": "Hello,\nWe are migrating database from one server to another.\nAs such we are not making any changes in the database structure.\nStil getting below error while restore using pgdump.\n\n\npg_restore: [archiver (db)] COPY failed for table \"tcb_test\": ERROR:\n \"5.40593839802118076e-315\" is o...
[ { "msg_contents": "I originally was thinking I had a performance problem related to\nrow-level security but in reducing it to a simple test case I realized\nit applies more generally. The query planner does not seem to\nrecognize that it can eliminate redundant calls to a STABLE function.\nIt will optimize the...
[ { "msg_contents": "Hi,\n\nIs there something in the roadmap to optimize the inner join?\n\nI've this situation above. Table b has 400 rows with null in the column b.\n\nexplain analyze select * from a inner join b on (b.b = a.a);\n\n\"Merge Join (cost=0.55..65.30 rows=599 width=16) (actual time=0.030..1.173 ro...
[ { "msg_contents": "Hi,\n\nI'm new in this mailing list, sorry if my post is not well formed.\n\nFirst of all, I would thank all the team and the contributors\naround PostgreSQL for their work.\n\nMy question…\n\nThe explain analyze of the following code is https://explain.depesz.com/s/VhOv\n✂⋯✂⋯✂⋯✂⋯✂⋯✂⋯✂⋯✂⋯✂⋯✂⋯...
[ { "msg_contents": "Hi Expert,\n\nI have a database having size around 1350 GB, created in PostgreSQL-9.1 in Linux platform.\nI am using pg_dump to take backup which takes around 12 hours to complete.\nCould you please suggest me how I can make my backup fast so that it complete in less hours?\n\nThanks in advan...
[ { "msg_contents": "Hi All,\n\nI have two servers. On the first one I have postgresql version 9.6 . On the\nsecond one I have version 9.3 . I ran pgbench on both servers.\n\nFirst server results:\nscaling factor: 10\nquery mode: simple\nnumber of clients: 1\nnumber of threads: 1\nduration: 10 s\nnumber of transa...
[ { "msg_contents": "Hi, \n\ni'm seeing a lot of connection time out in postgresql log \n\n2017-01-25 11:09:47 EET [6897-1] XXX@YYY FATAL: canceling authentication due to timeout \n2017-01-25 11:10:15 EET [6901-1] XXX@YYY FATAL: canceling authentication due to timeout \n2017-01-25 11:10:17 EET [6902-1] xxx@YYY FA...
[ { "msg_contents": "I was just troubleshooting a strange performance issue with pg_trgm\n(greatest extension over) that ran great in testing but poor in\nproduction following a 9.6 in place upgrade from 9.2. By poor I mean\n7x slower. Problem was resolved by ALTER EXTENSION UPDATE followed by\na REINDEX on the ...
[ { "msg_contents": "Dear all,\r\n\r\nI got the following problem for which I could not find a solution by searching the archives:\r\n\r\nI have Tables Ta, Tb, Tc with primary keys as bigserials.\r\nTa references Tb references Tc.\r\nNot all but most rows in Ta reference exactly one row in Tb.\r\n\r\nAbove the Ta...
[ { "msg_contents": "Postgres Gurus,\n\nThank you all so much for your continued hard work with Postgres—the DB is amazing and I continue to look forward to each new release! One feature I’ve grown to love in the last year or two is the ltree column type. Unfortunately, I am starting to run into significant DB ...
[ { "msg_contents": "**Short version of my question:**\n\nIf I hold a cursor reference to an astronomically huge result set in my\nclient code, would it be ridiculous (i.e. completely defeats the point of\ncursors) to issue \"FETCH ALL FROM cursorname\" as my next command? Or would\nthis slowly stream the data ba...
[ { "msg_contents": "I am seeing this strange behavior, I don't know if this is by design by\nPostgres.\n\nI have an index on a column which is defined as \"character varying(255)\".\nWhen the value I am searching for is of a certain length, the optimizer\nuses the index but when the value is long, the optimizer ...
[ { "msg_contents": "Hi All,\n\nI'm having some trouble improving the timing of a set of queries to a\npartitioned table.\nBasically, I'm trying to find an index that would be used instead of a\nbitmap heap scan by when the data is taken from disk. Or in any case,\nsomething that would make the process of retriev...
[ { "msg_contents": "Hi there,\nI configured an IBM X3650 M4 for development and testing purposes. It’s composed by:\n - 2 x Intel Xeon E5-2690 @ 2.90Ghz (2 x 8 physical Cores + HT)\n - 96GB RAM DDR3 1333MHz (12 x 8GB)\n - 2 x 146GB SAS HDDs @ 15k rpm configured in RAID1 (mdadm)\n - 6 x 525GB SATA SSDs (over-prov...
[ { "msg_contents": "Hi guys\n\nI'm a bit stuck on a query that performs fantastically up to a certain\nlimit value, after which the planner goes off in a completely different\ndirection and performance gets dramatically worse. Am using Postgresql 9.3\n\nYou can see all the relevant schemas at http://pastebin.com...
[ { "msg_contents": "Dear expert,\n\nI want to log only that queries which are taking around 5 minutes to execute.\nI have a database size >1.5T and using PostgreSQL 9.1 with Linux OS.\n\n\nThanks in advance.\n\nRegards,\nDinesh Chandra\n|Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida.\n-----------...
[ { "msg_contents": "The parameter \"log_directory\" on postgresql.conf, you can define where it'll be created. \nThe name of the log file is defined on \"log_filename\". \n\n----- Mensagem original -----\n\nDe: \"Dinesh Chandra 12108\" <Dinesh.Chandra@cyient.com> \nPara: \"ProPAAS DBA\" <dba@propaas.com>, pgsql-...
[ { "msg_contents": "Hello everyone,\n\nI am currently evaluating the possibility of using PostgreSQL for \nstoring and querying jsonb+tsvector queries. Let's consider this setup:\n\ncreate table docs (id serial primary key, meta jsonb);\n# generate 10M entries, cf. appendix\ncreate index docs_meta_idx ON docs us...
[ { "msg_contents": "Hi,\n\nWe are taking daily full backup of PostgreSQL database using PG_DUMP which is automatic scheduled through Cronjobs.\n\nHow can I check my yesterday backup is successfully or not?\nIs there any query or view by which I can check it?\n\nRegards,\nDinesh Chandra\n|Database administrator (...
[ { "msg_contents": "Hello,\n\nI have encountered a strange problem when doing an anti-join with a very \nsmall table via a varchar or text field as opposed to an integer field. \nPostgres version is 9.5.3\n\nI did some experiments to extract the problem in a simple form. FIrst \ngenerate two tables with a series...
[ { "msg_contents": "Dear Experts,\n\nI need your suggestions to resolve the performance issue reported on our PostgreSQL9.1 production database having 1.5 TB Size. I have observed that, some select queries with order by clause are taking lot of time in execution and forcing applications to give slow response.\n\...
[ { "msg_contents": "We are having some performance issues after we upgraded to newest\nversion of PostgreSQL, before it everything was fast and smooth.\n\nUpgrade was done by pg_upgrade from 9.4 directly do 9.6.1. Now we\nupgraded to 9.6.2 with no improvement.\n\nSome information about our setup: Freebsd, Solari...
[ { "msg_contents": "I have the following query\n\nwhich takes 90 seconds to finish. *JOB_MEMORY* has 45 million rows,\n*JOB_MEMORY_STORAGE* has 50 000 rows.\n\nQuery plan:\n\nAs you can see, it is indeed using an index *JOB_MEMORY_id_desc* in a\nbackward direction, but it is very slow.\n\nWhen I change ordering ...
[ { "msg_contents": "Hi there,\n\nI’ve been asked to help with a project dealing with slow queries. I’m brand new to the project, so I have very little context. I’ve gathered as much information as I can.\n\nI’ve put the schema, query, and explain info in gists to maintain their formatting.\n\nWe are stumped with...
[ { "msg_contents": "Dear expert,\n\nI have to add one column \"ID\" in postgres table which will generate Auto Increment<http://www.davidghedini.com/pg/entry/postgresql_auto_increment>ed number .\n\nExample:\nSuppose I have five records and if I insert 1 new record It should auto generate 6.\nIf I truncate the ...
[ { "msg_contents": "Hi pgsql-performance!\n\nSo I have a Postgresql database -- version \"PostgreSQL 9.4.8 on\nx86_64-unknown-linux-gnu, compiled by gcc (Debian 4.7.2-5) 4.7.2, 64-bit\",\nspecifically.\n\nIn it, I have essentially two categories of tables:\n- small tables that are updated frequently, and tend to...
[ { "msg_contents": "Hi there,\nI’m running PostgreSQL 9.6.2 on Ubuntu 16.04.2 TLS (kernel 4.4.0-66-generic). Hardware is:\n - 2 x Intel Xeon E5-2690\n - 96GB RAM\n - Software mdadm RAID10 (6 x SSDs)\n\nPostgres is used in a sort of DWH application, so all the resources are assigned to it and the aim is to maximi...
[ { "msg_contents": "It seems when self (inner/equi) joining there's two bad alternatives: either\nspecify a where clause for each self-joined table and incur poor estimate and\nplan, due to incorrect perceived independence of clauses, even though joined\ncolumn ought to be known equal; or, specify where clause o...
[ { "msg_contents": "Good day\n\n \n\nAt my company we're busy converting a product from using SQL Server to\nPostgres. One part of the old design involves filtering data for the rights\na user has.\n\n \n\nThe SQL Server table looked like this:\n\nCREATE TABLE [dbo].[usrUserRights] ( \n [UserId] [dbo].[dm...
[ { "msg_contents": "While updating our database which includes a lot of deletions where a lot\nof foreign key references are involved we found that in the case of two\ntables the indexes are ignored and it slow down the process a lot.\n\nHere are stats about those two tables:\n\nrelname seq_scan seq_tup_read idx...
[ { "msg_contents": "Hi,\n\nI have to send content of a log file in my mail Id.\nCould you please assist me to do this?\nI am using Postgres-9.1 with Linux OS.\n\nRegards,\nDinesh Chandra\n|Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida.\n------------------------------------------------------------...
[ { "msg_contents": "Hi,\nI have a table with 22k rows - not large at all. I have a couple of indices\non it as well as a gin index on a tsvector column. If I reindex the table\nand run a query it takes ~20ms to execute using the tsvector-gin index. By\nthe end of the day, the planner decides not to use the gin ...
[ { "msg_contents": "Hi expert,\n\nMay I know how to select a range of IP address.\n\nExample: I have number of different-2 IP's present in a table.\n\nI have to select only that IP address which does not start from prefix \"172.23.110\".\nThanks in advance\n\nRegards,\nDinesh Chandra\n|Database administrator (Or...
[ { "msg_contents": "Hello\n\nI want to understand execution time of a query in PostgreSQL then I want to\nrelate it to the problem i am getting. According to my observation ( I\ncan't explain why this happen ) whenever we query a table first time its\nexecution will be high (sometimes very high) as compare to qu...
[ { "msg_contents": "Hello,\n\nI need to know the criteria behind for settings the work_mem in PostgreSQL, please give the example also if possible.\n\nRegards,\nDaulat\n\n\n\n\n\n\n\n\n\nHello, \n \nI need to know the criteria behind for settings the work_mem in PostgreSQL, please give the example also if possib...
[ { "msg_contents": "Summary: I am facing a contention problem with ODBC on the client side. strace and perf top show we are serializing over what appears to be accesses to the ODBC statement handle. Contention goes down if I use multiple processes instead of multiple threads within a process. Also, all the threa...
[ { "msg_contents": "I have found some examples of people tweaking this\nparameter track_activity_query_size to various setting such as 4000, 10000,\n15000, but little discussion as to performance impact on memory usage.\nWhat I don't have a good sense of is how significant this would be for a\nhigh traffic syste...
[ { "msg_contents": "Hello,\n\nafter updating my server to Postgres 9.5 (or 9.6) I tried to import PG 9.4 dumps and/or to restore 9.5/9.6 dumps:\n\npg_dump testdb > db.sql\npsql -d testdb -f db.sql\n\nRestoring these dumps in PG 9.4 takes less than 20 minutes, restoring them in PG 9.5/9.5 takes several hours on t...
[ { "msg_contents": "I mailed last month [0] but didn't see any reponse .. (if I'm being naive,\ndaft, or missing something simple, please just say so).\n\n[0] https://www.postgresql.org/message-id/20170326193344.GS31628%40telsasoft.com\n\nIt seems when self (inner/equi) joining there's two bad alternatives: eith...
[ { "msg_contents": "Hello,\n\n\nrestoring a dump with Ubuntu 16.04 using postgres.conf default configuration (autovacuum on) takes several hours, with Ubuntu 14.04 only 20 minutes. Turning autovacuum off in Ubuntu 16.04 makes restoring much faster, with 14.04 autovacuum off has nearly no effect. The PG version d...
[ { "msg_contents": "Hi Experts,\n\nHow can we create a materialized view in PostgreSQL which can be access by all the user account in all Database?\n\nRegards,\nDinesh Chandra\n\n\n\n\n\n\n\n\n\nHi Experts,\n \nHow can we create a materialized view in PostgreSQL which can be access by all the user account in all...
[ { "msg_contents": "I come from an Oracle background and am porting an application to postgres. App has a table that will contain 100 million rows and has to be loaded by a process that reads messages off a SQS queue and makes web service calls to insert records one row at a time in a postgres RDS instance. I kn...
[ { "msg_contents": "Hi\n\n\nRunning 9.5.2\n\nI have the following update and run into a bit of a trouble . I realize the tables involved have quite some data but here goes\n\n\nUPDATE\n tf_transaction_item_person TRANS\nSET\n general_ledger_code = PURCH.general_ledger_code,\n general_ledger_code_desc = ...
[ { "msg_contents": "Hi!, i've currently a big problem using ORBDER BY / LIMIT in a query with\nno result set.\nIf i add the order by/limit clause it runs really really slow.\n\n\n\nQUERY 1 FAST:\n--------------------------------\n\nSELECT fase.id\nFROM tipofase\nJOIN fase\nON (fase.tip...
[ { "msg_contents": "Hi,\n\nI've lately seen more and more installations where the generation of\nwrite-ahead-log (WAL) is one of the primary bottlenecks. I'm curious\nwhether that's primarily a \"sampling error\" of mine, or whether that's\nindeed more common.\n\nThe primary reason I'm curious is that I'm ponde...
[ { "msg_contents": "After about 40 inutes the slow query finally finished and the result of the\nEXPLAIN plan can be found here:\n\nhttps://explain.depesz.com/s/BX22\n\nThanks,\nAlessandro Ferrucci\n\nOn Tue, Apr 25, 2017 at 11:10 PM, Alessandro Ferrucci <\nalessandroferrucci@gmail.com> wrote:\n\n> Hello - I am ...
[ { "msg_contents": "Hello everyone.\n\nI have table \"events\" with 10 millions records. if have this fields:\n\nColumn | Type | Modifiers | Storage | Stats target | Description \n---------------------+-----------------------------+-----------------------------------------------------+----------+--------------+-...
[ { "msg_contents": "Hi,\nI have a performance problem with my query. As a simplified example, I have a table called Book, which has three columns: id, released (timestamp) and author_id. I have a need to search for the latest books released by multiple authors, at a specific point in the history. This could be l...
[ { "msg_contents": "Hello Guys,\n\nWe are facing problem related to performance of Postgres. Indexes are not being utilized and Postgres is giving priority to seq scan. I read many articles of Postgres performance and found that we need to set the randome_page_cost value same as seq_page_cost because we are usin...
[ { "msg_contents": "Hello,\n\nI use two dedicated bare metal servers (Online and Kimsufi). The first one takes much longer to execute a procedure that recreates a database by truncating its tables, then copying the data from a set of text files; it is however much faster for more typical SELECT and INSERT querie...
[ { "msg_contents": "Hello,\n\n\non our old server (120 GB RAM) PostgreSQL 9.4.5 was using less than 10 GB of ram. On our new server (same system) Postgres 9.4.11 is using up to 40 GB Ram. Especially each idle process is consuming 2.4 GB: postgres 30764 8.3 2.4 3358400 3215920 ? Ss 21:58 0:24 postgres: testuse...
[ { "msg_contents": "I have a weird case of query execution performance here. The query has a date\nvalues in the WHERE clause, and the speed of executing varies by values of\nthe date. Actualy,\n - for the dates from the range of the last 30 days execution takes aruond\n3 min\n - for the dates before the range...
[ { "msg_contents": "I need to do a join between two foreign tables using columns of different\ntypes.\n\nselect data from remote2 join remote1 on ((remote2.id)::bigint=remote1.id)\nwhere cutoff > 0.9999;\n\nFor demonstration purposes, I use a loop-back foreign server, set up in the\nattached sql file.\n\nIf I do...
[ { "msg_contents": "Hey all, first off, i'm running: PostgreSQL 9.6.3 on x86_64-pc-linux-gnu,\ncompiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit\n\nAt the high level, I am having an issue with a query not using an index,\nand in a very hard to reproduce way.\n\nI have a function which builds two temp tables, fills...
[ { "msg_contents": "I'm spoiled by using pg_stat_statements to find the hotspot queries which\ncould use some attention.\n\nBut with some recent work, all of the hotspots are of the form \"FETCH 1000\nFROM c3\". The vast majority of the queries return less than 1000 rows, so\nonly one fetch is issued per execut...
[ { "msg_contents": "Hello,\n\nThe index on my composite type seems to be working most of the time, but\nthere's a query I need to run where it's not working even with\nenable_seqscan=false. The composite type uses int and numrange subcolumns,\nand is designed to operate primarily as a range type.\n\nIt will pro...
[ { "msg_contents": "Good day\n\nI’ve got a performance and best practice question. We’re busy writing our \npersistence framework for our application port to PostgreSQL.\nWe have business entities that are split over multiple tables and in an \neffort to not have multiple trips to the database we’re trying to ba...
[ { "msg_contents": "\nI need to be able to quickly find rows where a column is not null (only a \nsmall percent of the rows will have that column not null).\n\nShould I do:\n\nCREATE INDEX ON table ((col IS NOT NULL)) WHERE col IS NOT NULL\n\nor:\n\nCREATE INDEX ON table (col) WHERE col IS NOT NULL\n\nI'm thinki...
[ { "msg_contents": "I need to make a view which decorates rows from a parent table with\naggregated values from a child table. I can think of two ways to write it,\none which aggregates the child table to make a new query table and joins\nthe parent to that, as shown in \"view1\" below. Or does subselect in th...
[ { "msg_contents": "Hi,\n\nI have a letancy-sensitive legacy application, where the time consumed\nby query planning was always causing some headaches.\nCurrently it is running on postgresql-8.4 - will postgresql-10 support\ngenerating plans using multiple CPU cores to reduce the time required\nto generate a sin...
[ { "msg_contents": "Dear Expert,\n\nMay you please provide the solution for below query.\n\nI have to create a log for all the update query executed in database along with its username who has executed that query.\nHowever, I am able to log all the update queries in my pg_log file but it's not showing particular...
[ { "msg_contents": "Hello!\n\nI've heavy loaded PostgreSQL server, which I want to upgrade, so it will\nhandle more traffic. Can I estimate what is better: more cores or\nhigher frequency ? I expect that pg_stat should give some tips, but\ndon't know where to start...\n\nbest regards\nJarek\n\n\n\n-- \nSent via ...
[ { "msg_contents": "Dear Expert,\n\nWhile executing the blow query, its taking too long time to fetch output.\nCould you please help to fine tune the same?\n\nSELECT\ndate_trunc('day', insert_time),\nworkflow.project.project_name,\nworkflow.tool_performance.project_id,\nworkflow.tool_performance.user_id,\nworkfl...
[ { "msg_contents": "Hi team,\n\nWe are getting very slow response of this query.\n\nSELECT date_trunc('day', insert_time),workflow.project.project_name,\nworkflow.tool_performance.project_id,workflow.tool_performance.user_id,workflow.tool_performance.step_id,count(*),\nround(sum(execution_time)/1000) as Sum_time...
[ { "msg_contents": "I created such table (similar to example from\nhttp://use-the-index-luke.com/sql/example-schema/postgresql/performance-testing-scalability\n)\n\nCREATE TABLE scale_data (\n section NUMERIC NOT NULL,\n id1 NUMERIC NOT NULL, -- unique values simulating ID or Timestamp\n id2 NUMERI...
[ { "msg_contents": "Hi,\n\nWhat is the best monitoring tool for Postgres database? Something like Oracle Enterprise Manager.\n\nSpecifically I am interested in tools to help:\n\nAlert DBAs to problems with both configuration and performance issues\nDeadlocks, Long running queries etc.,\nMonitoring of overall sys...
[ { "msg_contents": "Personally I push those off to my network monitor. Nagios in my case.\r\n\r\nI find a single integrated alert and escalation framework is better than individual tools, but that's just me.\r\n\r\nIf you're using Nagios, let me know, and I can pop you several stub scripts to help.\r\n\r\nOn May...
[ { "msg_contents": "Hi,\n\n This is a general question around this performance area rather than a specific performance problem.....so I apologise now for a lack of a specific detail.\n\n We have an application that does many small actions on the DB - and it's a small DB (a 50/100 Mb...
[ { "msg_contents": "Hi team:\r\n The following SQL is very slow in 9.6.1 for the plan has a “sort” node.\r\n\r\nSQL text:\r\nexplain(analyze, buffers, verbose, timing)WITH m as\r\n (SELECT date,accumulation,prod_type,IF,plan_code, mapping_code, channel, VARIABLE, up_load_data\r\n FROM sdm_...
[ { "msg_contents": "Dear Expert,\n\nIs there any way to rollback table data in PostgreSQL?\n\nRegards,\nDinesh Chandra\n|Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida.\n------------------------------------------------------------------\nMobile: +91-9953975849 | Ext 1078 |dinesh.chandra@cyient.com...
[ { "msg_contents": "Hi all,\n\nI am trying to improve the runtime of a big data warehouse application. One\nsignificant bottleneck found was insert performance, so I am investigating\nways of getting Postgresql to insert data faster. I ran several tests on a\nfast machine to find out what performs best, and comp...
[ { "msg_contents": "Hi,\nWe have a big problem with managing the number of WAL products, during database activity, so I would try to write to you.\nWith pg_rman utility, we can't save thousands of WAL files every few hours, to be used for a possible recovery.\nWe are using a production environment 9.2 PostgreSQL...
[ { "msg_contents": "Hi,\n\n\nI have two tables\n\ns {\n\n id bigint NOT NULL PRIMARY KEY,\n\n ...\n\n}\n\n\nsp {\n\n id bigint PRIMARY KEY,\n\n sid bigint REFERENCES s (id),\n\n i numeric,\n\n m numeric\n\n ...\n\n}\n\n\nI have for each entry in [s] on average around 120 entries in [sp]. And \nthat...
[ { "msg_contents": "Hello all,\n\nI have a query with many joins, something like:\n\nSelect c1, c2, c3, sum(c5)\n From V1\n Join V2 on ...\n Left join V3 on ...\n Left join T4 on ...\n Join T5 on ...\n Join T6 on ...\n Left join T7 on ...\n Join T8 on ...\n Left j...
[ { "msg_contents": "Good morning,\n\nI have an index I created on the prefix of a column:\n\ncreate index location_geo_idx ON locations( substring(geohash, 0, 5));\n\nI currently use a similar to query, but I wanted to know if there is a\nfaster way to query multiple value using this index than this?\n\nselect l...
[ { "msg_contents": "Both the first run and subsequent run takes same amount of time.\n\n*First Run:*\n\n\"Seq Scan on d_payer (cost=0.00..8610.40 rows=121788 width=133) (actual\ntime=8.760..98.582 rows=121788 loops=1)\"\n\" *Buffers: shared read=2521*\"\n\"Planning time: 16.820 ms\"\n\"Execution time: 108.626 ms...
[ { "msg_contents": ">From: Tom Lane <tgl@sss.pgh.pa.us>\n>To: Sumeet Shukla <sumeet.k.shukla@gmail.com>\n>Cc: Dave Stibrany <dstibrany@gmail.com>; pgsql-performance@postgresql.org\n>Sent: Friday, 23 June 2017, 5:50\n>Subject: Re: [PERFORM] Dataset is fetched from cache but still takes same time to fetch records ...
[ { "msg_contents": "Hi all,\n\nI am having a problem with nested loop join.\n\nA database has 2 tables: \"posts\" and \"follows\".\nTable \"posts\" have two columns: \"timestamp\" and \"account\".\nTable \"follows\" have two columns: \"target_account\" and \"owner_account\".\nThe database also has an index on \"...
[ { "msg_contents": "Dear pgsql-performance list,\n\nI think I've found a case where the query planner chooses quite a\nsuboptimal plan for joining three tables. The main \"fact\" table\n(metric_value) links to two others with far fewer rows (like an OLAP/star\ndesign). We retrieve and summarise a large fraction ...
[ { "msg_contents": "Let's say I have the following table and index:\n\ncreate table foo(s text, i integer);\ncreate index foo_idx on foo (s, i);\n\nIf I run the following commands:\n\nstart transaction;\nset local enable_sort = off;\nexplain analyze select * from foo where s = 'a' order by i;\nend;\n\nI get the ...
[ { "msg_contents": "Is it possible to speed up deletes which have null references so they don't check if a reference is valid?\n\nI had this scenario:\n\n--large table not referenced from other places\nCREATE TABLE large_table\n(\n id bigserial primary key,\n ref_1 bigint not null,\n ref_2 bigint not null,\n at_...
[ { "msg_contents": "Hi Karl,\n\nThanks for the quick reply! Answers inline.\n\nMy starting point, having executed exactly the preparation query in my\nemail, was that the sample EXPLAIN (ANALYZE, BUFFERS) SELECT query ran in\n15.3 seconds (best of 5), and did two nested loops\n<https://explain.depesz.com/s/KmXc>...
[ { "msg_contents": "Hi Karl and Jeff,\n\nOn 26 June 2017 at 22:22, Jeff Janes <jeff.janes@gmail.com> wrote:\n\n> Be warned that \"explain (analyze)\" can substantially slow down and distort\n> this type of query, especially when sorting. You should run \"explain\n> (analyze, timing off)\" first, and then only t...
[ { "msg_contents": "Hi all,\n\nwe use schemata to separate our customers in a multi-tenant setup (9.5.7,\nDebian stable). Each tenant is managed in his own schema with all the\ntables that only he can access. All tables in all schemata are the same in\nterms of their DDL: Every tenant uses e.g. his own table 'ad...