threads
listlengths
1
275
[ { "msg_contents": "Hi,\n\ni am using libpq library and postgresql 8.4 for my linux application running\non ARM with 256 MB. I am just doing:\n\nPQconnectdb();\nPQexec(INSERT INTO table1 ....); (0.009661 sec.)\nPQexec(INSERT INTO table1 ....); (0.004208 sec.)\n\nPQexec(INSERT INTO table2 ....); (0.007352 sec.)\n...
[ { "msg_contents": "Hello,\n\n(Apologies if this is an obvious question. I have gone through the archives\nwithout seeing something that directly ties to this.)\n\nWe are running Postgresql on a 64b RHEL5.2 64b server. \"Uname -a\":\n--------------Linux xxxxxxx 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT\n200...
[ { "msg_contents": "Hello,\n\n\n(Apologies for any possible duplication of this email.)\n\n\n(Also, apologies if this is an obvious question. I have gone through the\narchives without seeing something that directly ties to this.)\n\nWe are running Postgresql on a 64b RHEL5.2 64b server. \"Uname -a\":\n--------...
[ { "msg_contents": "I am doing some research that will hopefully lead to replacing a big \nOracle installation with a set PostgreSQL servers.\n\nThe current Oracle installations consists of multiple of RAC clusters \nwith 8 RAC nodes each. Each RAC node has 256gb of\nmemory (to be doubled soon).\nThe nature of o...
[ { "msg_contents": "Is there any guidelines to sizing work_mem, shared_bufferes and other\nconfiguration parameters etc., with regards to very large records? I\nhave a table that has a bytea column and I am told that some of these\ncolumns contain over 400MB of data. I am having a problem on several\nservers r...
[ { "msg_contents": "Hi,\n\ni am using libpq library and postgresql 8.4 for my linux application running on ARM with 256 MB. I am just doing:\n\nPQconnectdb();\nPQexec(INSERT INTO table1 ....); (0.009661 sec.)\nPQexec(INSERT INTO table1 ....); (0.004208 sec.)\n\nPQexec(INSERT INTO table2 ....); (0.007352 sec.)\nP...
[ { "msg_contents": "Hello folks,\n\nThis isn't really a problem, so much as an observation of just how much \nthe internals have changed over the years. We've got an older version \nwe're hoping to upgrade soon, and a developer asked me to optimize this \ntoday:\n\nSELECT order_id\n FROM order\n WHERE order_i...
[ { "msg_contents": "I have run into issue where the query optimizer is choosing the wrong\nexecution plan when I'm trying to join two large tables that have been\npartitioned. I would really appreciate it if someone could help me out\nthis. I don't know whether I've found a bug in the optimizer, or whether\nth...
[ { "msg_contents": "\nHello,\n\nWe are running a PostgreSQL 8.4 database, with two tables containing a\nlot (> 1 million) moderatly small rows. It contains some btree indexes,\nand one of the two tables contains a gin full-text index.\n\nWe noticed that the autovacuum process tend to use a lot of memory,...
[ { "msg_contents": "Dear all ,\ncould any one help me?\nwhen i use pgadmin to exceute a query it shows the total time for query ..\nsuch as \n(select * form table_name.........)query total time is for example 100 ms\ni want to know the command that can retentive the query total time \nin millisecond \n\nif i con...
[ { "msg_contents": "Dear all ,\ncould any one help me?\nwhen i use pgadmin to exceute a query it shows the total time for query ..\nsuch as \n(select * form table_name.........)query total time is for example 100 ms\ni want to know the command that can retetive the query total time in millisecond \n\nif i connec...
[ { "msg_contents": "Dear all ,\ncould any one help me?\nwhen i use pgadmin to exceute a query it shows the total time for query ..\nsuch as \n(select * form table_name.........)query total time is for example 100 ms\ni want to know the command that can retetive the query total time in millisecond \n\nif i connec...
[ { "msg_contents": "Dear all ,\ncould any one help me?\nwhen i use pgadmin to exceute a query it shows the total time for query ..\nsuch as \n(select * form table_name.........)query total time is for example 100 ms\ni want to know the command that can retetive the query total time in millisecond \n\nif i connec...
[ { "msg_contents": "I know this has been discussed various times...\n\nWe are maintaining a large multi tenant database where *all* tables have \na tenant-id and all indexes and PKs lead with the tenant-id.\nStatistics and counts for the all other columns are only really \nmeaningful within the context of the te...
[ { "msg_contents": "Hello,\nI'm a postgres newbie and am wondering what's the best way to do this.\n\nI am gathering some data and will be inserting to a table once daily.\nThe table is quite simple but I want the updates to be as efficient as\npossible since\nthis db is part of a big data project.\n\nSay I have...
[ { "msg_contents": "Hi, all.\n\nI have a query, looking like this:\nSELECT\n\tpub_date\nFROM\n\ttubesite_object\n\tINNER JOIN tubesite_image\n\t\tON tubesite_image.object_ptr_id = tubesite_object.id\nWHERE\n\ttubesite_object.site_id = 8\n\tAND tubesite_object.pub_date < E'2011-07-12 13:25:00'\nORDER BY\n\ttubesi...
[ { "msg_contents": "shared_buffers is big enough to hold the entire database, and there is plenty of extra space. (verified with PG_buffercache) \nSo i don't think that is the reason. \n\n\nTom Lane <tgl@sss.pgh.pa.us> schrieb:\n\n>Jeff Janes <jeff.janes@gmail.com> writes:\n>> On 7/12/11, lars <lhofhansl@yahoo.c...
[ { "msg_contents": "Hi list,\n\nMy employer will be donated a NetApp FAS 3040 SAN [1] and we want to run\nour warehouse DB on it. The pg9.0 DB currently comprises ~1.5TB of\ntables, 200GB of indexes, and grows ~5%/month. The DB is not update\ncritical, but undergoes larger read and insert operations frequently.\...
[ { "msg_contents": "Hi all,\nhere is my postgresql configuration:\n\n\"version\";\"PostgreSQL 9.0.3 on amd64-portbld-freebsd8.0, compiled by GCC cc\n(GCC) 4.2.1 20070719 [FreeBSD], 64-bit\"\n\"bytea_output\";\"escape\"\n\"checkpoint_segments\";\"64\"\n\"client_encoding\";\"UNICODE\"\n\"effective_cache_size\";\"...
[ { "msg_contents": "Hi,\n\nIs BBU still needed with SSD? \n\nSSD has its own cache. And in certain models such as Intel 320 that cache is backed by capacitors. So in a sense that cache acts as a BBU that's backed by capacitors instead of batteries. \n\nIn this case is BBU still needed? If I put 2 SSD in software...
[ { "msg_contents": "I have 2 small servers, one a fairly new server with a x3450 (4-core \nwith HT) cpu running at 2.67GHz and an older E5335 (4-core) cpu running \nat 2GHz.\n\nI have been quite surprised how the E5335 compares very closely to the \nx3450, but maybe I have tested it wrongly.\n\nhere's the CPUINF...
[ { "msg_contents": "As one of the people recommending early investigation of Intel's recent \n320 series drives, I've been following the news around them too. It \nlooks like there's one serious firmware bug that shows up on these so \nfar, what's being called the \"8MB bug\". Basically, under some \ncondition...
[ { "msg_contents": "next question.\n\nI have a product table with a 'category\" column that I want to\nmaintain in a separate table.\n\nCREATE TABLE products (\n product_id INTEGER DEFAULT\nnextval('product_id_seq'::regclass) NOT NULL,\n name VARCHAR(60) NOT NULL,\n c...
[ { "msg_contents": "I have a problem with poor query plan.\n\nMy PostgreSQL is \"PostgreSQL 8.4.8, compiled by Visual C++ build 1400,\n32-bit\" installed by EnterpriseDB installer on Windows 7 32 bit.\n\nSteps to reproduce:\n\nStart with fresh installation and execute the following:\n\ndrop table if exists small...
[ { "msg_contents": "Dear all,\n\nI am using Postgres-8.4.2 on Windows system.\nI have 2 databases in my postgres database ( globedatabase (21GB), \nurldatabase).\n\nI restore globedatabase from a .sql file on yesterday morning.I insert \nsome new data in that database.\nIn the evening, by mistake I issued a *dro...
[ { "msg_contents": "Dear all\n\nfirst of all congratulations on your greak work here since from time to time\ni 've found many answers to my problems. unfortunately for this specific\nproblem i didnt find much relevant information, so i would ask for your\nguidance dealing with the following situation:\n\nwe hav...
[ { "msg_contents": "Hi,\nI want to configure Logging of postgres in such a way that messages of\ndifferent severity should be logged in different log file. eg: all ERROR\nmessage should be written in error-msg.log file while all NOTICE mesage\nshould be written in notice-msg.log file.\n\nIn order to do that what...
[ { "msg_contents": "Hi guys,\n\nI met with the problem that when I was using WITH clause to reuse a subquery, I got a huge performance penalty because of query planner.\n\nHere are the details, the original query is \n\nEXPLAIN ANALYZE WITH latest_identities AS\n(\n SELECT DISTINCT ON (memberid) memberid, use...
[ { "msg_contents": "Hi,\n\nI am a Noob with db tuning and trying to analyze pg_stats_brwriter data\n\ncheckpoints_timed | checkpoints_req | buffers_checkpoint | buffers_clean |\nmaxwritten_clean | buffers_backend | buffers_alloc\n\n\n-------------------+-----------------+--------------------+---------------+----...
[ { "msg_contents": "Hello.\n\nI've found strange behavior of my pg installation (tested both 8.4 and\n9.0 - they behave same) on FreeBSD platform.\nIn short - when some table have PK on bigint field - COPY to that\ntable from file becomes slower and slower as table grows. When table\nreaches ~5GB - COPY of 100k ...
[ { "msg_contents": "Dear all,\n\nI research a lot on Postgresql Performance Tuning and find some \nparameters to increase the select performance in postgresql.\nBy increasing shared_buffers,effective_cache_size ,work_mem, \nmaintainance etc , we can achieve performance in select queries.\n\nBut In my application...
[ { "msg_contents": "Hello all,\nWe are planning to test one of our products, which works with Oracle, on \nPostgreSQL. The database size is about 100 GB. It is a product with a \nnot-so-high load ( about 10 tps - mostly read). My doubts are about \nPostgreSQL settings. For Oracle, we give about 4 GB SGA (shared...
[ { "msg_contents": "Can a transaction committed asynchronously report an error, duplicate key or\nsomething like that, causing a client with a OK transaction but server with\na FAILED transaction.\n\n \n\nThanks\n\n \n\n\nCan a transaction committed asynchronously report an error, duplicate key or something like...
[ { "msg_contents": "Hello everyone,\n\nThis is my first post on this list, I tried to look after possible solutions in the archive, as well as in google, but I could not find an explanation for such a specific situation.\n\nI am facing a performance problem connected with Postgres Tsearch2 FTS mechanism.\n\nHere...
[ { "msg_contents": "Dear all,\n\nJust want to know which join is better for querying data faster.\n\nI have 2 tables A ( 70 GB ) & B ( 7 MB )\n\nA has 10 columns & B has 3 columns.Indexes exist on both tables's ids.\n\nselect p.* from table A p, B q where p.id=q.id\n\nor\n\nselect p.* from table B q , A p where ...
[ { "msg_contents": "Hi,\n\nI'm looking for a hint how array access performs in PostgreSQL in respect to performance. Normally I would expect access of a 1-dimensional Array at slot i (array[i]) to perform in constant time (random access).\n\nIs this also true for postgres' arrays?\n\nMay concrete example is a 1-...
[ { "msg_contents": "Hi All ,\n\n\nCan you please help me out with the following questions .\n\n\n\nOur application is running on Postgres 7.4.X . I agree that this is a very\nold version of Postgres and we should have upgraded . The issue that we\nfaced is that\n\n\n\n1 . There was a system crash due to a hardwa...
[ { "msg_contents": "I had done some testing for my application (WIP) and I had executed same SQL\nscript and queries on real physical 64-bit Windows 7 and on virtualized\n64-bit CentOS 6.\n\nBoth database servers are tuned with real having 8 GB RAM and 4 cores,\nvirtualized having 2 GB RAM and 2 virtual cores.\n...
[ { "msg_contents": "Dear all,\n\n From the last few days, I researched a lot on Postgresql Performance \nTuning due to slow speed of my server.\nMy application selects data from mysql database about 100000 rows , \nprocess it & insert into postgres 2 tables by making about 45 connections.\n\nI set my postgresql ...
[ { "msg_contents": "In this example it looks to me like the planner is choosing a Seq Scan resulting in 18x running time compared to running it with enable_seqscan = 'off'. Adding more indexes to public.gene (please see below) seemed to make things worse. I definitely have run VACUUM ANALYZE on everything, man...
[ { "msg_contents": "Hey,\n\n I'm a new user of PostgreSQL. I found one of my tables is taking unexpectedly large space:\n\nselect pg_size_pretty(pg_relation_size('archive_files'));\n pg_size_pretty\n----------------\n1113 MB\nThe structure of this table is like:\n Column | Type | Modifiers\n---...
[ { "msg_contents": "hi, We recently bought a 4 8core 128G memory database server and I am setting it up to replace our old 4 4cores 128G memory database server as a master. The memory related settings that we use on the old machine seem a bit wrong according to the experts on IRC:\nmax_connections = 600shared_bu...
[ { "msg_contents": "I have postgresql 9.0.1 on windows 2003 ent with 6GB ram, 4 disk SATA RAID\n10.\nI am running SymmetricDS to replication over WAN. But yesterday there was a\nbig problem, i updated alot of rows and query to gap data of SymmetricDS run\nverry very slowly.\n\nHere is my postgresql.conf to tunni...
[ { "msg_contents": "[Please don't top-post; it makes the discussion hard to follow.]\n \n \ntuanhoanganh wrote:\n> Greg Williamson wrote:\n \n>> Did you run an analyze on the table after building the new\n>> indexes? The row estimates seem to be off wildly, although that\n>> may be a symptom of something else\n...
[ { "msg_contents": "\"Kevin Grittner\" wrote:\n \n> WITH x AS SELECT * FROM x ORDER BY d.data_id;\n \nIt ate part of what I had on that line. (Note to self: don't use\nangle-bracketing in posts.)\n \nTrying again with different punctuation:\n \nWITH x AS [original query] SELECT * FROM x ORDER BY d.data_id;\n \...
[ { "msg_contents": "Hello PG perf junkies, \n\n\nSorry this may get a little long winded. Apologies if the formatting gets\ntrashed. \n\n\n\nBackground:\n\nI have been setting up some new servers for PG and I am getting some odd\nnumbers with zcav, I am hoping a second set of eyes here can point me in the\nright...
[ { "msg_contents": "\n\n> -----Original Message-----\n> From: mark [mailto:mark@sm-a.net]\n> Sent: Monday, August 08, 2011 12:15 AM\n> To: 'pgsql-performance@postgresql.org'\n> Subject: XFS options and benchmark woes\n> \n> Hello PG perf junkies,\n> \n> \n> Sorry this may get a little long winded. Apologies if t...
[ { "msg_contents": "Hello PG perf junkies, \n\n\nSorry this may get a little long winded. Apologies if the formatting gets\ntrashed. Also apologies if this double posts. (I originally set it yesterday\nwith the wrong account and the message is stalled - so my bad there) if\nsomeone is a mod and it's still in the...
[ { "msg_contents": "Dear All,\n\nI have some problems with regexp queries performance - common sense tells me\nthat my queries should run faster than they do.\n\nThe database - table in question has 590 K records, table's size is 3.5GB. I\nam effectively querying a single attribute \"subject\" which has an avera...
[ { "msg_contents": "Greetings,\n\nI've been hitting a \"out of memory error\" during autovacuum of\nrelatively large tables (compared to the amount of RAM available). I'm\ntrying to trace the cause of the issue; the answer is somewhere below\nand I don't know how to interpret the data. I can solve the issue\nrig...
[ { "msg_contents": "Hi all,\n\nI'm testing Streamin replication with one hot standby node and I'm \nexperiencing high delay of hot standby node.\n\nWhen I reach aprox. 50 transactions per second where every transaction \nincludes only simple \"UPDATE status SET number = number + 1 WHERE name = \n'iterations'\", ...
[ { "msg_contents": "I have PostgreSQL 8.4.8 on Ubuntu Linux x64. Server is a Core i7 950 with 6GB of RAM. 2GB of RAM us used by Java, some small amount by the kernel / services and the rest is available to PostgreSQL. Hard drive is a single 7200 RPM SATA 1TB Caviar Black HDD. No other applications / processe...
[ { "msg_contents": "I have PostgreSQL 8.4.8 on Ubuntu Linux x64. Server is a Core i7 950 with 6GB of RAM. 2GB of RAM us used by Java, some small amount by the kernel / services and the rest is available to PostgreSQL. Hard drive is a single 7200 RPM SATA 1TB Caviar Black HDD. No other applications / processe...
[ { "msg_contents": "\nhi pgpool Expert\n\nmy architecture as follows: \nMaster/Slave with Streaming Replication and pgpool-II \nversion of pgpool-II is pgpool-II.3.0.4 \nversion of PostgreSQL is 9.0.2 \n\nI am using pgpool works as master/slave sub mode stream\n\nand pgpool key configuration is:\n===============...
[ { "msg_contents": "Hello,\n\nI need to compare quiery execution : I have 2 tables partitioned by Datex (\ndaily):\n\nsummary_daily (\n counter | bigint\n datasource_id | integer\n application_id | integer \n action | character(1) \n srcreporter_id | integer \n destreporter_id | integ...
[ { "msg_contents": "Hi,\n\nI've run a lot of pgbench tests recently (trying to compare various fs,\nblock sizes etc.), and I've noticed several really strange results.\n\nEeach benchmark consists of three simple steps:\n\n1) set-up the database\n2) read-only run (10 clients, 5 minutes)\n3) read-write run (10 cli...
[ { "msg_contents": "News update for anyone else who's trapped like me, waiting for a fix to \nthe Intel 320 SSD bug where they can truncate themselves to 8MB. Over \nthe weekend Intel has announced a firmware fix for the problem is done, \nand is due to ship \"within the next two weeks\": \nhttp://communities....
[ { "msg_contents": "Hi,\nI encountered a problem while trying to improve the performance of a certain\nselect query I have made.\nhere is a simplified code for the function I am using\n\nCREATE OR REPLACE FUNCTION test_func(STR text)\nRETURNS integer AS\n$BODY$\n\nbegin\n\ninsert into plcbug(val) values('begin t...
[ { "msg_contents": "Hope all is well. I have received tremendous help from this list prior and therefore wanted some more advice. \n\nI bought some new servers and instead of RAID 5 (which I think greatly hindered our writing performance), I configured 6 SCSI 15K drives with RAID 10. This is dedicated to /var/li...
[ { "msg_contents": "Hi everyone,\n\nI'm using postgres 9.0.3, and here's the OS I'm running this on:\nLinux 2.6.18-238.12.1.el5xen #1 SMP Tue May 31 14:02:29 EDT 2011 x86_64\nx86_64 x86_64 GNU/Linux\n\nI have a fairly straight forward query. I'm doing a group by on an ID, and\nthen calculating some a statistic ...
[ { "msg_contents": "Hello,\n\nI have an old application that was written on Postgres 8.1.\nThere are a few hundreds tables, 30-40 columns per table, hundreds of\nviews, and all the sql is inside java code.\n\nWe are moving it to 8.4, it seems to be VERY slow.\nThere are 20-30 tables transactions - the objects ...
[ { "msg_contents": "I'm in the process of upgrading from postgres 7.4.8 to 9.0.4 and wanted to run my decisions past some folks who can give me some input on whether my decisions make sense or not. \n\nIt's basically a LAPP configuration and on a busy day we probably get in the neighborhood of a million hits.\n\...
[ { "msg_contents": "Is there any performance benefit of using constant size tuples?\n", "msg_date": "Fri, 19 Aug 2011 11:03:48 +0200", "msg_from": "Krzysztof Chodak <krzysztof.chodak@gmail.com>", "msg_from_op": true, "msg_subject": "Variable versus constrant size tuples" }, { "msg_content...
[ { "msg_contents": "\nI'm buying a bunch of new machines (all will run an application that heavily\nwrites to PG). These machines will have 2 spindle groups in a RAID-1 config.\nDrives will be either 15K SAS, or 10K SATA (I haven't decided if it is \nbetter\nto buy the faster drives, or drives that are identical...
[ { "msg_contents": "I am in the progress of an 8.3 to 8.4 upgrade for a customer. I seem to \nhave stumbled upon what looks like a regression. The two databases \n(8.3.14 and 8.4.8) have identical tuning parameters (where that makes \nsense) and run on identical hardware. Both databases are regularly \nvacuumed ...
[ { "msg_contents": "Hello Everyone,\n\nI am working on an alert script to track the number of connections with the\nhost IPs to the Postgres cluster.\n\n1. I need all the host IPs making a connection to Postgres Cluster (even for\na fraction of second).\n2. I would also want to track number of IDLE connections, ...
[ { "msg_contents": "I have a index in a table. The value of the reltuples value in the pg_class\ntable for this index is less than the number of rows in the table where the\nindex is present.\nFor eg. if i have 800 rows in the table , the reltuples in the pg_class for\nthe index show the value as 769.\nWhat are ...
[ { "msg_contents": "\nApologies if this has already been posted here (I hadn't seen it before \ntoday, and\ncan't find a previous post).\nThis will be of interest to anyone looking at using SSDs for database \nstorage :\nhttp://www.intel.com/content/www/us/en/solid-state-drives/ssd-320-enterprise-server-storage-...
[ { "msg_contents": "Hi. I have a table called work (id bigserial, userid int4, kind1 enum, kind2 enum, kind3 enim, value bigint, modified timestamp)\nTable will have about 2*10^6 rows (at same time - overall it can have higher IDs but old records are eventually deleted (moved to separate archive table) therefore...
[ { "msg_contents": "Hello,\n\nI asked that question on StackOverflow, but didn't get any valuable\nresponse, so I'll ask it here. :)\n\nI have such query:\n\nSELECT \"spoleczniak_tablica\".\"id\", \"spoleczniak_tablica\".\"postac_id\",\n\"spoleczniak_tablica\".\"hash\", \"spoleczniak_tablica\".\"typ\",\n\"spolec...
[ { "msg_contents": "Hello,\n\nI asked that question on StackOverflow, but didn't get any valuable\nresponse, so I'll ask it here. :)\n\nI have such query:\n\nSELECT \"spoleczniak_tablica\".\"id\", \"spoleczniak_tablica\".\"postac_id\",\n\"spoleczniak_tablica\".\"hash\", \"spoleczniak_tablica\".\"typ\",\n\"spolec...
[ { "msg_contents": "Hi,\n\nI'm looking for summaries (or best practices) on SSD usage with PostgreSQL.\nMy use case is mainly a \"read-only\" database.\nAre there any around?\n\nYours, Stefan\n", "msg_date": "Tue, 30 Aug 2011 19:23:10 +0200", "msg_from": "Stefan Keller <sfkeller@gmail.com>", "msg_fro...
[ { "msg_contents": "Hi all,\n\nI have read things someplace saying not exists was better than not in... \nor something like that. Not sure if that was for in/exists and not \nin/not exists, and for a lot of records or not.\n\nHere is my setup:\n\nMy website has a general table, let say 60k rows. Its mostly rea...
[ { "msg_contents": "Hello all,\nI have a query which takes about 20 minutes to execute and retrieves \n2000-odd records. The explain for the query is pasted here\nhttp://explain.depesz.com/s/52f\nThe same query, with similar data structures/indexes and data comes back \nin 50 seconds in Oracle. We just ported th...
[ { "msg_contents": "Hi all,\n\n \n\nI am running a simple query:\n\n \n\nSELECT * FROM public.\"Frame\"\n\n \n\nTime taken:\n\n35.833 ms (i.e. roughly 35 seconds)\n\n \n\nNumber of rows:\n\n121830\n\nNumber of columns:\n\n38\n\n \n\nThis is extremely slow for a database server.\n\nCan anyone help me in finding t...
[ { "msg_contents": "I'm running a labour-intensive series of queries on a medium-sized dataset (~100,000 rows) with geometry objects and both gist and btree indices.\n\nThe queries are embedded in plpgsql, and have multiple updates, inserts and deletes to the tables as well as multiple selects which require the ...
[ { "msg_contents": "Dear list,\n\nwe are encountering serious performance problems with our database. \nQueries which took around 100ms or less last week now take several seconds.\n\nThe database runs on Ubuntu Server 10.4.3 (kernel: 2.6.32-33) on \nhardware as follows:\n8-core Intel Xeon CPU with 2.83GHz\n48 GB...
[ { "msg_contents": "\nHi, \n\nI have a database server that's part of a web stack and is experiencing prolonged load average spikes of up to 400+ when the db is restarted and first accessed by the other parts of the stack and has generally poor performance on even simple select queries.\n\nThere are 30 DBs in to...
[ { "msg_contents": "Hi everyone, \n\n \n\nMy question is, if I have a table with 500,000 rows, and a SELECT of one row\nis returned in 10 milliseconds, if the table has 6,000,000 of rows and\neverything is OK (statistics, vacuum etc) \n\ncan i suppose that elapsed time will be near to 10?\n\n \n\n \n\n \n\n \n\n...
[ { "msg_contents": "Hi!\n\n \n\nI have a table not too big but with aprox. 5 millions of rows, this table\nmust have 300 to 400 select per second. But also must have 10~20\ndelete/insert/update per second.\n\n \n\nSo, I need to know if the insert/delete/update really affect the select\nperformance and how to dea...
[ { "msg_contents": "\"Anibal David Acosta\" wrote:\n \n>> The general guidelines for Windows servers such as\n>> http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server\n>> recommend a fairly small setting for the shared_buffers parameters\n>> on Windows--no more than 512MB.\n \n> Even if I have a server ...
[ { "msg_contents": "Hello performance wizards! (Sorry for the re-post if this appears twice - I see no evidence e-mailing to pgsql-perfomrance is working yet.)\n \nMy client has migrated his 8.3 hosted DB to new machines \nrunning PG 9.0. It’s time to look at the config settings. \n\n \nImmediately below are the...
[ { "msg_contents": "Hello,\n\nDoes anyone know whether PostgreSQL uses DMA (Direct Memory Access) in\ncertain cases to improve networking IO performance?\n\nI mean \"simple\" query is which doesn't require any CPU processing, for ex\nSELECT column_a FROM table_b WHERE date = \"2001-10-05\"\n\nI need this to devi...
[ { "msg_contents": "Sometimes I read that postgres performance is degraded over the time and\nsomething people talk about backup and restore database solve the problem.\n\n \n\nIt is really true?\n\n \n\nI have postgres 9.0 on a windows machine with The autovacuum is ON\n\n \n\nI have some configuration tables \...
[ { "msg_contents": "Hi,\n\n\nI have a database cluster running PostgreSQL 8.2\n\nand I have **new Linux virtualized database environment running PostgreSQL\n9.0\n\n\nMy question is how to ensure that database schemas are always performing and\nscalable and databases optimized and entirely migrated\n\nThanks in a...
[ { "msg_contents": "I have been a MySQL user for years, including owning a few\nmulti-gigabyte databases for my websites, and using it to host\nalgebra.com (about 12 GB database).\n\nI have had my ups and downs with MySQL. The ups were ease of use and\ndecent performance for small databases such as algebra.com. ...
[ { "msg_contents": "I want to thank members on this list which helped me benchmark and conclude that RAID 10 on a XFS filesystem was the way to go over what we had prior. PostgreSQL we have been using with Perl for the last 8 years and it has been nothing but outstanding for us. Things have definitely worked out...
[ { "msg_contents": "We've currently got PG 8.4.4 running on a whitebox hardware set up, with (2)\n5410 Xeon's, and 16GB of RAM. It's also got (4) 7200RPM SATA drives, using\nthe onboard IDE controller and ext3.\n\nA few weeks back, we purchased two refurb'd HP DL360's G5's, and were hoping\nto set them up with ...
[ { "msg_contents": "The recent \"data warehouse\" thread made me think about how I use \nwork_mem for some of my big queries. So I tried SET work_mem = '4GB' \nfor a session and got\n\nERROR: 4194304 is outside the valid range for parameter \"work_mem\" (64 \n.. 2097151)\n\nA bit of searching turned up the \"Al...
[ { "msg_contents": "In relation to my previous thread (about SW RAID vs. HW RAID on a P400), I\nwas able to narrow down the filesystem speed and in general, our new system\n(running PG 9.1) is about 3x - 5x faster on the IO.\n\nIn looking at the query plans in more depth, it appears that PG 9.0 and 9.1\nare both...
[ { "msg_contents": "I'm just beginning the process of benchmarking and tuning a new server.\n Something I really haven't done before. I'm using Greg's book as a guide.\n I started with bonnie++ (1.96) and immediately got anomalous results (I\nthink).\n\nHardware is as follows:\n\n2x quad core xeon 5504 2.0Ghz, ...
[ { "msg_contents": "Robert Klemme wrote:\n> On 12.09.2011 19:22, Andy Colson wrote:\n \n>> There are transaction isolation levels, but they are like playing\n>> with fire. (in my opinion).\n \n> You make them sound like witchcraft. But they are clearly defined\n> - even standardized.\n \nYeah, for decades. Dev...
[ { "msg_contents": "Carlo Stonebanks wrote:\n \n>> max_connections = 300\n> Too high. Both throughput and latency should improve with correct\n> use of a connection pooler.\n \n> Even for 300 stateful applications that can remain connected for\n> up to a week, continuously distilling data (imports)?\n \nAbsolut...
[ { "msg_contents": "The doc at http://www.postgresql.org/docs/current/interactive/indexes-types.html\nsays: \"Caution: Hash index operations are not presently WAL-logged, so\nhash indexes might need to be rebuilt with REINDEX after a database\ncrash. They are also not replicated over streaming or file-based\nrep...
[ { "msg_contents": "Craig Ringer wrote:\n \nI agreed with almost your entire post, but there is one sentence\nwith which I take issue.\n \n> However, it will also increase latency for service for those\n> workers because they may have to wait a while before their\n> transaction runs, even though their transacti...
[ { "msg_contents": "dear all,\n\ni have a table with (approx) 500.000.000 rows. it has several indexes, one\nof which is a multicolumn index\nfor a column that has an id (integer) and a column that has a timestamp. i\nhave read in the manual that the multicolumn index can be used only if the\nclauses of the quer...
[ { "msg_contents": "Hi,\n\nI did this:\n\nCREATE VIEW unionview AS\n SELECT col, otherstuff FROM (heavy subquery)\n WHERE col BETWEEN 1 AND 3\n UNION ALL\n SELECT col, otherstuff FROM (another heavy subquery)\n WHERE col BETWEEN 4 AND 6;\n\nhoping that the planner could use the WHERE conditions (like it wou...
[ { "msg_contents": "It's not an issue for me (it's not really impacting performance), but\nsince it was odd I thought I might ask.\n\nI have this supermegaquery:\n\nSELECT\n t.date AS status_date, lu.id AS memberid, lu.username AS\nusername, u.url AS url, ub.url_pattern AS urlpattern, lu.email AS\nemail,\n...
[ { "msg_contents": "2011/9/17 Tomas Vondra <tv@fuzzy.cz> wrote:\n(...)\n> We've been asked by a local university for PostgreSQL-related topics of\n> theses and seminary works\n\nI'm also interested in such proposals or ideas!\n\nHere's some list of topics:\n* Adding WAL-support to hash indexes in PostgreSQL (see...
[ { "msg_contents": "Stefan Keller wrote:\n \n> It's hard for me to imagine that btree is superior for all the\n> issues mentioned before.\n \nIt would be great if you could show a benchmark technique which shows\notherwise.\n \n-Kevin\n", "msg_date": "Sun, 18 Sep 2011 10:17:17 -0500", "msg_from": "\"Kev...