threads
listlengths
1
275
[ { "msg_contents": "Hi all,\n\nWe are working on a patch which targets the overhead of spinlock in buffer cache.In this regard, we need to exercise buffer spinlock contention on a 16 core machine.\n\nCould anyone please suggest some good methods for exercising the same?\n\nRegards,\n\nAtri\n\nSent from my iPad\n...
[ { "msg_contents": "Hi all,\nI have this simple query that has performance issue. I am assuming there is something wrong in our configuration. Can someone point me to the right direction? (our work_mem is set to 64MB)\n\nsrdb=> explain analyze 013-04-15 16:51:20,223 INFO [com.vasoftware.sf.server.common.query...
[ { "msg_contents": "Dear All,\n\nCan any one please help me to fix this issue, i am getting this error from\nour application, currently Database is running on 9.2.\n\n2013-04-17 11:37:25:151 - {ERROR} database.ConnectionManager Thread\n[http-8080-1]; --- getConnection() Exception:\norg.apache.commons.dbcp.SQLNe...
[ { "msg_contents": "Hello all,\n\nI'm running into an issue when joining between to tables that are partitioned by month. At this point I'm leaning towards it being a bug in the planner but it could be due to something I'm not doing properly as well. Each parent table is empty and has about 30 child tables, and ...
[ { "msg_contents": "Hello,\n\nI recently stumbled upon on what could be a planner bug or a corner case.\nIf \"<false condition> OR ...\" is added to WHERE clause of SELECT query,\nthen the planner chooses a very inefficient plan. Consider a query:\n\nSELECT count(k0.id)\nFROM k0\nWHERE 1 = 2\n OR k0.id IN (\n...
[ { "msg_contents": "Hi guys.\nI'm tuning my postgres server and I faced these 2 parameters.\nToday they have default values.\nIs default enough?\nHow should I tune these values?\n\nHi guys.I'm tuning my postgres server and I faced these 2 parameters.Today they have default values.Is default enough?How should I t...
[ { "msg_contents": "Hi,\n\nMy databases are updated regularly so I am vacuuming frequently (every one\nhour). Recently i also added template1 database to avoid over wrapping\nproblem. But somehow i am seeing strange behavior.\n\nMost of the time all db vacuuming finish in 30 secs.\n\nbut once in a day or two\n- ...
[ { "msg_contents": "Folks,\n\nI've heard a rumor that the most recent update of OSX \"mountain lion\"\nlowers the installed SHMMAX to 4MB, which prevents PostgreSQL from\ninstalling. Can anyone verify this?\n\n-- \nJosh Berkus\nPostgreSQL Experts Inc.\nhttp://pgexperts.com.\n\n\n-- \nSent via pgsql-performance ...
[ { "msg_contents": "Hi,\n\n\nI am using postgresql 8.1 DB.\nI have a large DB and i run the vacuum every hour with \"vocuumdb\n--analyze -a\" option.\nSome times template1 consumes much time in comparison to my own DB.I\nthink at these times the load on OS is higher. But from iostat logs i\ncan see that the load...
[ { "msg_contents": "Hi,\nWe are seeing some overall performance degradation in our application since we installed the security release. Other commits were also done at the same time in the application so we don't know yet if the degradation has any relationship with the security release.\nWhile we are digging in...
[ { "msg_contents": "Hi all,\n\n\n\n I have a general question about network traffic between\nPostgreSQL’s client and server:\nwhat determines the network bandwidth usage or data transferring rate\nbetween a client and a server\nwhen network bandwidth is enough?\n\n\n\nFor example, I ran queries on two tables, ...
[ { "msg_contents": "Hi,\n\nWe again have problems with query planer... (Ubuntu, pg 9.1)\n\nUp to now - solution was \"rephrase the question\", but for next thing we are\nnot sure what would be best solution...\n\nthe whole story is too complex... but simplified:\n\nWe have tables:\n\nthings (thing_id int pk... o...
[ { "msg_contents": "Recently we encountered the following unhappy sequence of events:\n\n1/ system running happily\n2/ batch load into table begins\n3/ very quickly (some) preexisting queries on said table go orders of \nmagnitude slower\n4/ database instance becomes unresponsive\n5/ application outage\n\nAfter ...
[ { "msg_contents": "Hi,\n\nthis is more of a report than a question, because we thought this\nwould be interesting to share.\n\nWe recently (finally) migrated an Request Tracker 3.4 database running\non 8.1.19 to 9.2.4. The queries used by rt3.4 are sometimes weird, but\n8.1 coped without too much tuning. The sc...
[ { "msg_contents": "I have a Hibernate-generated query (That's not going to change, so let's\njust focus on the Postgres side for now) like this:\n\nSELECT *\nfrom PERSON p\nwhere p.PERSON_ID in (\n select distinct p2.PERSON_ID\n from PERSON p2\n ...
[ { "msg_contents": "Hi all,\nWe are running a stress test that executes one select query with multiple threads.\nThe query executes very fast (10ms). It returns 100 rows. I see deterioration in the performance when we have multiple threads executing the query. With 100 threads, the query takes between 3s and 8s...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 8130\nLogged by: Stefan de Konink\nEmail address: stefan@konink.de\nPostgreSQL version: 9.2.4\nOperating system: Linux\nDescription: \n\nWe figured out that two very close query give a massive diff...
[ { "msg_contents": "Hi all,\nWe are running a stress test that executes one select query with multiple threads.\nThe query executes very fast (10ms). It returns 100 rows. I see deterioration in the performance when we have multiple threads executing the query. With 100 threads, the query takes between 3s and 8s...
[ { "msg_contents": "I have two tables that are nearly identical, yet the same query runs 100x\nslower on the newer one. The two tables have the same number of rows (+/-\nabout 1%), and are roughly the same size:\n\ndb=> SELECT relname AS table_name,\ndb-> pg_size_pretty(pg_relation_size(oid)) AS table_size,\ndb...
[ { "msg_contents": "Hello,\n\nWe are in the fortunate situation of having more money than time to help solve our PostgreSQL 9.1 performance problem.\n\nOur server hosts databases that are about 1 GB in size with the largest tables having order 10 million 20-byte indexed records. The data are loaded once and then...
[ { "msg_contents": "- I have a problem with some files on a postgresql 9.0 on windows:\n\n2013-05-10 12:49:08 EDT ERROR: could not stat file \"base/773074/30352481\": Permission denied\n2013-05-10 12:49:08 EDT STATEMENT: SELECT pg_database_size($1) AS size;\n\nI know what does it means: the statistic pooler c...
[ { "msg_contents": "I have a unique constraint on two columns of a supermassive table (est. 1.7\nbn rows) that are the only way the table's ever queried - and it's\nblindingly fast: 51ms to retrieve any single row even non-partitioned.\n\nAnyway: Right now statistics on the two unique constrained columns are se...
[ { "msg_contents": "Hello,\nI am trying to find predicate information for a given SQL query plan as\nprovided by Oracle using DBMS_XPLAN. I am looking at the EXPLAIN command\nfor getting this query plan information, with no luck so far.\n\nDoes the EXPLAIN command provide predicate information?\n\nThank you\nSam...
[ { "msg_contents": "Hi!\n\nThis has been a pain point for quite a while. While we've had several \ndiscussions in the area, it always seems to just kinda trail off and \neventually vanish every time it comes up.\n\nA really basic example of how bad the planner is here:\n\nCREATE TABLE foo AS\nSELECT a.id, a.id %...
[ { "msg_contents": "Hi all,\n\nOur application is heavy write and IO utilisation has been the problem for\nus for a while. We've decided to use RAID 10 of 4x500GB Samsung 840 Pro for\nthe master server. I'm aware of write cache issue on SSDs in case of power\nloss. However, our hosting provider doesn't offer any...
[ { "msg_contents": "Hi All,\n\nWe've got 3 quite large tables that due to an unexpected surge in\nusage (!) have grown to about 10GB each, with 72, 32 and 31 million\nrows in. I've been tasked with cleaning out about half of them, the\nproblem I've got is that even deleting the first 1,000,000 rows seems\nto tak...
[ { "msg_contents": "Hi,\n\nI'm experiencing a very slow CTE query (see below).\n\nWhen I split the three aggregationns into separate views, its' decent\nfast. So I think it's due to the planner.\n\nAny ideas how to reformulate the query?\n\nThese are the tables and views involved:\n* Table promotion with start/e...
[ { "msg_contents": "Hi,\n\nI'm experiencing a very slow CTE query (see below).\n\nWhen I split the three aggregations into three separate views, its' decent\nfast. So I think it's due to the planner.\n\nAny ideas like reformulating the query?\n\nThese are the tables and views involved:\n* Table promotion with st...
[ { "msg_contents": "Hello,\nAfter executing make install for pg_statsinfo when i start the server i see\nerror\n\nERROR: could not connect to repository\nWARNING: writer discards 1 items\nLOG: pg_statsinfo launcher shutting down\nDEBUG: shmem_exit(0): 0 callbacks to make\nDEBUG: proc_exit(0): 0 callbacks to m...
[ { "msg_contents": "Hi people, i have a database with 400GB running in a server with 128Gb \nRAM, and 32 cores, and storage over SAN with fiberchannel, the problem \nis when i go to do a backup whit pg_dumpall take a lot of 5 hours, next \ni do a restore and take a lot of 17 hours, that is a normal time for \nth...
[ { "msg_contents": "The SARS_ACTS table currently has 37,115,515 rowswe have indexed: idx_sars_acts_acts_run_id ON SARS_ACTS USING btree (sars_run_id)we have pk constraint on the SARS_ACTS_RUN table; sars_acts_run_pkey PRIMARY KEY (id )serverdb=# explain select count(*) as y0_ from SARS_ACTS this_ inner join SAR...
[ { "msg_contents": "Howdy,\n\nEnvironment:\n\nPostgres 8.4.15\nUbuntu 10.04\n\nSyslog view def:\n\nnms=# \\d syslog\n View \"public.syslog\"\n Column | Type | Modifiers\n----------+-----------------------------+-----------\nip | inet |\nfacilit...
[ { "msg_contents": "Hi, I have a database where one of my tables (Adverts) are requested a LOT. It's a relatively narrow table with 12 columns, but the size is growing pretty rapidly. The table is used i relation to another one called (Car), and in the form of \"cars has many adverts\". I have indexed the foreig...
[ { "msg_contents": "PostgreSQL 9.1.6 on linux\n\n\n-------- Original Message --------\nSubject: Re: [PERFORM] Very slow inner join query Unacceptable latency.\nFrom: Jaime Casanova <jaime@2ndquadrant.com>\nDate: Tue, May 21, 2013 2:59 pm\nTo: Freddie Burgess <fburgess@radiantblue.com>\nCc: psql performance list ...
[ { "msg_contents": "On Wednesday, May 22, 2013 10:03 PM fburgess wrote:\n\n> I did perform a explain analyze on the query.\n\nExplain analyze doesn't help to collect statistics. You should use Analyze <table_name>.\n\nIdeally optimizer should have slected the best plan, but just to check you can once try with\n\...
[ { "msg_contents": "Hello,\n\nI am testing performance of postgresql application using pgbench.\nI am getting spike in results(graphs) as shown in attached graph due to\nthroughput drop at that time.\npgbench itself doing checkpoint on server (where queries are running)\nbefore and after test starts.\npgbench i...
[ { "msg_contents": "I am fairly new to squeezing performance out of Postgres, but I hope this\nmailing list can help me. I have read the instructions found at\nhttp://wiki.postgresql.org/wiki/Slow_Query_Questions and have tried to\nabide by them the best that I can. I am running \"PostgreSQL 9.1.7,\ncompiled b...
[ { "msg_contents": "serverdb=# set enable_hashjoin=off;SETserverdb=# explain select count(*) as y0_ from SARS_ACTS this_ inner join SARS_ACTS_RUN tr1_ on this_.SARS_RUN_ID=tr1_.ID where tr1.ALGORITHM='SMAT';                                                    QUERY PLAN--------------------------------------------...
[ { "msg_contents": "1.) Server settingmemory: 32960116kB = 32GB2.) Current Postgresql configuration settings of note in my environment.enable_hashjoin=offwork_mem = 16MB #random_page_cost-4.0 <- defaultmaintenance_work_mem=256MBshared_buffers = 8GBserverdb=# explain analyze select count(*) as y0_ from SARS_ACTS ...
[ { "msg_contents": "I am using postgresql 9.2, and we are getting error like -\nSystem.Data.EntityException: The underlying provider failed on Open. --->\nDevart.Data.PostgreSql.PgSqlException: Stream already closed!!!. I have\nturned the autovacuum on but my reporting query is failing. When the manual\nfull...
[ { "msg_contents": "Postgres 9.1.2 on Ubuntu 12.04\n\nAny reason why a select by primary key would be slower than a select that\nincludes an ORDER BY? I was really hoping using the primary key would give\nme a boost.\n\nI stopped the server and cleared the O/S cache using \"sync; echo 3 >\n/proc/sys/vm/drop_cach...
[ { "msg_contents": "Hi,\n\nI have a database with quite some data (millions of rows), that is heavily updated all the time. Once a day I would like to reindex my database (and maybe re cluster it - don't know if that's worth it yet?). I need the database to be usable while doing this (both read and write). I see...
[ { "msg_contents": "We re-tested these settings a few times after our initial test and realized that the execution time I posted was shewed, because the execution plan was cached after the initial run. Subsequent executions ran in a little over a second.\nThere ended up being no significant saving by setting the...
[ { "msg_contents": "Folks,\n\nI'm seeing what may be a major performance bug in BIND in 9.2.4.\n\nWe have a client who has an application which uses\nTomcat+Hibernate+JDBC. They are in the process of upgrading this\napplication from 8.4.17 to 9.2.4. As part of this, they have been doing\nperformance testing, a...
[ { "msg_contents": "Hi all,\n\nIn our server Check pointer process is consuming 8 GB of memory, what could\nbe the possible reason? Can any one please help.\n\nRegards,\nItishree\n\nHi all, In our server Check pointer process is consuming 8 GB of memory, what could be the possible reason? Can any one please help...
[ { "msg_contents": "Two questions Please1.) Is there any way to clear the cache so that we can ensure that when we run \"explain analyze\" on a query and make some minor adjustments to that query and re-execute, the plan is not cached. Since the cached plan returns runtimes that are much lower than the initial e...
[ { "msg_contents": "I have a table called contacts. It has a BIGINT owner_id which references a\nrecord in the user table. It also has a BIGINT user_id which may be null.\nAdditionally it has a BOOLEAN blocked column to indicate if a contact is\nblocked. The final detail is that multiple contacts for an owner ma...
[ { "msg_contents": "Hello,\n\nI'm using php5.4.12 with extension=php_pgsql.dll enabled but the query that\ni'm trying to execute is faster on PgAdmin app.\n\nSELECT title, ts_rank_cd(vector, query) AS rank FROM links,\nto_tsquery('english', 'risk') query WHERE query @@ vector ORDER BY rank\nDESC;\n\nI'm not sure...
[ { "msg_contents": "Hello,\n\n\nWe have a strange issue related to a prepared statement.\n\n\nWe have two equals queries where the sole difference is in the limit.\n- The first is hard coded with limit 500.\n- The second is prepared with limit $1 ($1 is bound to 500).\n\n\nPostgreSQL give us two different plans ...
[ { "msg_contents": "Hi, My pg_xlog dir has been growing rapidly the last 4 days, and my disk is now almost full (1000Gb) even though the database is only 50Gb. I have a streaming replication server running, and in the log of the slave it says:\n\ncp: cannot stat `/var/lib/postgresql/9.2/wals/0000000200000E1B0000...
[ { "msg_contents": "Hello all you guys,\n\nSince saturday I'm get stucked in a very strange situation: from time to\ntime (sometimes with intervals less than 10 minutes), the server get\n\"stucked\"/\"hang\" (I dont know how to call it) and every connections on\npostgres (dont matter if it's SELECT, UPDATE, DELE...
[ { "msg_contents": "Hi All\n\nOne of my query treating performance issue on my production server.\nOnce i run query on my parent table with specific condition(hard coded\nvalue) its uses only proper child table and its index on explain plan ,\nbut once i am using table conditions (instead of hard coded value)...
[ { "msg_contents": "I've been using Gmail and thought you might like to try it out. Here's an\ninvitation to create an account.\n\n\n You're Invited to Gmail!\n\nK P Manoj has invited you to open a Gmail account.\n\nGmail is Google's free email service, built on the idea that email can be\nintuitive, efficient,...
[ { "msg_contents": "Hello,\nReading code documentation of pg_stat_statements it says\n\n* As of Postgres 9.2, this module normalizes query entries. Normalization\n * is a process whereby similar queries, typically differing only in their\n * constants (though the exact rules are somewhat more subtle than that) ...
[ { "msg_contents": "Hello,\nI understand that when the pg_stat_statements.save=true the\nstatement statistics are saved at global/pg_stat_statements.stat. This file\nis read on next startup and then deleted.\nIf there is a crash i understand that pg_stat_statements.stat file is not\ncreated even if pg_stat_stat...
[ { "msg_contents": "All;\n\nI'm working with a client running PostgreSQL on a Fusion-IO drive.\n\nThey have a PostgreSQL setup guide from Fusion recommending the \nfollowing settings:\neffective_io_concurrency=0\nbgwriter_lru_maxpages=0\nrandom_page_cost=0.1\nsequential_page_cost=0.1
\n\nThese seem odd to me, ef...
[ { "msg_contents": "I'm trying to optimize a query on a partitioned table. The schema looks\nlike this:\n\nCREATE TABLE observations(\n ts timestamptz NOT NULL DEFAULT now(),\n type text NOT NULL,\n subject uuid NOT NULL,\n details json NOT NULL\n);\n\nThe table is partitioned by ts (right now I have ~300 1h...
[ { "msg_contents": "Folks,\n\nI'm getting something really odd in 9.2.4, where the planner estimates\nthat the selectivity of a column equal to itself is always exactly 0.5%\n(i.e. 0.005X). I can't figure out where this constant is coming from,\nor why it's being applied.\n\nTest case:\n\ncreate table esttest (...
[ { "msg_contents": "hello postgresql experts --\n\ni have a strange row estimate problem, which unfortunately i have trouble reproducing for anything but very large tables which makes boiling down to a simple example hard. i'm using version 9.1.1, all tables have had analyze run on them.\n\nhere's the example :...
[ { "msg_contents": "Hello,\n\nIf a table takes 100 MB while on disk, approximately how much space will it take in RAM/database buffer?\nContext - We are designing a database that will hold a couple of GBs of data. We wanted to figure out how much shared_buffers we should provide to ensure that most of the time, ...
[ { "msg_contents": "Hi,\n\npostgres does a seqscan, even though there is an index present and it\nshould be much more efficient to use it.\nI tried to synthetically reproduce it, but it won't make the same choice\nwhen i do.\nI can reproduce it with a simplified set of the data itself though.\n\nhere's the query...
[ { "msg_contents": "Hey guys,\n\nI suspect I'll get an answer equivalent to \"the planner treats that like \na variable,\" but I really hope not because it renders partitions \nessentially useless to us. This is as recent as 9.1.9 and constraint \nexclusion is enabled.\n\nWhat I have is this test case:\n\nCREATE...
[ { "msg_contents": "Hi, \nI am experiencing a similar issue as the one mentioned in this post http://stackoverflow.com/questions/3100072/postgresql-slow-on-a-large-table-with-arrays-and-lots-of-updates/3100232#3100232\nHowever the post is written for a 8.3 installation, so I'm wondering if the fillfactor problem...
[ { "msg_contents": "Hi all\n\njust wanna share a link I've stumbled across today.\n\nhttps://lwn.net/Articles/557220/\n\nquoting the relevant part of the announcement:\n\n\"This is the culmination of several months of effort, to determine the results\nof using different tuning options in the Linux kernel, with d...
[ { "msg_contents": "I have made some changes in my postgresql.conf, well, I made two changes \nin this file. the first time, my queries had improved on their execution \ntime considerably but in the second change, I seem my queries have not \nimproved on the contrary they have come back to be slow or at best, th...
[ { "msg_contents": "Hey,\n\nWe have a search method that depending on search params will join 3-5 tables, craft the joins and where section. Only problem is, this is done in rather horrible java code. So using pgtap for tests is not feasible.\nI want to move the database complexity back to database, almost writi...
[ { "msg_contents": "I imported a large area of OpenStreetMap's planet.osm file into a\npostgresql database. The database contains a table called nodes. Each node\nhas a geometry column called geom and a hstore column called tags. I need\nto extract nodes along a line that have certain keys in the tags column. To...
[ { "msg_contents": "Hi, i have a postgresql 9.2.2, but i don�t use autovaccum but i want to \nbegin to use it. some recommendation about the optimal configuration? \nor some link to explain it.\n\nThanks\n\n-- \nAtentamente,\n\n\nJEISON BEDOYA DELGADO\nAdm. Servidores y Comunicaciones\nAUDIFARMA S.A.\n\n\n\n-...
[ { "msg_contents": "I am migrating a Postgres 8.4 installation on a dedicated server to Postgres 9.2 running on a Virtual Machine. A sample query that run in 10 minutes on the 8.4 installation take 40 minutes on the 9.2 installation.\n\nCurrent Server, Postgres 8.4\n\n* 6-core, 3GHz AMD system\n\n* ...
[ { "msg_contents": "Hi, i want to know why in my database the process stay in BID, PARSE, \nautentication, startup by a couple minuts, generating slow in the \nprocess, perhaps tunning parameters? or configuration of operating \nsystem (Linux RHEL 6).\n\nThanks by your help\n\n-- \nAtentamente,\n\n\nJEISON BEDOY...
[ { "msg_contents": "Hi Guys,\n\nI'm new to Postgresql, we have a Greenplum cluster and need to create many indexes on the database. So my question is:\n\nIs there any performance tips for creating index on Postgres?\nhow to monitor the progress the creation process?\n\nThanks and best regards,\nSuya Huang\n\n\n...
[ { "msg_contents": "Hi All,\n\n(basic info)\nPostgreSQL 9.2.4\n64 bit Linux host\n4GB shared_buffers with 14GB system memory, dedicated database VM\n10MB work_mem\n\n\nI have a query that takes over 6 minutes to complete, and it's due \nmainly to the two sorting operations being done on this query. The data \nit...
[ { "msg_contents": "Hi!\n\n\nI’ve just learned about the water crisis and thought you would be interested to check out this story:\n\nhttps://waterforward.charitywater.org/et/FWIshxIN\n\n\nLet me know what you think!\n\n\n\nThanks,\nMarcos\n\n\n\n--\nSent via WaterForward, an initiative of charity: water\nWaterF...
[ { "msg_contents": "Hi,\n\nI'm in the process of implementing a table for storing some raw data in the format of a hash containing one level of keys and values. The hash can be quite big (up to 50 keys pointing at values varying from one to several hundred characters)\n\nNow, I'm in doubt whether to use JSON or ...
[ { "msg_contents": "Hi all (Hopefully this is the correct mailing list for this).\n\nI'm working on performance tuning a host of queries on PostgreSQL 9.2 \nfrom an application, each query having its own issues and fixes, however \nfrom what I understand this application runs the exact same queries on \nthe exac...
[ { "msg_contents": "In the asynchronous commit documentation, it says:\n\n*The commands supporting two-phase commit, such as PREPARE TRANSACTION, are\nalso always synchronous\n*\n\nDoes this mean that all queries that are part of a distributed transaction\nare synchronous?\n\nIn our databases we have extremely h...
[ { "msg_contents": "I have the same table definition in two different databases on the same computer. When I explain a simple query in both of them, one database uses a sequence scan and the other uses an index scan. If I try to run the Seq Scan version without the where clause restricting the value of uniqueid...
[ { "msg_contents": "Greg, All:\n\nSo, I've been running some stats over some customer workloads who are\nhaving issues with checkpoint spikes, and I'm finding that the bgwriter\nis almost entirely ineffective for them:\n\npct_checkpoints_req | 33.0\navg_frequency_min | 2.30\navg_write_time_s | 1...
[ { "msg_contents": "Hi\n\nAt 2013/2/8 I wrote:\n> I have problems with the performance of FTS in a query like this:\n>\n> SELECT * FROM FullTextSearch WHERE content_tsv_gin @@\n> plainto_tsquery('english', 'good');\n>\n> It's slow (> 30 sec.) for some GB (27886 html files, originally 73 MB zipped).\n> The planne...
[ { "msg_contents": "I tried sending this a couple days ago but I wasn't a member of the group\nso I think it's in limbo. Apologies if a 2nd copy shows up at some point.\n\nWe recently migrated a 1.3TB database from 8.4 to 9.2.2 on a new server. As\npart of this migration we added partitions to the largest tables...
[ { "msg_contents": "Hello,\n\nI want test the PostgreSQL performance using DBT5, where my PostgreSQL running on server (say 192.168.56.101) and want to test the performance executing DBT5 on other machine (say 192.168.56.102).\n\nMy aim is test the database performance excluding overhead to testing tool running ...
[ { "msg_contents": "I am trying to understand how memory is allocated/used by our Postgresql Database connections. From reading the documentation it appears that work_mem and temp_buffers are the 2 largest contributors (and work_mem usage can grow) to the memory utilized by the Database connections. In additio...
[ { "msg_contents": "Hi everybody,\n\nIn recent days, we have seen many processes in reaching the lock held \n5000. At that time my machine will become sluggish and no response from \nthe database. I tried to change configuration parameters, but have not \nfound anything satisfactory. further in meeting log messa...
[ { "msg_contents": "Hello team,\n\nWe have serious performance issues with a production EDB 9.2AS installation\n\nThe issue is mostly related to storage I/O bottlenecks during peak hours\nand we are looking for tunables on any level that could reduce the I/O\nspikes on SAN and improve overall DB performance.\n\n...
[ { "msg_contents": "Hello, i have a problem with planning time, I do not understand why this can\nhappen.\n\nPostgreSQL 9.2.2 on x86_64-unknown-linux-gnu, compiled by gcc-4.4.real\n(Debian 4.4.5-8) 4.4.5, 64-bit\n\n# explain\n# select i.item_id, u.user_id from items i\n# left join users u on u.user_id = i.user_i...
[ { "msg_contents": "Howdy. I seem to have inherited this problem:\n\nhttp://www.postgresql.org/message-id/EF524E81-B815-4122-A337-7E50BCED514E@silentmedia.com\n\nBasically a subselect with no offset is resulting in really poor\nperformance with 120s queries but adding an offset 0 to the inner sub\nselect results...
[ { "msg_contents": "Good day,\n \nI have a performance issue when JOINing a view within another view more than once.\nThe query takes over three seconds to execute, which is too long in this case. It's not a problem if the tables are nearly empty, but that isn't the case on the production database.\n \nI suspect...
[ { "msg_contents": "Hello,\n\nAssuming I have a huge table (doesn't fit in RAM), of which the most\nimportant fields are \"id\" which is a SERIAL PRIMARY KEY and \"active\"\nwhich is a boolean, and I'm issuing a query like:\n\nSELECT * FROM table ORDER BY id DESC LIMIT 10\n\n... is pgsql smart enough to use the ...
[ { "msg_contents": "Hi,\n\nI've seen a couple of bad queries go through one instance and I'm wondering\nwhether there's something simple that can be done to help.\n\nNot running the query in the first place is what I am looking to do\nultimately but in the meantime, I'm interested in understanding more about\nth...
[ { "msg_contents": "Let's say I have a table something like this:\n\n create table call_activity (\n id int8 not null,\n called timestamp,\n user_id int8 not null,\n primary key (id)\n foreign key (user_id) references my_users\n )\n\n\nI want to get the last call_activity ...
[ { "msg_contents": "In my system a user can have external contacts. When I am bringing in\nexternal contacts I want to correlate any other existing users in the\nsystem with those external contacts. A users external contacts may or may\nnot be users in my system. I have a user_id field in \"contacts\" that is\nN...
[ { "msg_contents": "Hi!\nI can't explain why function is slow down on same data.\nPostgresql.conf the same, hardware is more powerful.\nDiffrents is postgresql version\n\nHere it;s my tests\n\nServer 1 PSQL 9.1\n\nFIRST RUN\nEXPLAIN (ANALYZE, BUFFERS) SELECT webclient.prc_ti_cache_alloc_dbl_update(\n 213251...
[ { "msg_contents": "Hi!\nI can't explain why function is slow down on same data.\nPostgresql.conf the same, hardware is more powerful.\nDiffrents is postgresql version\n\nHere it;s my tests\n\nServer 1 PSQL 9.1\n\nFIRST RUN\nEXPLAIN (ANALYZE, BUFFERS) SELECT webclient.prc_ti_cache_alloc_dbl_update(\n 213251...
[ { "msg_contents": "Hello,\n\nI'm trying to simplify a schema, where I had many ranges floating around.\nMy idea is to put them all in an array field and query like this:\n\nSELECT\n event.*\nFROM event\nJOIN participant_details\n USING (participant_id)\nWHERE\n tsrange(event.start, event.end) && ANY (participan...
[ { "msg_contents": "Hi folks\n\nI've run into an interesting Stack Overflow post where the user shows\nthat marking a particular function as IMMUTABLE significantly hurts the\nperformance of a query.\n\nhttp://stackoverflow.com/q/18220761/398670\n\nCREATE OR REPLACE FUNCTION\n to_datestamp_immutable(time_int do...
[ { "msg_contents": "Hi all,\n\nI am new in this group and need some help from your side.\n\nWe have a mediation product which is initially using Oracle as database.\n\nSome of our customer interested to move Postgres 9.1.\n\nOur mediation product storing some configuration related information in data base and so...
[ { "msg_contents": "Hi all,\n\nI've run into a strange plan difference on 9.1.9 - the first query does\n\"DISTINCT\" by doing a GROUP BY on the columns (both INT).\n\nSELECT\n \"f_account\".\"name_id\" AS \"a_1550\",\n \"f_message\".\"text_id\" AS \"a_1562\"\nFROM \"f_accountmessagefact\"\n INNER JOIN \"f_me...
[ { "msg_contents": "Hello ,\n\nI am trying to run DBT5 to test performance of PG9.2.4,\n\nBut execution failed due to undefined symbol: PQescapeLiteral error in <output_dir>/bh/bh.out\n\nFull error as follow: \n----------------------------------------------------------------------\ndbt5 - Brokerage House\nListen...
[ { "msg_contents": "Currently I run two queries back-to-back to correlate users with contacts.\n\nUPDATE contacts SET user_id = u.id\n FROM my_users u\n JOIN phone_numbers pn ON u.phone_significant = pn.significant\n WHERE contacts.owner_id = 7 AND contacts.user_id IS NULL AND contacts.id =\npn.ref_contact...
[ { "msg_contents": "Hi,\n\nI'm on 9.2.4 with Ubuntu server. There are usually hundereds of \nconnections doing the same insert with different data from different \nnetworks every minute, through pgbouncer in the same network of the \ndatabase server. The database has been running for about one year \nwithout pro...