threads
listlengths
1
275
[ { "msg_contents": "Hi all.\n\nI’m running PostgreSQL 9.3.4 and doing stress test of the database with writing only load. The test plan does 1000 transactions per second (each of them does several updates/inserts). The problem is that checkpoint is not distributed over time well. When the checkpoint finishes, th...
[ { "msg_contents": "Hi all,\n\n(Referred here from pgsql-performance)\n\ntl;dr: every time I shut down a database and bring it back up, SSI seems \nto go slower. In order to avoid thousands of SSI aborts due to running \nout of shared memory, I've had to set max_predicate_locks to several \nthousand (2000 is tol...
[ { "msg_contents": "Shaun Thomas <sthomas@optionshouse.com> wrote:\n\n>\n>> these issues tend to get solved through optimization fences.\n>>> Reorganize a query into a CTE, or use the (gross) OFFSET 0 trick.\n>>> How are these nothing other than unofficial hints?\n>>>\n>> Yeah, the cognitive dissonance levels g...
[ { "msg_contents": "I have several related tables that represent a call state. Let's think of\nthese as phone calls to simplify things. Sometimes I need to determine the\nlast time a user was called, the last time a user answered a call, or the\nlast time a user completed a call.\n\nThe basic schema is something...
[ { "msg_contents": "Any rules of thumb for work_mem, maintenance_work_mem, shared_buffer, etc.\nfor a database that DOESN'T anticipate concurrent connections and that is\ndoing lots of aggregate functions on large tables? All the advice I can\nfind online on tuning\n(this<http://wiki.postgresql.org/wiki/Performa...
[ { "msg_contents": "I was given anecdotal information regarding HFS+ performance under OSX as\r\nbeing unsuitable for production PG deployments and that pg_test_fsync\r\ncould be used to measure the relative speed versus other operating systems\r\n(such as Linux). In my performance lab, I have a number of simila...
[ { "msg_contents": "I have a client wanting to test PostgreSQL on ZFS running Linux.\n\nOther than pg_bench are there any other benchmarks that are easy to test?\n\nOne of the possible concerns is fragmentation over time. Any ideas on how\nto fragment the database before running pg_bench ?\n\nAlso there is some ...
[ { "msg_contents": "Hi all,\n\nA few years ago someone said postgres windows can't set working_mem above\nabout 2 GB (www.postgresql.org/message-id/17895.1315869622@sss.pgh.pa.us --\nseems to be same for maintenance_working_mem ). Im finding limit still\npresent.\n\n I'm doing single user, single connection data...
[ { "msg_contents": "Following are the tables\n\n---------------------------------------------------------------------------------------------------------------------------------------------------------------\nCREATE TABLE equipment (\n contract_nr varchar(32) COLLATE \"C\" NULL DEFAULT NULL,\n name varchar(64...
[ { "msg_contents": "Hello all,\n\nI am trying to simplify some of the queries I use with my database creating a big view of all the possible attributes my items can have, the view is rather large:\n\nhttp://pastebin.com/ScnJ8Hd3\n\n\nI thought that Postgresql would optimize out joins on columns I don't ask for w...
[ { "msg_contents": "Hi,\n\nwe are using a mono-column index on a huge table to try to make a quick\n'select distinct ' on the column.\n\nThis used to work fine, but... it does not anymore. We don't know what\nhappened.\n\nHere are the facts:\n\n- request:\nSELECT dwhinv___rfovsnide::varchar FROM dwhinv WHERE dw...
[ { "msg_contents": "Hi Team,\n\nFor last 2 days we are facing issue with replication.\n\nWARNING: page 21 of relation base/1193555/19384612 does not exist\nCONTEXT: xlog redo insert: rel 1663/1193555/19384612; tid 21/1\nPANIC: WAL contains references to invalid pages\nCONTEXT: xlog redo insert: rel 1663/1193...
[ { "msg_contents": "To whom it may concern,\n\nMy question and problem is posted on below site:\nhttp://stackoverflow.com/questions/23147724/postgresql-9-3-on-ubuntu-server-12-04-v-s-ms-sql-server-2008-r2-on-windows-7-ul\n\nWould you please help me to solve my problem.\n\nThank you for your help.\n\nAlex,\nregar...
[ { "msg_contents": "Hello,\n\nIf a table contains simple fields as well as large (hundreds of KiB)\ntext fields, will accessing only the simple fields cause the entire\nrecord data, including the large fields, to be read and unpacked?\n(e.g. SELECT int_field FROM table_with_large_text)\n\nMore details: after thi...
[ { "msg_contents": "Does anyone have some good tricks for mapping IP addresses to ASN numbers in very large volumes?\n\nThis is probably more a \"how would you approach this problem?\" than \"can you help me tweak this query\" \n\nI have a very large number of IP addresses (many millions) that are found in some ...
[ { "msg_contents": "As mentioned here and elsewhere (most recently in \"How can I get the query \nplanner to use a bitmap index scap instead of an index scan ?\" - 8 Mar \n2014), estimation of the relative cost of text search operations using \nGIN-indexed columns sometimes goes awry, particularly when there wil...
[ { "msg_contents": "Hi\nI am going to add a new column to a table for modify_date that needs to be updated every time the table is updated. Is it better to just update application code to set the modify_date to current_time, or create a Before-Update trigger on the table that will update the modify_date column t...
[ { "msg_contents": "Hi\nI am going to add a new column to a table for modify_date that needs to be\nupdated every time the table is updated. Is it better to just update\napplication code to set the modify_date to current_time, or create a\nBefore-Update trigger on the table that will update the modify_date colum...
[ { "msg_contents": "Hi,\n\ni'm working on a strange behaviour of planner,\n\n_PostgreSQL version :_ 8.4\n\n_Stats & vacuum state : _just done, the table is never changed after \ncreation ( Create table as...)\n\n_Here's my query :_\n\nSELECT *cabmnt___rfovsnide*::varchar FROM zcub_258 WHERE \n*cabmnt___rfovsnide...
[ { "msg_contents": "Greetings,\nWe're currently having very poor performance for the following delete query.\nDELETE FROM TopTable WHERE id IN (xx, yy, zz);\n\nWe've observed that it takes around 7 seconds under normal load to for each\nrow that's being from TopTable and several minutes pr deleted row under\nhea...
[ { "msg_contents": "Hi!\n\nHalf a day ago one of our production PG servers (arguably busiest one)\nbecome very slow; I went to investigate the issue and found that it runs\nsimultaneously '(auto)VACUUM ANALYZE recommendations' - largest table on\nthat server - and checkpoint, giving a 100% disk load, that result...
[ { "msg_contents": "Hi All\n\nI have one big Pl/Pgsql function (about 1500 line code) , i can divided it\nto about 5 part and call each script from main script . In this case i\nneed to know which way is faster .\n\nand some question about pgsql :\n\n1- is pgsql engine open one process for each script ?\n2-...
[ { "msg_contents": "*Problem description:*\nAfter a few days of running in my test environment, a query timed out\n(query timeout=4mins). Also in general the queries were taking a lot longer\nthan expected. The workload in my database is a write intensive workload.\nAnd the writes happen in a burst every 5 minut...
[ { "msg_contents": "(I am resending this question after waiting for several hours because my\nprevious mail got stalled probably because I didn't confirm my email\naddress after subscribing. So resending the mail. Sorry if this is causing\na double post.)\n\n*Problem description:*\nAfter a few days of running in...
[ { "msg_contents": "Hello everybody,\n\nI'm experiencing a performance related issue during some validation\nmeasurements.\n\nLet's first of all clarify what kind of problem I am facing.\nI've set up a plain tpc-h database without any additional indexes or\nsomething like that.\nTo get some performance impressio...
[ { "msg_contents": "I've been doing a bit of benchmarking and real-world performance \ntesting, and have found some curious results.\n\nThe load in question is a fairly-busy machine hosting a web service that \nuses Postgresql as its back end.\n\n\"Conventional Wisdom\" is that you want to run an 8k record size ...
[ { "msg_contents": "I'm trying to get to the bottom of a performance issue on a server \nrunning PostgreSQL 9.3.1 on Centos 5. The machine is a dual quad-core \nXeon E5620 with 24GB ECC RAM and four enterprise SATA Seagate \nConstellation ES drives configured as 2 software RAID1 volumes. The \nmain DB is on on...
[ { "msg_contents": "Hi all,   I'm using PostgreSQL 9.3.2 on x86_64-unknown-linux-gnu \n I have a schema where I have lots of messages and some users who might have \nread some of them. When a message is read by a user I create an entry i a table \nmessage_property holding the property (is_read) for that user.   ...
[ { "msg_contents": "olavgg wrote\n> I have a table with 4 indexes =>\n> \"stock_trade_pkey\" PRIMARY KEY, btree (id)\n> \"stock_trade_source_idx\" btree (source_id)\n> \"stock_trade_stock_id_time_idx\" btree (stock_id, \"time\")\n> \"stock_trade_time_idx\" btree (\"time\")\n> \n> This table store...
[ { "msg_contents": "hello list,\n\nsince i got no reply i am afraid i'll go the dump/restore cycle path\nhopping this will solve my problem.\n\nbest regards,\n\n/mstelios\n\n\nStelios Mavromichalis\nCytech Ltd. - http://www.cytech.gr/\nScience & Technology Park of Crete\nfax: +30 2810 31 1045\ntel.: +30 2810 31 ...
[ { "msg_contents": "I am busy reading Gregory Smith' s PostgreSQL 9.0 High Performance and\nwhen the book was written he seemed to me a bit sceptical about SSD's. I\nsuspect the reliability of the SSD's has improved significantly since then.\n\nOur present server (128Gb RAM and 2.5 Tb disk space and 12 CPU co...
[ { "msg_contents": "Hello PostgreSQL community ,\n\nI'm doing benchmark between column store and traditional row-oriented store. I would like to know if there is any way to measure memory consummed by a query execution?\n\nThanks\nMinh,\n\n\n\n\n\n\n\n\n\nHello PostgreSQL community ,\n\n\nI'm doing benchmark bet...
[ { "msg_contents": "Dear Community friends,\n\n \n\nWe are planning to use postgresql 9.3 for building a mobile backend. Can we\nget a benchmark on the level of concurrency that can be supported by\nPostgres 9.3 and it will be able to handle the spike in traffic if the app\ngets popular.\n\n \n\nAny help regardi...
[ { "msg_contents": "Hi all,\n\nIs there a propensity for 9.2.4 to prefer a sort-merge-join, in place of a\nhash join?\n\nI’m fairly sure the answer is yes, but I also want to be sure I’m\ninterpreting the explain output correctly.\n\nI’m comparing behaviour between two systems, which for all intents and\npurpose...
[ { "msg_contents": "Hi all,\n\nFirst some background.\nI have inherited a system that appears to have a lot of logic built into\nviews upon views upon views (and then some more views for good measure).\nIt struck me that the CASE conditions built into those views are causing\npoorer performance than expected – s...
[ { "msg_contents": "Hi all,\n\nSo I was thinking about the following, after experimenting with constraint\nexclusion.\n\nI thought I would see what happens when I do this:\n\n SELECT * FROM ONLY table_a UNION SELECT * FROM table_b;\n\n\nI noticed that despite table_a still having no data in it, the planner has\...
[ { "msg_contents": "Day and night, the postgres stats collector process runs at about 20 MB/sec\noutput. vmstat shows this:\n\n$ vmstat 2\nprocs -----------memory---------- ---swap-- -----io---- -system--\n----cpu----\n r b swpd free buff cache si so bi bo in cs us sy id\nwa\n 0 0 55864 ...
[ { "msg_contents": "Hi,all\nI have a table to save received measure data.\n\n\nCREATE TABLE measure_data\n(\n  id serial NOT NULL,\n  telegram_id integer NOT NULL,\n  measure_time timestamp without time zone NOT NULL,\n  item_id integer NOT NULL,\n  val double precision,\n  CONSTRAINT measure_data_pkey PRIMARY K...
[ { "msg_contents": "OK so we have a query that does OK in 8.4, goes to absolute crap in\n9.2 and then works great in 9.3. Thing is we've spent several months\nregression testing 9.2 and no time testing 9.3, so we can't just \"go\nto 9.3\" in an afternoon. But we might have to. 9.2 seems hopelessly\nbroken here.\...
[ { "msg_contents": "Hi buddies,\n\nI've got a query as below, it runs several times with different execution plan and totally different execution time. The one using hash-join is slow and the one using semi-hash join is very fast. However, I have no control over the optimizer behavior of PostgreSQL database. Or,...
[ { "msg_contents": "On a 9.3.1 server , I have a key busy_table in that is hit by most\ntransactions running on our system. One DB's copy of this table has 60K rows\nand 1/3 of that tables rows can updated every minute.\n\nAutovacuum autovacuum_analyze_scale_factor is set 0.02, so that analyse runs\nnearly every...
[ { "msg_contents": "I am sending this on behalf of my colleague who tried to post to this list last year but without success, then also tried pgsql-performance-owner@postgresql.org but without getting a reply. \n\nI have recently re-tested this in P/G version 9.3.4 with the same results: \n\nHi, \n\nI have creat...
[ { "msg_contents": "Is there any way to get the call stack of a function when profiling\nPostgreSQL with perf ?\nI configured with --enable-debug, I run a benchmark against the system and\nI'm able to identify a bottleneck.\n40% of the time is spent on an spinlock yet I cannot find out the codepath\nthat gets me...
[ { "msg_contents": "I just learned that NFS does not use a file system cache on the client side.\r\n\r\nOn the other hand, PostgreSQL relies on the file system cache for performance,\r\nbecause beyond a certain amount of shared_buffers performance will suffer.\r\n\r\nTogether these things seem to indicate that y...
[ { "msg_contents": "Hi,\n\nI wonder why planner uses Seq Scan instead of Index Scan.\n\nHere is my table (partial):\ncontent.contents\n-------------------------+-----------------------------+-----------------------------------------------------------------\n id | bigint ...
[ { "msg_contents": "Hi all,\n\nI'm using postgresql 9.3.4 on Red Hat Enterprise Linux Server release 6.5 (Santiago) \nLinux 193-45-142-74 2.6.32-431.17.1.el6.x86_64 #1 SMP Fri Apr 11 17:27:00 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux Server specs:\n4x Intel(R) Xeon(R) CPU E7- 4870  @ 2.40GHz (40 physical cores in ...
[ { "msg_contents": "For the past few days, we've been seeing unexpected high CPU spikes in our\nsystem. We observed the following:\n\n- every single CPU spike was preceded by low 'free' memory even though\n'cached' is quite high\n- as soon as we shut down any of our applications which is occupying some\nDB conne...
[ { "msg_contents": "Hello,\n\nSome days ago I upgraded from 8.4 to 9.3, after the upgrade some queries started performing a lot slower, the query I am using in this example is pasted here:\n\nhttp://pastebin.com/71DjEC21\n\n\nConsidering it is a production database users are complaining because queries are much ...
[ { "msg_contents": "Hi, \n\ni just wanted to know if group commit (as described in https://wiki.postgresql.org/wiki/Group_commit ) was committed.\n\nAnd if parallel replication is going to be introduced. \nMysql 5.7 going to have intra-database parallel slave based on group commit on master. \n\n\nHi, i just wan...
[ { "msg_contents": "For the past few days, we've been seeing unexpected extremely high CPU spikes\nin our system. We observed the following: the 'free' memory would go down to\nlower than 300 MB; at that point, 'cached' slowly starts to go down, and\nthen CPU starts to go way up. \n\nIt's almost as if the OS was...
[ { "msg_contents": "Hello,\n\nI am using Pgbadger to analyze the postgresql database log recently and noticed a section \"Prepared queries ratio\". For my report, it has:\n\n1.03 as Ratio of bind vs prepare\n0.12% Ratio between prepared and \"usual\" statements\n\nI'm trying to understand what the above metrics ...
[ { "msg_contents": "Hello,\n\nI'm currently testing some queries on data which I had imported from an \nother database-system into Postgres 9.4.\n\nAfter the import I did create the indexes, run an analyze and vacuum. I \nalso played a little bit with seq_page_cost and random_page_cost. But \ncurrently I have no...
[ { "msg_contents": "Hi, I'm trying to investigate a performance problem.\n\nWe have a large database (over 1TB) running on a server with 160GB of RAM\nand 32 cores (Xeon E5-2650). The database files are on a NetApp mount.\n\nThe software is Postgres 9.3.1 on Ubuntu 12.04, Linux 3.2.0-38-generic.\n\nGenerally, wh...
[ { "msg_contents": "Well it's me again, with another performance regression. We have this query:\n\nSELECT *\nFROM users u\nWHERE (u.user_group_id IN\n (SELECT ug.id\n FROM user_groups ug, pro_partners p\n WHERE ug.pro_partner_id = p.id\n AND p.tree_sortkey BETWEEN\nE'00000000000101010000010001...
[ { "msg_contents": "Hi,\n\nI have a query that's pulling data for another system using COPY (query) to\nSTDOUT CSV on a 9.2.4 db (we're in the process of upgrading to 9.3). The\nfinal csv file is large (~75GB, 86 million rows). The query is also large,\nconsisting of one table (86 million rows) left joined to ...
[ { "msg_contents": "Hi all. This might be tricky in so much as there’s a few moving parts (when isn’t there?), but I’ve tried to test the postgres side as much as possible.\n\nTrying to work out a potential database bottleneck with a HTTP application (written in Go):\nPages that render HTML templates but don’t p...
[ { "msg_contents": "Does anybody have a similar setup:\n\n[a] 1 physical machine with half a terabyte of RAM, Xeon E7- 8837 @\n2.67GHz, huge ZFS pools + ZIL + L2ARC\n[b] master DB pg9.3 postgres_fdw with read/write capabilities, with\ntablespaces and WAL on separate zpools, archiving enabled (for zfs\nsnapshots...
[ { "msg_contents": "Here are my kernel settings\n\nkernel.shmmax = 10737418240\n\n# Maximum total size of all shared memory segments in pages (normally 4096\nbytes)\nkernel.shmall = 2621440\nkernel.sem = 250 32000 32 1200\n\nThey are actually set...\n\nsysctl -a | grep shm\nkernel.shmmax = 10737418240\nkernel.sh...
[ { "msg_contents": "Hi group,\n\nWe've found huge pgstat.stat file on our production DB boxes, the size is over 100MB. autovacuum is enabled. So my question would be:\n\n1. What's a reasonable size of pgstat.stat file, can it be estimated?\n\n2. What's the safest way to reduce the file size to allevi...
[ { "msg_contents": "Hello,\nI already post my question in the General Mailing list, but without \nsucceed so I try this one that seems to me more specialized.\nMy question is about GIST index.\nI made my own index to handle specific data and operators. It works \npretty fine but I wonder if it was possible to op...
[ { "msg_contents": "Hi,\nI’m running a search engine for cars. It’s backed by a postgresql 9.3 installation. \n\nNow I’m unsure about the best approach/strategy on doing index optimization for the fronted search.\n\nThe problem:\n\nThe table containing the cars holds a around 1,5 million rows. People that search...
[ { "msg_contents": "Sorry for the semi-newbie question...\n\nI have a relatively sizable postgresql 9.0.2 DB with a few large tables \n(keep in mind \"large\" is relative, I'm sure there are plenty larger out \nthere).\n\nOne of my queries that seems to be bogging-down performance is a join \nbetween two tables ...
[ { "msg_contents": "I have a nice toy to play with: Dell R920 with 60 cores and 1TB ram [1].\n\nThe context is the current machine in use by the customer is a 32 core \none, and due to growth we are looking at something larger (hence 60 cores).\n\nSome initial tests show similar pgbench read only performance to ...
[ { "msg_contents": "The simplified scene: \nselect slowfunction() from a order by b limit 1\nis slow than\nselect slowfunction() from ( select * from a order by b limit 1)\nif there are many records in table 'a'\n\nThe real scene:\n\nfunction ST_Distance_Sphere is slow than ST_Distance, the query:\n\nSELECT ST_...
[ { "msg_contents": "Hello Everyone ...\n\nWe have 6 PG 9.1.12 installation, one master (Ubuntu 10.04), one slony\nslave(Ubuntu 10.04), and four streaming replica (2 on Ubuntu 10.04 and 2 on\nRHEL 6.5 (Santiago) which lies on different datacenter). All Ubuntu is on\nsame datacenter. Master send wal archive to slo...
[ { "msg_contents": "Hi all\n\nThe docs say:\n\n\"For best optimization results, you should label your functions with the\nstrictest volatility category that is valid for them.\"\n\nhttp://www.postgresql.org/docs/current/interactive/xfunc-volatility.html\n\n... but I recall discussion here suggesting that in fact...
[ { "msg_contents": "Hello,\n\nHas anyone some experience using defragmentation tools on Linux against tablespaces ?\n\nwe are facing fragmentation problems with postgres instances having a few TB of data.\n( RAID 5 )\n\nI/O througput decreased from 300MB/s to 160.\n\n\n- We first moved some schemas to separate s...
[ { "msg_contents": "Hi, I'm in the process of attempting to tune some slow queries. I came \nacross a scenario where I'm not entirely sure how I \nmight figure out why a node is taking awhile to process. I'm not concerned \nwith the query itself, we are working to figure \nout how we can make it faster. But I wa...
[ { "msg_contents": "Hi,\n\nWe've experienced a DB issue yesterday and after checked the log found that the peak sessions is 3000 while the peak DB connections is only around 30. The application is having problem of pulling data but no warnings in DB log as it doesn't exceed max_connections.\n\n\nHow could this h...
[ { "msg_contents": "We have two database servers running streaming replication between them:\n\nPrimary server\n==============\nOS: Linux version 2.6.18-371.3.1.el5\nPostgreSQL: 9.1.11\n\n\nHOT standby server\n==================\nOS: Linux version 2.6.32-431.11.2.el6.x86_64\nPostgreSQL: 9.1.11\n\nSince July 1, o...
[ { "msg_contents": "​​\n​​\n​​\n​​\n​Hello,\n\nI have a fact table ( table and indexes are bellow ) that will probably get\narround 2 billion rows.\n\n- Can postgresql support such table (this table is the fact table of a\ndatamart -> many join query with dimensions tables) ?\n- If yes, I would like to test (say...
[ { "msg_contents": "Hi,\n\nI've got a table with GIN index on integer[] type. While doing a query with filter criteria on that column has GIN index created, it's not using index at all, still do the full table scan. Wondering why?\n\nTable is analyzed.\n\ndev=# \\d+ booking_weekly\n Ta...
[ { "msg_contents": "I am using a Pentaho process to access the database and select the appropriate information to update the DB tables and records. I am trying to select the previous subscription key in order to update the factable for any records that have the previous key to have the current subscription key....
[ { "msg_contents": "Is there any way that I can build multiple indexes on one table without having to scan the table multiple times? For small tables, that's probably not an issue, but if I have a 500 GB table that I need to create 6 indexes on, I don't want to read that table 6 times.\nNothing I could find in t...
[ { "msg_contents": "Hello,\n\nI'm working on Postgres 9.3.4 for a project.\n\nWe are using Scala, Akka and JDBC to insert data in the database, we have\naround 25M insert to do which are basically lines from 5000 files. We issue\na DELETE according to the file (mandatory) and then a COPY each 1000 lines\nof that...
[ { "msg_contents": "Hi there,\n\nI am trying to optimize a simple query that returns first 100 rows that\nhave been updated since a given timestamp (ordered by timestamp and id\ndesc). If there are several rows with the same timestamp I need to a\nsecond condition, that states that I want to return rows having ...
[ { "msg_contents": "Dear all,\n\nIs it possible to estimate btree index size on text field before\ncreating it. For example i have a table like this:\n\nfortest=# \\d index_estimate\ni integer\nsomestring text\n\nThis is avg bytes in text field\nfortest=# select round(avg(octet_length(somestring))) from...
[ { "msg_contents": "Hi,\n\nI have a table partitioned with about 60 children tables. Now I found \nthe planning time of simple query with partition key are very slow.\n# explain analyze select count(*) as cnt from article where pid=88 and \nhash_code='2ca3ff8b17b163f0212c2ba01b80a064';\nQUERY PLAN\n------------...
[ { "msg_contents": "Hello PGSQL performance community,\n[By way of introduction, we are a TPC subcommittee that is developing a benchmark with cloud-like characteristics for virtualized databases. The end-to-end benchmarking kit will be publicly available, and will run on PGSQL]\n\nI am running into very high fa...
[ { "msg_contents": "Hi all.\n\nI have a database with quiet heavy writing load (about 20k tps, 5k of which do writes). And I see lots of writing I/O (I mean amount of data, not iops) to this database, much more than I expect. My question is how can I debug what for backend processes do lots of writes to the $PGD...
[ { "msg_contents": "Hello guys.\n\n \n\nMy issue kind of hits multiple topics, but the main question is about\nperformance. I think you need to understand the background a little bit to\nbe able to help me. So I will firstly define the problem and my solutions to\nit and place the questions for you to the end of...
[ { "msg_contents": "Explained here:\nhttps://www.usenix.org/system/files/conference/fast13/fast13-final80.pdf\n\n13 out of 15 tested SSD's had various kinds of corruption on a power-out.\n\n(thanks, Neil!)\n\n-- \nJosh Berkus\nPostgreSQL Experts Inc.\nhttp://pgexperts.com\n\n\n-- \nSent via pgsql-performance mai...
[ { "msg_contents": "Greetings,\n\nAny help regarding a sporadic and mysterious issue would be much appreciated.\n\nA pgsql function for loading in data is occasionally taking 12+ hours\nto complete versus its normal 1-2 hours, due to a slow down at the\nCREATE TEMP TABLE step. During slow runs of the function, t...
[ { "msg_contents": "Hi All,\n\nUsing PostgreSQL 9.3 on Linux Red-Hat platform.\n\nHow would I go about setting a default format for the timestamp? I've set the default for TimeZone to UTC.\n\nThank you in advance for any information.\n\nDF\n\n\n-- \nSent via pgsql-admin mailing list (pgsql-admin@postgresql.org)...
[ { "msg_contents": "Hi all.   Running version: on=> select version();\n                                                   version\n \n------------------------------------------------------------------------------------------------------------\n  PostgreSQL 9.3.2 on x86_64-unknown-linux-gnu, compiled by gcc (Ubun...
[ { "msg_contents": "Hello,\n\nsuppose you have two very simple tables with fk dependency, by which we join them\nand another attribute for sorting\n\nlike this\nselect * from users join notifications on users.id=notifications.user_id ORDER BY users.priority desc ,notifications.priority desc limit 10;\n\nVery ty...
[ { "msg_contents": "Folks,\n\nSo one thing we tell users who have chronically long IN() lists is that\nthey should create a temporary table and join against that instead.\nOther than not having the code, is there a reason why PostgreSQL\nshouldn't do something like this behind the scenes, automatically?\n\n-- \n...
[ { "msg_contents": "hi ,everybody\n\nwhy does the planer estimate 200 rows when i use order by and group by .\nevn:postgresql 8.4 and 9.3\n\ntable:\nCREATE TABLE a\n(\n id serial NOT NULL,\n name character varying(20),\n modifytime timestamp without time zone,\n CONSTRAINT a_pk PRIMARY KEY (id)\n)\n\nSQL:\ne...
[ { "msg_contents": "I create a table and insert some items.\nI create index on every column.\nAnd I execute select, I thought it should use index scan, but it is still seq scan. Why PG do not use index scan?\n\ncreate table v_org_info(\norg_no varchar2(8), org_nm varchar2(80),\norg_no_l1 varchar2(8), org_nm_l1 v...
[ { "msg_contents": "Hi,\n\nI have a tool that is trying to collect stats from postgres (v9.1.13).\npostgres attempts to allocate more memory than is allowed:\n\nSELECT mode, count(mode) AS count FROM pg_locks GROUP BY mode ORDER BY mode;\nERROR: invalid memory alloc request size 1459291560\n\nMemory-related con...
[ { "msg_contents": "Hi,\n\nI have a question about partition table query performance in postgresql, it's an old version 8.3.21, I know it's already out of support. so any words about the reason for the behavior would be very much appreciated.\n\nI have a partition table which name is test_rank_2014_monthly and i...
[ { "msg_contents": "I have a table called stop_event (a stop event is one bus passing one bus\nstop at a given time for a given route and direction), and I'd like to get\nthe average interval for each stop/route/direction combination.\n\nA few hundred new events are written to the table once every minute. No\nro...
[ { "msg_contents": "Hello,\n\nTrying to insert into one table with 1 million records through java JDBC \ninto psql8.3. May I know (1) or (2) is better please?\n\n(1) set autocommit(true)\n(2) set autocommit(false)\n commit every n records (e.g., 100, 500, 1000, etc)\n\nThanks a lot!\nEmi\n\n\n\n\n-- \nSent ...
[ { "msg_contents": "hi, recently i change the hardware of my database 32 cores up to 64 \ncores and 128GB Ram, but the performance is the same. Perhaps i have to \nchange any parameter in the postgresql.conf?.\n\nThanks by your help\n\n-- \nAtentamente,\n\n\nJEISON BEDOYA DELGADO\n.\n\n\n--\nNOTA VERDE:\nNo imp...
[ { "msg_contents": "Hi pgsql\r\n\r\n\r\nhttp://activebillion.com/bring.php?fzuvceubqu3101hcvfvcq\r\n\r\n\r\n\r\n\r\n\r\nRich\r\n\r\n\n-- \nSent via pgsql-performance mailing list (pgsql-performance@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postgresql.org/mailpref/pgsql-performance\n", ...
[ { "msg_contents": "Hi all\n\nI have the following table with 10+ million records:\n\ncreate table ddetail (\nddet_id serial,\nco_id integer,\nclient_id integer,\ndoc_no varchar,\nline_id integer,\nbatch_no integer,\namount NUMERIC , \n...,\nconstraint PRIMAR KEY ( co_id , client_id , doc_no , line_id, ddet_i...
[ { "msg_contents": "Any suggestions on a query rewrite to speed this poor performing query up.\n\nwork_mem=164MB\n\nThanks\n\nexplain (analyze on, buffers on) select * from SARS_IMPACT_REPORT this_\n where this_.model_uid=1\n and this_.source_date_time between '2014-08-08 19:21:08.212'::timestamp without tim...
[ { "msg_contents": "Hi ,\n\nI'm tweaking table layout to get better performance of query. One table doesn't use hstore but expand all metrics of cha_type to different rows. The other table has hstore for metrics column as cha_type->metrics so it has less records than the first one.\n\nI would be expecting the qu...
[ { "msg_contents": "We use benchmarksql to start tpcc test in postgresql 9.3.3.\nBefore test we set benchmarksql client number about 800. And we increase the hash partitions from 16 to 1024 , in order to reduce the hash partition locks competition.\nWe expect that after increase the number of partitions, reduces...
[ { "msg_contents": "Hello there,\r\nI use PostgreSQL 9.1\r\n\n\nThe scenario is:\r\n\n\nI receive heavy insertion into Table1 (about 100 rows a sec). For \neach new entry, I have to check it with the previous and next ones \n(check if those items are inside an area using ST_DWithin). Depending on\n the result, w...