threads
listlengths
1
275
[ { "msg_contents": "Hey everyone,\n\nI was wondering if anyone has found a way to get pg_basebackup to be... \nfaster. Currently we do our backups something like this:\n\ntar -c -I pigz -f /db/backup_yyyy-mm-dd.tar.gz -C /db pgdata\n\nWhich basically calls pigz to do parallel compression because with RAIDs \nand...
[ { "msg_contents": "Hello,\n\nI have around 1000 schema in database, Each schema having similar data \nstructure with different data\nEach schema has few tables which never updates (Read only table) and \nother tables rewrites almost everyday so I prefer to TRUNCATE those \ntables and restores with new data\n\nN...
[ { "msg_contents": "I've been struggling with this issue for the last several days, and I feel\nlike I'm running into a few different issues that I don't understand. I'm\nusing postgres 9.0.8, and here's the OS I'm running this on:\ninux 2.6.18-308.4.1.el5xen #1 SMP Tue Apr 17 17:49:15 EDT 2012 x86_64\nx86_64 ...
[ { "msg_contents": "Hi all,\n\nI am using postgresql 9.0 and I am updating a large table and running a\nselect count(*). The update is run first and then the select. The update is\nblocking the select statement. To use the term MVCC (as seems to be done so\nmuch in this list), well it seems to be broken. MVCC sh...
[ { "msg_contents": "Hello.\n\nToday I've found a query that I thought will be fast turned out to be slow.\nThe problem is correlated exists with join - it does not want to make\ncorrelated nested loop to make exists check.\nEven if I force it to use nested loop, it materialized join uncorrelated\nand then filter...
[ { "msg_contents": "I am running the following query:\n\nSELECT res1.x, res1.y, res1.z\nFROM test t\nJOIN residue_atom_coords res1 ON\n\t\tt.struct_id_1 = res1.struct_id AND\n\t\tres1.atomno IN (1,2,3,4) AND \n\t\t(res1.seqpos BETWEEN t.pair_1_helix_1_begin AND t.pair_1_helix_1_end)\nWHERE\nt.compare_id BETWEEN ...
[ { "msg_contents": "Hi all,\n\nas far as i looked around about the new feature: index-only scan, i guess\nthis feature will not include the option such as ms-sql INCLUDE.\n\nwell, i have a table with columns: a,b,c\ni query the table like this: select a,c from table where a=x and b=y\nas for now, i have unique-i...
[ { "msg_contents": "Hi, all.\n\nthis is an obligation from the past:\nhttp://archives.postgresql.org/pgsql-performance/2012-05/msg00017.php\n\nthe same test, that did ~230 results, is now doing ~700 results. that is,\nBTW even better than mssql.\n\nthe ultimate solution for that problem was to NOT to do \"ON COM...
[ { "msg_contents": "Hi,\nWe started to think about using SSD drive for our telco system DB. Because we have many \"almost\" read-only data I think SSD is good candidate for our task. We would like to speed up process of read operation. \nI've read post (http://blog.2ndquadrant.com/intel_ssd_now_off_the_sherr_sh...
[ { "msg_contents": "Hi all,\n\nI am currently playing with the nice pgbench tool.\nI would like to build a benchmark using pgbench with customized scenarios, \nin order to get something quite representative of a real workload.\nI have designed a few tables, with a simple script to populate them, and \ndefined 3 ...
[ { "msg_contents": "I need to move a postgres 9.0 database -- with tables, indexes, and wals associated with 16 tablespaces on 12 logical drives -- to an existing raid 10 drive in another volume on the same server. Once I get the data off the initial 12 drives they will be reconfigured, at which point I'll need ...
[ { "msg_contents": "I have two tables node and relationship. Each relationship record connects two nodes and has an application keys (unfortunately named) that can be used by the application to look-up a relationship and get from one node to the other.\n \nMy query uses a node id and a description of a relations...
[ { "msg_contents": "Hi all,\n\nMay be I completely wrong but I always assumed that the access speed to the\narray element in PostgreSQL should be close to constant time.\nBut in tests I found that access speed degrade as O(N) of array size.\n\nTest case (performed on large not busy server with 1GB work_mem to en...
[ { "msg_contents": "I'm trying to work through a root cause on a performance problem. I'd like to \nbe able to \"show\" that a problem was fixed by analyzing the table.\n\nwhat i've done is\nset default_statistics_target=1\nanalyze <Table>\n\nThat gets rid of most of the rows in pg_stats, but i'm still getting d...
[ { "msg_contents": "Howdy,\n\nI just restored a DB from a cold backup (pg_ctl stop -m fast)\n\nWhen starting the DB I see:\nLOG: corrupted statistics file \"global/pgstat.stat\"\n\nWhen I look at the filesystem I don't see a global/pgstat.stat file but i do see a \npg_stat_tmp/pgstat.stat\n\nis that PG rebuildi...
[ { "msg_contents": "Hi,\n\nI have a Java application that tries to synchronize tables in two databases\n(remote source to local target). It does so by removing all constraints,\nthen it compares table contents row by row, inserts missing rows and\ndeletes \"extra\" rows in the target database. Delete performance...
[ { "msg_contents": "Any thoughts about this? It seems to be a new database system designed\nfrom scratch to take advantage of the growth in RAM size (data sets that\nfit in memory) and the availability of SSD drives. It claims to be \"the\nworld's fastest database.\"\n\nhttp://www.i-programmer.info/news/84-dat...
[ { "msg_contents": "Hi,\n\nI've read this:\nhttp://wiki.postgresql.org/wiki/Prioritizing_databases_by_separating_into_multiple_clusters\n\nBut it doesn't really say anything about memory.\nIf i can fit an extra cluster into it's shared buffer, it should have fast\nreads, right?\nEven if i don't have seperate spi...
[ { "msg_contents": "Hello,\n\nI \"have\" this two tables:\n\n\nTable Cat:\nid|A|B\n--+-+-\n1|3|5\n2|5|8\n3|6|9\n\nTable Pr:\nid|Catid|\n--+-\n1|3\n2|2\n3|1\n\n\nI need replace \"Catid\" column for corresponding values A and B (Table \nCat) in Table Pr.\n\nVirtual table like this:\nTable Pr:\nid|Catid|A|B\n--+-+-...
[ { "msg_contents": "PV wrote:\n \n> Any suggestion?\n \nYou provided too little information to suggest much beyond using JOIN\ninstead of a subquery. Something like:\n \nSELECT pr.id, pr.catid, cat.a, cat.b\n FROM pr join cat ON (cat.id = pr.catid)\n WHERE \"lft\" > 1 AND \"rgt\" < 10 AND (...)\n ORDER BY c...
[ { "msg_contents": "Hello,\n\nMy question below is almost exact copy of the on on SO:\nhttp://stackoverflow.com/questions/11311079/postgresql-db-30-tables-with-number-of-rows-100-not-huge-the-fastest-way\n\nThe post on SO caused a few answers, all as one stating \"DO ONLY TRUNCATION\n- this is the fast\".\n\nAls...
[ { "msg_contents": "Hello PostgreSQL fans,\nI would like to introduce myself and the TPC-V benchmark to the PostgreSQL community. I would then like to ask the community to help us make the TPC-V reference benchmarking kit a success, and establish PostgreSQL as a common DBMS used in measuring the performance of e...
[ { "msg_contents": "Following the earlier email introducing the TPC-V benchmark, and that we are developing an industry standard benchmarking kit for TPC-V using PostgreSQL, here is a specific performance issue we have run into.\n\nIn running a TPC-E prototype of the benchmark on an 8-core Nehalem blade and a di...
[ { "msg_contents": "I want to implement a \"paged Query\" feature, where the user can enter in \na dialog, how much rows he want to see. After displaying the first page \nof rows, he can can push a button to display the next/previous page.\nOn database level I could user \"limit\" to implement this feature. My \...
[ { "msg_contents": "A vendor has recommended the above drive to us - anyone have experience \nwith it or its predecessor Warpdrive?\n\nhttp://www.storagereview.com/lsi_warpdrive_2_lp_display_idf_2011\nhttp://www.storagereview.com/lsi_warpdrive_slp300_review\n\nThe specs look quite good, and the cards have capaci...
[ { "msg_contents": "I spent a good chunk of today trying to chase down why a query on\none box ran in 110ms and on another, smaller box it ran in 10ms.\nThere was no other activity on either box.\n\nBoth boxes are PG9.1.1 RHEL 6.2 x64. the faster box is a smallish \nVM. the other box is a big 40core/256GB box.\n...
[ { "msg_contents": "Hello PGSQL fans,\nLooking back at my posts the past couple of days and the replies that I've got, I realized that I have failed to make one point clear: we are very pleased with what we have seen from PostgreSQL so far. Let me explain. At this point of developing or porting a benchmark on a ...
[ { "msg_contents": "Hello,\n\nTime for a broad question. I'm aware of some specific select queries that will generate disk writes - for example, a sort operation when there's not enough work_mem can cause PG to write out some temp tables (not the correct terminology?). That scenario is easily remedied by enabl...
[ { "msg_contents": "I have grabbed one day slow query log and analyzed it by pgfouine, to my\nsurprise, the slowest query is just a simple select statement:\n\n*select diggcontent_data_message.thing_id, diggcontent_data_message.KEY,\ndiggcontent_data_message.value, diggcontent_data_message.kind FROM\ndiggcontent...
[ { "msg_contents": "Hi to all, \n\n\nI run Postgresql 8.3.9 on a dedicated server running with Debian 5.0.4, a strong bi quad-proc with RAM 16Go. My biggest db contains at least 100 000 tables. Last time, I started a Java process I use to make some change on it, it created 170 new tables and it took one full min...
[ { "msg_contents": "I have a query which joins to a nested union and I'm getting a plan which never returns. Here is the query simplified as much as possible:\n\nselect 'anything' as result\n from \"Attribute\" as A1\n inner join\n (\n ...
[ { "msg_contents": "Hi Andrew,\n\nSure... We are sending data in Json to clients\n\n{\ntotal:6784,\ndata:[50 rows for desired page]\n}\n\nSELECT count(*) FROM table - without where, without joins used to have\nbad performance... However, in real scenario we have never had the case\nwithout joins and where... Joi...
[ { "msg_contents": "Howdy!\n\nI'm trying to figure out why checkpointing it completely pegging my I/O under moderate to high write load, \nI'm on PG9.1.1, RHEL 6.2 x64\n\ncheckpoint_completion_target = 0.7\ncheckpoint_timeout = 10m\n\nJul 10 00:32:30 perf01 postgres[52619]: [1895-1] user=,db= LOG: checkpoint st...
[ { "msg_contents": "Dear @,\n\nIs there any tool or some sort of script available, for PostgreSQL, which \ncan be used to measure scalability of an application's database. Or is \nthere any guideline on how to do this.\n\nI am a bit confused about the concept of measuring scalability of an \napplication's databa...
[ { "msg_contents": "Hi,\n\nI have searched solution to my problem a few days. On my query, there is big performance problem.\nIt seems to me, that problem is on where-part of sql and it's function.\n\nMy sql is:\nselect count(*)\n\t\tfrom table_h \n\t\twhere \n\t\t\tlevel <= get_level_value(11268,id,area) and \n...
[ { "msg_contents": "Hi and thank's guys!\n\nFirst trying this Brendan's recommendation.\n\nIt seems only a small difference between sql and PL/pgSQL. from 40-->37. Not so good yet.\nI will try Maxim's little later and you all know.\n\n--\nkupen\n\nBrendan Jurd [direvus@gmail.com] kirjoitti: \n> On 10 July 2012 1...
[ { "msg_contents": "Hello again,\n\nSeems to be ok, by adding normal outer join and some fields on where-part.\n\nPrevious, I use to used with Oracle and Sybase databases as much as possible functions/procedures.\nThere ware something to do with performance: \"Do it on server, not in client\".\nTypically all pro...
[ { "msg_contents": "Hi\n\nAfter seeing a few discussions here and on Stack Overflow I've put \ntogether a quick explanation of why \"DELETE FROM table;\" may be faster \nthan \"TRUNCATE table\" for people doing unit testing on lots of tiny \ntables, people who're doing this so often they care how long it takes.\...
[ { "msg_contents": "Version.....\nPostgreSQL 9.1.2 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.5.2, 64-bit\n \nServer.....\nServer: RX800 S2 (8 x Xeon 7040 3GHz dual-core processors, 32GB memory\nO/S: SLES11 SP1 64-bit\n \nScenario.....\nLegacy application with bespoke but very efficient interface to it...
[ { "msg_contents": "Hi Fellows\n\nI have a question regarding PostgreSQL 9.1 indexing. \n\nI am having a table and want to create a index for a column and I want to\nstore the data with time zone for that column. The questions are:\n\n1. Can I create a index for a column which store time stamp with time zone.\nI...
[ { "msg_contents": "I think my original post here might have gotten caught in a spamtrap, so re-trying, I apologize if it ends\nup being a duplicate.\n\nI also forgot to mention that I'm on PG9.1.1 / RHEL 6.2 x64\n\nI believe this is the reason for the behavior i was seeing in this post as well.\nhttp://archives...
[ { "msg_contents": "I'm upgrading from 8.4 to 9.1 and experiencing a performance degradation on\na key query with 2 views and 2 tables.\n\nOld server \"PostgreSQL 8.4.10 on i686-redhat-linux-gnu, compiled by GCC gcc\n(GCC) 4.1.2 20080704 (Red Hat 4.1.2-51), 32-bit\"\nNew server \"PostgreSQL 9.1.4 on x86_64-unkno...
[ { "msg_contents": "Dear Friends,\n\nIs there a tool available to perform Data Model review, from a performance\nperspective?\nOne which can be used to check if the data model is optimal or not.\n\nThanks,\nSreejith.\n\nDear Friends,\n Is there a tool available to perform Data Model review,  from a performance ...
[ { "msg_contents": "Hello,\n\nOur postgres 9.0 DB has one table (the important one) where the bulk of \ninsertions is happening. We are looking more or less at around 15K to \n20K insertions per minute and my measurements give me a rate of 0.60 to \n1 msec per insertion. A summary of the table where the insertio...
[ { "msg_contents": "I have a single *table* that is some 560GB in size, 6 columns, average\nrow width 63.\nThere are approximately 6.1 billion rows.\nIt has 4 indices, 131, 313, 131 and 190 GB in size, respectively. All\nare btree indices.\n\nI tried inserting new data into the table, and it's taking a *very* lo...
[ { "msg_contents": "Howdy,\n\nI've got a couple of tables that are taking a little longer than normal to extend, resulting \nin some slow inserts.\n\nThey're fairly large tables, ~200GB pg_total_relation_size (90GB for just the table)\n\nI suspect that this is related to a sustained heavy load that would stop au...
[ { "msg_contents": "We're seeing slow application performance on a PostgreSQL 9.1 server which\nappears to be relatively lightly loaded. Some graphs from pgstatview are\nat http://www2.uptimeforce.com/pgstatview/e35ba4e7db0842a1b9cf2e10a4c03d91/\n These cover approximately 40 minutes, during which there was so...
[ { "msg_contents": "Newer Linux systems with lots of cores have a problem I've been running \ninto a lot more lately I wanted to share initial notes on. My \"newer\" \nmeans running the 2.6.32 kernel or later, since I mostly track \n\"enterprise\" Linux distributions like RHEL6 and Debian Squeeze. The \nissue ...
[ { "msg_contents": "Hi, I was wondering if there are any recommended ways or tools for \ncalculating the planner cost constants? Also, do the absolute values \nmatter or is it simply the ratio between them? I'm about to configure a \nnew server and can probably do a rough job of calculating them based on \nsuppo...
[ { "msg_contents": "PostgreSQL: 9.1\nOS: Red Hat 6\nThis PostgreSQL instance is used for dynamic web content. It runs on a dedicated server.\n\nSo I need some PostgreSQL monitoring advice. There are two basic strategies that I am aware of for configuring PostgreSQL:\n\n\n1) In Memory: With an in memory o...
[ { "msg_contents": "Hi,\n\nI'm surprised at the difference in speed/execution plan between two logically equivalent queries, one using IN, the other using EXISTS. (At least I think they are logically equivalent)\n\nI've created a small setup that illustrates what I mean.\n\nConsider the following tables:\n\nCREA...
[ { "msg_contents": "Hi, I am running a 9.1 server at Ubuntu. When I upgraded to the current version \nI did a pg_dump followed by pg_restore and found that the db was much faster. \nBut slowed down again after two days. I did the dump-restore again and could now \ncompare the two (actually identical) databases. ...
[ { "msg_contents": "Hi all, \n\n\nWe have put some deferred constraints (some initially immediate, some\ninitially deferred) into our database for testing with our applications. \n\nI haven't seen any noticeable loss in performance, but I am not sure I can\nproperly simulate our full production environment load ...
[ { "msg_contents": "(First, apologies if this post now appears twice - it appears our mail server rewrites my address!)\n\nHello all. I'm a pgsql performance virgin so hope I cross all the 't's\nand dot the lower-case 'j's when posting this query...\n\nOn our production database server we're experiencing behavio...
[ { "msg_contents": "Hello,\n\nWe are using Postgres 9.1.4. We are struggling with a class of queries\nthat got impossible to run after sharding a large table. Everything\nlike:\n\n select small.something, big.anything\n from small join big on small.big_id = big.id;\n\nand variation such as \"select * from ...
[ { "msg_contents": "My mental model of the EXISTS clause must be off. This snippet appears at\nthe end of a series of WITH clauses I suspect are irrelevant:\n\nwith etc etc ... , cids as\n> (select distinct c.id from ddr2 c\n> join claim_entries ce on ce.claim_id = c.id\n> where (c.assigned_ddr = 879\n> or exi...
[ { "msg_contents": "Hi \n\n\nWe have noticed something strange in the interaction between our Geoserver instance and Postgres/PostGIS. \n\n\nAfter setting Geoserver's log level to include developer debugging, I managed to capture a single request from Geoserver WMS to PostGIS. \n\n\nThe (shortened) sequence of e...
[ { "msg_contents": "Hi,\n\nI was testing a query to delete duplicates to see how well using ctid works if the table doesn't have a unique identifier available.\n\nThe table definition is:\n\ncreate table dupes\n(\n id integer primary key,\n first_name text,\n last_name text\n);\n\nMy test table has 100....
[ { "msg_contents": "I partitioned a table, but didn't find any improvement in query timing.\n\nThe basic table was like as follows :-\n\n\\d table1\n> Table \"public.table1_old\"\n> Column | Type | Modifiers\n> --------------+-----------------------------+--------...
[ { "msg_contents": "Hi,\n\nIn statistical reports gathered by PgBadger on our PostgreSQL databases\nalmost always we have in \"Queries that took up the most time\" report table\ninformation about transactions start time ('BEGIN;' command). Something\nlike that in example below:\n\n2 3h34m52.26s 48,556,167 ...
[ { "msg_contents": "Hello,\n\nUnder FreeBSD 9, what filesystem should I use for PostgreSQL? (Dell \nPowerEdge 2900, 24G mem, 10x2T SATA2 disk, Intel RAID controller.)\n\n * ZFS is journaled, and it is more independent of the hardware. So if\n the computer goes wrong, I can move the zfs array to a different s...
[ { "msg_contents": "Hi,\n\nLacking index hints I have a bit of a problem with a slow select.\n\n select\n pic.objectid as pic_objectid\n ,pu.objectid as pu_objectid\n ,ppcr.preproc_me as pul_preproc_me\n ,pp.price_amount as pp_price_amount\n ,pim.aut_item_container as pim_aut_item_container...
[ { "msg_contents": "Hi,\n\nI've read a little bit about join_collapse_limit and from_collapse_limit \nand I see their reason to exist.\n\nA stupid question: in algorithms 101 you're usually told to make a chess \nprogram and then you usually do a width first min max tree. A low level \nopponent would interrupt t...
[ { "msg_contents": "In my postgres log I saw a lot of warning like this.\n\n \n\nWARNING: pgstat wait timeout\n\n \n\nEvery 10 seconds aprox since yesterday and after one year working without\nany warning\n\n \n\nI have postgres 9.0.3 on a Windows Server 2008 R2.\n\n \n\nI have only one big table with aprox. 1,...
[ { "msg_contents": "More information. \n\n \n\nAfter many \"WARNING: pgstat wait timeout\" in the log also appear \"ERROR:\ncanceling autovacuum task \"\n\n \n\n \n\n \n\n \n\nDe: Anibal David Acosta [mailto:aa@devshock.com] \nEnviado el: viernes, 27 de julio de 2012 06:04 p.m.\nPara: pgsql-performance@postgres...
[ { "msg_contents": "Hi,\n\nI am running postgres 9.1.4 on Ubuntu 12.04 and the stats collector is \ngenerating very high IO usage even when nothing appears to be happening \non the system.\n\nI have roughly 150 different databases, each of which is running in 1 of \nroughly 30 tablespaces. The databases are sma...
[ { "msg_contents": "Many of you will be aware that the behaviour of commit_delay was\nrecently changed. Now, the delay only occurs within the group commit\nleader backend, and not within each and every backend committing a\ntransaction:\n\nhttp://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=f11e8be3e81...
[ { "msg_contents": "Using PG 9.0 and given 2 queries (messageq_current is a view on the messageq_table):\n\nselect entity_id from messageq_current\nwhere entity_id = 123456;\n\nselect entity_id from messageq_current\nwhere incoming = true\nand inactive = false\nand staff_ty = 2\nand staff_id = 2\norder by entity...
[ { "msg_contents": "select abbrev,utc_offset,count(*) from pg_timezone_names\nwhere abbrev='EST'\ngroup by abbrev,utc_offset\n\nThere are 12 times zones with 'EST' code, offset = GMT+10. And there are \n8 time zones with 'EST' code, offset= GMT+5 at the same time!\n\nSo how much it is supposed to be?\n\nselect n...
[ { "msg_contents": "I'm having a problem with a query on our production server, but not on a laptop running a similar postgres version with a recent backup copy of the same table. I tried reindexing the table on the production server, but it didn't make any difference. Other queries on the same table are plenty ...
[ { "msg_contents": "Hi,\n\n \n\nI am planning a Postgres migration from 8.4 to 9.1 to be able to leverage\nthe replication features available in the 9.1 version. I would like to\nunderstand the following things in this regard:\n\n \n\n1. Any good documentation which should help in this upgrade.\n\n2. ...
[ { "msg_contents": "Hi, my query is very simple:\n\nselect\n msg_id,\n msg_type,\n ship_pos_messages.pos_georef1,\n ship_pos_messages.pos_georef2,\n ship_pos_messages.pos_georef3,\n ship_pos_messages.pos_georef4,\n obj_id,\n ...
[ { "msg_contents": "Diff of config files is below. default_statistics_target in both is currently at the default of 100, though I'm going to try increasing that for this table as Tom Lane suggested. \n-Midge\n\n----- Original Message ----- \nFrom: Greg Williamson \nTo: pgsql-performance@postgresql.org \nSent: F...
[ { "msg_contents": "Hi\n\nI have an interesting query to be optimized related to this one [1].\n\nThe query definition is: Select all buildings that have more than 1\npharmacies and more than 1 schools within a radius of 1000m.\n\nThe problem is that I think that this query is inherently O(n^2). In\nfact the sol...
[ { "msg_contents": "I found this discussion from 2005 that says you can drop and restore a\ntrigger inside a transaction, but that doing so locks the whole table:\n\nhttp://archives.postgresql.org/pgsql-general/2005-01/msg01347.php\n> From: Jeff Davis\n>\n> It got me curious enough that I tested it, and apparent...
[ { "msg_contents": "On 08/03/2012 05:14 PM, roberthanco@o2.pl wrote:\n\n > It is read-only table so every integer column have an index.\n\nFirst tip: Define the table without the indexes. INSERT your data, and \nonly after it is inserted create your indexes.\n\nSimilarly, if you're making huge changes to the tab...
[ { "msg_contents": "Hi,\n\nOn 3 August 2012 19:14, <roberthanco@o2.pl> wrote:\n> I want to add to table \"Item\" a column \"a_elements\" (array type of big\n> integers) Every record would have not more than 50-60 elements in this\n> column.\n> After that i would create index GIN on this column and typical selec...
[ { "msg_contents": "http://i.imgur.com/sva4H.png\n\nIn the image above, please find the traffic we have seen from our main postgresql node to our cloud backup. \n\nA few notes on that image:\n\na) We're only interested in looking at the blue - outbound - traffic\nb) In general, this pipe is almost exclusively fo...
[ { "msg_contents": "We have PostgreSQL 9.1 running on Centos 5 on two SSDs, one for indices and\none for data. The database is extremely active with reads and writes. We\nhave autovacuum enabled, but we didn't tweak it's aggressiveness. The\nproblem is that after some time the database grows even more than 100% ...
[ { "msg_contents": "Hi there!\n\nWe currently have a database table that's laid out something like this:\n id int\n date1 date\n belongs_to date\n type varchar(1)\n type_fk int\n start_time time\n end_time time\n location_fk int\n department_fk int\n value decimal\n\nWhere each row represents some data...
[ { "msg_contents": "Consider this EXPLAIN ANALYZE output:\n\n\thttp://explain.depesz.com/s/TCi\n\nNote the Bitmap Heap Scan at the bottom claims to be producing 7094 rows, and the Sort above it expects to be processing 7330 rows (the same number the Bitmap Heap Scan expected to produce)... but the sort is actual...
[ { "msg_contents": "According to the docs on cluster:\nif you tend to access some data more than others, and there is an\nindex that groups them together, you will benefit from using CLUSTER\n\nhowever, this doesn't address the situation where you have a\nconditional index. For example, we have certain large tab...
[ { "msg_contents": "Hi,\n\nMy application has high data intensive operations (high number of inserts\n1500 per sec.). I switched my application from MySQL to PostgreSQL. When I\ntake performance comparison report between mysql and pgsql, I found that,\nthere are huge difference in disk writes and disk space take...
[ { "msg_contents": "Hi, \n\nif I have a table that daily at night is deleted about 8 millions of rows\n(table maybe has 9 millions) is recommended to do a vacuum analyze after\ndelete completes or can I leave this job to autovacuum?\n\n \n\nThis table is very active during the day but less active during night\n\...
[ { "msg_contents": "Is seq.setval() \"non transactional\" in the same sense as seq.nextval()\nis? More specifically, suppose I sometimes want to get IDs one-by-one\nusing nextval(), but sometimes I want a block of a thousand IDs. To\nget the latter, I want to do this:\n\n select setval('object_id_seq', next...
[ { "msg_contents": "I have a PostgreSQL 9.1 cluster. Each node is serving around 1,000 queries per second when we are at a 'steady state'.\n\nWhat I'd like to know is the average query time. I'd like to see if query performance is consistent, or if environmental changes, or code releases, are causing it to dri...
[ { "msg_contents": "Howdy. I'm curious what besides raw hardware speed determines the performance of a Seq Scan that comes entirely out of shared buffers… I ran the following on the client's server I'm profiling, which is otherwise idle:\n\nEXPLAIN (ANALYZE ON, BUFFERS ON) SELECT * FROM notes;\n\nSeq Scan on not...
[ { "msg_contents": "Hello List,\n\nI've got a system on a customers location which has a XEON E5504 @ 2.00GHz Processor (HP Proliant)\n\nIt's postgres 8.4 on a Debian Squeeze System running with 8GB of ram:\n\nThe Postgres Performance on this system measured with pgbench is very poor:\n\ntransaction type: TPC-B ...
[ { "msg_contents": "Maybe I should post this in Hackers instead, but I figured I'd start \nhere to avoid cluttering up that list.\n\nSo, we know we have a way of doing a loose index scan with CTEs:\n\nhttp://wiki.postgresql.org/wiki/Loose_indexscan\n\nBut that got me wondering. The planner knows from pg_stats th...
[ { "msg_contents": "Hello,\n\n\nI would like to create some application using triggers and LISTEN/NOTIFY\nframework. I've tested it, and I noticed that performance of NOTIFY\nsignifically decreases with increasing number of distinct NOTIFIES in\ntransaction. \nI found that function AsyncExistsPendingNotify is re...
[ { "msg_contents": "Hello List,\n\nI've got a system on a customers location which has a XEON E5504 @ 2.00GHz Processor (HP Proliant)\n\nIt's postgres 8.4 on a Debian Squeeze System running with 8GB of ram:\n\nThe Postgres Performance on this system measured with pgbench is very poor:\n\ntransaction type: TPC-B ...
[ { "msg_contents": "Hi,\n\nWe have a table which its TOAST table size is 66 GB, and we believe should be smaller.\nThe table size is 472 kb. And the table has 4 columns that only one of them should be toasted.\n\nThe table has only 8 dead tuples, so apparently this is not the problem.\n\nThis table contains a co...
[ { "msg_contents": "From: Liron Shiri\nSent: Sunday, August 26, 2012 3:47 PM\nTo: 'pgsql-performance@postgresql.org'\nSubject: Investigating the reason for a very big TOAST table size\nImportance: High\n\nHi,\n\nWe have a table which its TOAST table size is 66 GB, and we believe should be smaller.\nThe table siz...
[ { "msg_contents": "Hello all,\n\nI have a plpgsql function that takes a few seconds (less than 5) when \nexecuted from psql. The same function, when invoked from java via a \nprepared statement takes a few minutes. There are a few queries in the \nfunction. Out of these, the first query takes input parameters ...
[ { "msg_contents": "Hi,\n\nWe have been using the current version of postgres i.e. 9.1.4 with\nstreaming replication on. While vacuuming we noticed that certain dead rows\nare not getting removed and following debug information is printed:\n\n\"DETAIL: 12560 dead row versions cannot be removed yet.\"\n\nAs per s...
[ { "msg_contents": "Hi all,\n\nI've been trying to apply pg_tgrm for the search-function of my\napplication. The database fits a few times in the available RAM, and is\nmostly read-only.\nPlans, schema and configs in attachment. Postgresql version 9.1.4 on Debian.\n\nWhen just searching in one table, it behaves ...
[ { "msg_contents": "Hi,\n\nI have written some Java code which builds a postgresql function.  That function calls approximately 6 INSERT statements with a RETURNING clause.  I recreate and re-run the function about 900,000 times.  I use JDBC to execute these functions on postgresql 8.3 on Windows.  When I tried ...
[ { "msg_contents": "Hello PG Performance group,\n\nI am doing some runtime experiments in my implementation, which is computing multi-modal range queries for a query point (if you want to know details check the website: www.isochrones.inf.unibz.it).\nThe network is explored using Dijkstra Shortest Path algorithm...
[ { "msg_contents": "Hello,\n\nWe are doing some testing and have a very strange behaviour in the\nperformance obtained with postgres while executing a\nInsert/select/delete transaction.\n\nSoftware and Hardware details:\n\n- O.S = Red hat 6.2\n\n$ uname -a\nLinux localhost.localdomain 2.6.32-220.el6.x86_64 #1 SM...
[ { "msg_contents": "Hi,\n\nI'm having performance issues with a simple table containing 'Nodes'\n(points) from OpenStreetMap:\n\n CREATE TABLE nodes (\n id bigint PRIMARY KEY,\n user_name text NOT NULL,\n tstamp timestamp without time zone NOT NULL,\n geom GEOMETRY(POINT, 4326)\n );\n CREA...