threads
listlengths
1
275
[ { "msg_contents": "Hi\nI have a select statement that runs on a partition having say couple\nmillion rows.\nThe tabel has indexes on two colums. However the query uses the\nnon-indexed colums too in its where clause.\nFor example:\nSELECT lane_id,measurement_start,\nmeasurement_end,speed,volume,occupancy,qualit...
[ { "msg_contents": "I recently got my hands on a device called ioDrive from a company\ncalled Fusion-io. The ioDrive is essentially 80GB of flash on a PCI\ncard. It has its own driver for Linux completely outside of the\nnormal scsi/sata/sas/fc block device stack, but from the user's\nperspective it behaves li...
[ { "msg_contents": "Hi all,\n\nWe have upgraded our database server to postgres 8.3.1 on 28th June.\n\nChecked out the performance of Hot on 30th June :\n\n relname n_tup_ins n_tup_upd n_tup_del n_tup_hot_upd\n n_live_tup n_dead_tup *table1* *15509156* *2884653* *0* *2442823* *\n1550915...
[ { "msg_contents": "Hi guys, How are you ?\n\n\nI am from Brazil and i work for a little company and it company is working\nis medium-big project and we want to use PostGree like the DataBase system,\nbut i got some questions.\nI want to know if the PostGree has limitations about the concurrent access,\nbecause ...
[ { "msg_contents": "Hi.\n\nI have a table with 1.8M rows on a Postgres 8.1.4 server, and I'm\nexecuting a query which looks like:\n\n select count(*) from header_fields where message in\n (select message from mailbox_messages limit N);\n\nI've found that when N==75, the query uses a fast index scan, but wh...
[ { "msg_contents": "Hi,\n\nI have juste some questions about cursor/Fetch mechanisms under postgreSQL.\n\nDo it use only scan table approach when one fetch (next) is executed or \nit takes into account index when this lasts one is able to increase the \nperformance.\n\n \nI did some experimentation wherein I cal...
[ { "msg_contents": "I have a table with 29K rows total and I need to delete about 80K out of it.\n\nI have a b-tree index on column cola (varchar(255) ) for my where clause to use.\n\nmy \"select count(*) from test where cola = 'abc' runs very fast,\n \nbut my actual \"delete from test where cola = 'abc';\" take...
[ { "msg_contents": "Thanks so much for your help.\n\nI can select the 80K data out of 29K rows very fast, but we I delete them, it always just hangs there(> 4 hours without finishing), not deleting anything at all. Finally, I select pky_col where cola = 'abc', and redirect it to an out put file with a list of pk...
[ { "msg_contents": "How can I tell if my work_mem configuration is enough to support all Postgres user activities on the server I am managing?\n\nWhere do I find the indication if the number is lower than needed.\n\nThanks,\nJessica\n\n\n\n \nHow can I tell if my work_mem configuration is enough to support...
[ { "msg_contents": "Hi,\n\nHere http://www.westnet.com/~gsmith/content/postgresql/TuningPGWAL.htm I read:\n\"\"\"\nCombining these two, an optimal fstab for the WAL might look like this:\n\n/dev/hda2 /var ext3 defaults,writeback,noatime 1 2\n\"\"\"\nIs this info accurate?\n\nI also read on other document from t...
[ { "msg_contents": "I'm spending a third day testing with the ioDrive, and it occurred to\nme that I should normalize my tests by mounting the database on a\nramdisk. The results were surprisingly low. On the single 2.2GHz\nAthlon, the maximum tps seems to be 1450. This is achieved with a\nsingle connection. ...
[ { "msg_contents": "Hi i have experienced really bad performance on both FreeBSD and linux, with syslog,\nwhen logging statements involving bytea of size ~ 10 Mb.\nConsider this scenario:\npostgres@dynacom=# \\d marinerpapers_atts\n Table \"public.marinerpapers_atts\"\n...
[ { "msg_contents": "Hi,\n\nwhen i issued the vaccuum cmd, I recieved this message:\n\necho \"VACUUM --full -d ARSys\" | psql -d dbname\n\nWARNING: relation \"public.tradetbl\" contains more than\n\"max_fsm_pages\" pages with useful free space\nHINT: Consider compacting this relation or increasing the\nconfigur...
[ { "msg_contents": "Is there any quick hacks to do this quickly? There's around\n20-30million\nrows of data. \n\nI want to change a column type from varchar(4) to varchar()\n\ntable size is ~10-15GB (and another 10-15G for indexes)\n\nWhat would be the preferrred way of doing it? SHould I be dropping the\nindex...
[ { "msg_contents": "On a Linux system, if the total memory is 4G and the shmmax is set to 4G, I know it is bad, but how bad can it be? Just trying to understand the impact the \"shmmax\" parameter can have on Postgres and the entire system after Postgres comes up on this number.\n\nWhat is the reasonable sett...
[ { "msg_contents": "Hi All,\n I am having a trigger in table, If i update the the table manually it is not taking time(say 200ms per row), But if i update the table through procedure the trigger is taking time to fire(say 7 to 10 seconds per row).\n\nHow can i make the trigger to fire immediately?\n\nRegards,...
[ { "msg_contents": "I've got a couple boxes with some 3ware 9550 controllers, and I'm \nless than pleased with performance on them.. Sequential access is \nnice, but start seeking around and you kick it in the gut. (I've \nfound posts on the internets about others having similar issues). My \nlast box with...
[ { "msg_contents": "Hi,\n\nI just noticed what looks like a deadlock situation on postgresql 8.2.4. After more than an hour of running REINDEX, two \nprocesses are each in a \"waiting\" state and yet have no time used. This is also the first time I've seen this condition after \nsome 48 hours of continuous loa...
[ { "msg_contents": "PostgreSQL: 8.2\n\nHow can you identify how many inserts are being done in a given time\nframe for a database?\n\n \n\nThanks,\n\n \n\nLance Campbell\n\nProject Manager/Software Architect\n\nWeb Services at Public Affairs\n\nUniversity of Illinois\n\n217.333.0382\n\nhttp://webservices.uiuc.ed...
[ { "msg_contents": "PostgreSQL: 8.2\n\nHow can I identify how many inserts and updates are being done in a\ngiven time frame for a database?\n\n \n\nThanks,\n\n \n\n \n\nLance Campbell\n\nProject Manager/Software Architect\n\nWeb Services at Public Affairs\n\nUniversity of Illinois\n\n217.333.0382\n\nhttp://webs...
[ { "msg_contents": "On a running production machine, we have 900M configured on a 16G-memory Linux host. The db size for all dbs combined is about 50G. There are many transactions going on all the times (deletes, inserts, updates). We do not have a testing environment that has the same setup and the same amount...
[ { "msg_contents": "On a new system with 64G memory, what is the best starting points for shmmax on OS and shared_buffers for Postgres. All databases combined are about 50G.\n\nI want to evaluate this with the two following scenarios:\n\n1. this machine is running only Postgres, no other applications\n\n2. this...
[ { "msg_contents": "Hi All,\n I am having a trigger in table, If i update the the table manually it is not taking time(say 200ms per row), But if i update the table through procedure the trigger is taking time to fire(say 7 to 10 seconds per row).\n\nHow can i make the trigger to fire immediately ?\n\nRegards...
[ { "msg_contents": "Hi All,\n I am having a trigger in table, If I update the the table manually trigger is firing immediately(say 200ms per row), But if I update the table through procedure the trigger is taking time to fire(say 7 to 10 seconds per row).\n\nPlease tell me what kind of changes can I make so t...
[ { "msg_contents": "\n Hi all,\n Please find the procedure and trigger which took more time when we try \nto update value in table through Procedure.\n\n CREATE OR REPLACE FUNCTION procname1(args)\n RETURNS void AS\n $BODY$\nDECLARE\n {\n ---\n Some code blocks\n ---\n }\n BEGIN\n\n --> to here it is ex...
[ { "msg_contents": "Hi,\n\nWhen trying to to set shared_buffers greater then 3,5 GB on 32 GB x86\nmachine with solaris 10 I running in this error:\nFATAL: requested shared memory size overflows size_t\n\nThe solaris x86 ist 64-bit and the compiled postgres is as well 64-bit.\nPostgresql 8.2.5.\nmax-shm ist allow...
[ { "msg_contents": "Hi guys,\n\nI've got a query that is running slower on 8.3 than on 8.1 (with \nequivalent server config),\nbecause the join ordering is not the same, at least that's my guess... ;-)\n\nIn 8.1.4, table A had 122880 pages, B 112690 pages and C 80600 pages.\nNow in 8.3.3, table A has only 77560 ...
[ { "msg_contents": "Dear all,\n\nAfter setting log_statement='all' at postgres.conf,\nthen i'm rebooting OS [freeBSD or CentOS],\ni can't find where log file created from log_statement='all' located...\nFYI, location of postgres.conf at /var/lib/pgsql/data/postgres.conf\n\nmany thanks..\n\nRegards,\nJoko [SYSTEM...
[ { "msg_contents": "I have two postgresql servers. One runs 8.3.1, the other 8.3.3. On the 8.3.1 \nmachine, the index scans are being planned extremely low cost:\n\nexplain ANALYZE select * from email_entity where email_thread = 375629157;\n QUERY ...
[ { "msg_contents": "Dear friend,\n\n * **We are an electronic products wholesaler located in Shenzhen China\n.Our products are of high quality and competitive price. If you want to find\nthe best supplier , we can offer you the most reasonable discount to leave\nyou more profits.\n Sincerely looking forward t...
[ { "msg_contents": " hi list,\n\ni have a problem with time consuming query. first of all my table structure:\n\nCREATE TABLE nw_tla_2008_4_deu\n(\n\"ID\" bigint NOT NULL,\n\"NET2CLASS\" smallint,\n\"FOW\" smallint,\nCONSTRAINT nw_tla_2008_4_deu_pkey PRIMARY KEY (\"ID\"),\n)\nWITHOUT OIDS;\n\nCREATE INDEX nw_tla...
[ { "msg_contents": "Hi there,\n\nI have a script which includes 30000 called functions within a single \ntransaction.\n\nAt the beginning, the functions runs fast enough (about 60 ms each). In \ntime, it begins to run slower and slower (at final about one per 2 seconds).\n\nI check the functions that runs slowly...
[ { "msg_contents": "Most likely just a forged header or something, hardly hacked though is it. I think you need to do some training: http://www2.b3ta.com/bigquiz/hacker-or-spacker/\n\n\n\n----- Original Message ----\n> From: Craig James <craig_james@emolecules.com>\n> To: pgsql-performance@postgresql.org\n> Sen...
[ { "msg_contents": "> Glyn Astill wrote:\n\n> > Most likely just a forged header or something, hardly hacked\n> > though is it.\n> \n> Yes, hack is the correct term. The bad guys have hacked into the major email \n> systems, including gmail, which was the origin of this spam:\n> \n> http://www.theregister.co....
[ { "msg_contents": "\nI'm trying to run a few basic tests to see what a current machine can \ndeliver (typical workload ETL like, long running aggregate queries, \nmedium size db ~100 to 200GB).\n\nI'm currently checking the system (dd, bonnie++) to see if performances \nare within the normal range but I'm havin...
[ { "msg_contents": "pgbench is unrelated to the workload you are concerned with if ETL/ELT and decision support / data warehousing queries are your target. \r\n\r\nAlso - placing the xlog on dedicated disks is mostly irrelevant to data warehouse / decision support work or ELT. If you need to maximize loading sp...
[ { "msg_contents": "Dear PostgreSQL community,\n\nfirst some info about our application:\n\n- Online course directory for a University\n- Amount of data: complete dump is 27 MB\n- Semester is part of primary key in each table\n- Data for approx. 10 semesters stored in the DB\n- Read-only access from web applicat...
[ { "msg_contents": "Hi,\n\nI have ran quite a few tests comparing how long a query takes to execute from Perl/DBI as compared to psql/pqlib. No matter how many times I run the test the results were always the same.\n\nI run a SELECT all on a fairly big table and enabled the log_min_duration_statement option. Wit...
[ { "msg_contents": "Hi Guys,\n\nI am developing a project with PostgreSQL and one guy from project is\nfamiliar with Oracle and did a question for me, but i could not answer, if\nsomeone could help it will be good. =)\nThe question is :\n*\n- In oracle he makes a full backup two times in a day. In this range of\...
[ { "msg_contents": "I am facing performance issues with running scheduled jobs. There are\nmultiple jobs running on the database ...not necessarily acting on the same\ntable. Either ways i checked if there was a locking issue, I did not find\nany conflicting issues. The program is run over night ......when i che...
[ { "msg_contents": "For background, please read the thread \"Fusion-io ioDrive\", archived at\n\nhttp://archives.postgresql.org/pgsql-performance/2008-07/msg00010.php\n\nTo recap, I tested an ioDrive versus a 6-disk RAID with pgbench on an\nordinary PC. I now also have a 32GB Samsung SATA SSD, and I have tested...
[ { "msg_contents": "I have a PostgreSQL database on a very low-resource Xen virtual machine,\n48 MB RAM. When two queries run at the same time, it takes longer to\ncomplete then if run in sequence. Is there perhaps a way to install\nsomething like a query sequencer, which would process queries in a FIFO\nmanner,...
[ { "msg_contents": "Hi all,\n\nHave a problem related to partition tables.\n\nWe have the following schema's :\n\nmaster -\nid integer (PRIMARY KEY)\ncid integer\n\nchild1, child2 are the child tables of master table. Here \"cid\" is the field\nused for partitioning.\n\nWe have another table called\nother_tbl -\...
[ { "msg_contents": "Hi All,\n\nThis is my first post so please be gentle if I make any mistakes.\n\nI know that ENUMs were not intended to be used instead of joins, but I\nbelieve that I my case there will be huge saves on using Enums. Every night\nI will drop the database and rebuild it from CSV files. The data...
[ { "msg_contents": "Hi All,\n\n \n\nI have taken over the maintenance of a server farm , recently. 2 webserver\non db server. They are quite powerful 2 processor xeon w/ 6Gig of ram .\n\n \n\nCouple of days ago we had a serious performance hit and the db server (pg.\nv7.4) was overloaded w/ something in a way t...
[ { "msg_contents": "Morning folks,\n\tLong time listener, first time poster. Having an interesting\nproblem related to performance which I'll try and describe below and\nhopefully get some enlightenment. First the environment:\n\n\nPostgres 8.1.8\n\tshared_buffers = 2000\n\tmax_fsm_pages = 400000\nRedhat Enter...
[ { "msg_contents": "AFAIK, provided bar is UNIQUE in table2 (e.g. is a PRIMARY KEY) the two\nqueries will give the same result:\n\nSELECT foo, id FROM table1 WHERE id IN (SELECT id FROM table2);\n\nSELECT foo, id FROM table1 INNER JOIN table2 USING (id);\n\nGiven table1 has about 100k rows, and table2 about 100 ...
[ { "msg_contents": "Hello friends\n\nThe commands \"\\timing\" and \"EXPLAIN ANALYZE\" return values related to the\ntime of execution of the instruction. These values are \"Time:\" and \"Total\nruntime:\" respectively. What is the difference between these values, and\nthe specific use of each command in queries...
[ { "msg_contents": "Two queries which do the same thing, first one takes ages to complete\n(did wait several minutes and cancelled it), while the second one took\n9 seconds? Don't they do the same thing?\n\nmiernik=> EXPLAIN SELECT uid FROM locks WHERE uid NOT IN (SELECT uid FROM locks INNER JOIN wys USING (uid,...
[ { "msg_contents": "Interesting read...\n\nhttp://www.linux.com/feature/142658\n", "msg_date": "Thu, 31 Jul 2008 13:45:38 -0400", "msg_from": "\"Matthew T. O'Connor\" <matthew@zeut.net>", "msg_from_op": true, "msg_subject": "SSD Performance Article" }, { "msg_contents": "On Thu, Jul 31, 2...
[ { "msg_contents": "Hello,\nI installed postgresql-8.3.3 in our local server with option --enable-nls . After successful installion , I create database and import data.But I am not aware how to use nls sort in this postgresql-8.3.3 .\nPlease tell me syntax how to use nls sort in query , if some one know.\nTha...
[ { "msg_contents": "Hi all,\n\nWe've thrown together some results from simple i/o tests on Linux\ncomparing various file systems, hardware and software raid with a\nlittle bit of volume management:\n\nhttp://wiki.postgresql.org/wiki/HP_ProLiant_DL380_G5_Tuning_Guide\n\nWhat I'd like to ask of the folks on the li...
[ { "msg_contents": "Hello,\n\nWe have a bit of a problem with the daily db backup. At the moment the \nbackup db size is half of the main db, and we have the following errors \nin the log file:\n\nERROR: out of memory\nDETAIL: Failed on request of size 536870912\n\n(There's a bunch of those.)\n\nThere were some ...
[ { "msg_contents": "This query is run on a test system just after a backup of the database\nhas been restored and it does exactly what I expect it to do\n\nEXPLAIN ANALYZE SELECT foos.* FROM foos INNER JOIN bars ON foos.id =\nbars.foos_id WHERE ((bars.bars_id = 12345)) ORDER BY attr1 LIMIT 3\nOFFSET 0;\n\n QUERY...
[ { "msg_contents": "Hi,\n\nBelow command has been running since ~700 minutes in one of our\nPostgreSQL servers.\n\n DELETE FROM mugpsreglog\n WHERE NOT EXISTS (SELECT 1\n FROM mueventlog\n WHERE mueventlog.eventlogid = mugpsreglog.eventlogid);\n\n Se...
[ { "msg_contents": "Hi, I have a timestamptz field that I want to use with a query, but I \ndon�t need the full timestamp resolution, so I�ve created a \nday_trunc(timestamptz) immutable function which I�ll use with the \nquery and with a new index:\n\nlogs=> create index test_idx on blackbox (day_trunc(ts));...
[ { "msg_contents": "Hi list,\n\n\nI'm helping a customer with their new postgresql server and have some \nquestions.\n\nThe servers is connected to a SAN with dual raid cards which all have \n512MB cache with BBU.\n\nThe configuration they set up is now.\n2 SAS 15K drives in RAID 1 on the internal controller f...
[ { "msg_contents": "Hey all, I have two tables that look like this:\n\n\nCREATE TABLE details\n(\n cust_code character varying(6) NOT NULL,\n cust_po character varying(20) NOT NULL,\n date_ordd date NOT NULL,\n item_nbr integer NOT NULL,\n orig_qty_ordd integer,\n CONSTRAINT details_pkey PRIMARY KEY ...
[ { "msg_contents": "Hello\n\nRegarding the advice from all, and the performance of postgresql 8.3.3\n\nI'm trying to change the server and to upgrade to 8.3.3\n\nI install postgresql 8.3.3 on a new server for testing. All well!!!\n\nAnd I run a \\i mybackup.sql since yesterday 7pm. This morning the datas \nare n...
[ { "msg_contents": "Hello list,\n\nI have a server with a direct attached storage containing 4 15k SAS \ndrives and 6 standard SATA drives.\nThe server is a quad core xeon with 16GB ram.\nBoth server and DAS has dual PERC/6E raid controllers with 512 MB BBU\n\nThere is 2 raid set configured.\nOne RAID 10 contai...
[ { "msg_contents": "Your expected write speed on a 4 drive RAID10 is two drives worth, probably 160 MB/s, depending on the generation of drives.\r\n\r\nThe expect write speed for a 6 drive RAID5 is 5 drives worth, or about 400 MB/s, sans the RAID5 parity overhead.\r\n\r\n- Luke\r\n\r\n----- Original Message ----...
[ { "msg_contents": "Hello,\n\nI'm trying to install a solution to permit me to :\n- Secure the datas, without RAID\n- Giving ability to increase the potentiality of the database towards \nthe needs.\n\nI have read about slony, DRBD, pgpool....\n\nI don't find the good system to do what I want.\n\nI manage for no...
[ { "msg_contents": "Something goes wrong that this query plan thinks there is only gonna be\n1 row from (SELECT uid FROM alog ... ) so chooses such query plan, and\nthus it runs forever (at least so long that I didn't bother to wait,\nlike 10 minutes):\n\n\nmiernik=> EXPLAIN UPDATE cnts SET p0 = FALSE WHERE uid ...
[ { "msg_contents": "I have a table named table_Users:\n\nCREATE TABLE table_Users (\n UserID character(40) NOT NULL default '',\n Username varchar(256) NOT NULL default '',\n Email varchar(256) NOT NULL default ''\n etc...\n);\n\nThe UserID is a character(40) and is generated using UUI...
[ { "msg_contents": "unregister\n\nunregister", "msg_date": "Mon, 11 Aug 2008 16:44:16 +0200", "msg_from": "\"Sven Clement\" <sven@dsign.lu>", "msg_from_op": true, "msg_subject": "" } ]
[ { "msg_contents": "Hello All,\n\nRan into a re-occuring performance problem with some report queries again\ntoday. In a nutshell, we have filters on either multiple joined tables, or\nmultiple columns on a single table that are highly correlated. So, the\nestimates come out grossly incorrect (the planner has ...
[ { "msg_contents": "Hackers and PG users,\n\nDoes anyone see a need for having TOAST tables be individually\nconfigurable for autovacuum? I've finally come around to looking at\nbeing able to use ALTER TABLE for autovacuum settings, and I'm wondering\nif we need to support that case.\n\n-- \nAlvaro Herrera ...
[ { "msg_contents": "Hello,\n\nWe're developing a project which uses PostgreSQL to store binary\ndocuments. Since our system is likely to grow up to some terabytes in two\nyears, I'd like to ask if some of you have had some experience with\nstoring a huge amount of blob files in postgres. How does it scale in\npe...
[ { "msg_contents": "Hi all,\n\n I've got a simple table with a lot of data in it:\n\nCREATE TABLE customer_data (\n\tcd_id\t\t\tint\t\tprimary key\tdefault(nextval('cd_seq')),\n\tcd_cust_id\t\tint\t\tnot null,\n\tcd_variable\t\ttext\t\tnot null,\n\tcd_value\t\ttext,\n\tcd_tag\t\t\ttext,\n\tadded_user\t\tint\t\...
[ { "msg_contents": "Hi,\n\n\nFollowing is the Query :\nSELECT sum(id), sum(cd), sum(ad)\n FROM table1 a , table2 b cross join table3 c\n WHERE a.nkey = b.key\n AND a.dkey = c.key\n AND c.date = '2008-02-01'\n AND b.id = 999 ;\n\n\nWe have fired this on our producti...
[ { "msg_contents": "Hi,\n\nI run this query:\n\nselect max(a.\"user\"), b.category, count(1) from result a, \ndomain_categories b where a.\"domain\" = b.\"domain\" group by b.category;\n\nthe table result contains all websites a user visited. And the table \ndomain_categories contains all categories a domain i...
[ { "msg_contents": "Hi all,\n\nWe started an attempt to slice the data we've been collecting in\nanother way, to show the results of software vs. hardware RAID:\n\nhttp://wiki.postgresql.org/wiki/HP_ProLiant_DL380_G5_Tuning_Guide#Hardware_vs._Software_Raid\n\nThe angle we're trying to show here is the processor ...
[ { "msg_contents": "Hi all,\n\nLooks like I found a bug with views optimization:\n\nFor example create a test view:\n\nCREATE OR REPLACE VIEW bar AS\nSELECT *\nFROM (\n (\n SELECT calldate, duration, billsec, get_asterisk_cdr_caller_id(accountcode) AS caller_id\n FROM asterisk_cdr\n ) UNION A...
[ { "msg_contents": "Forgot to add\n\nasteriskpilot=> SELECT version();\n version\n--------------------------------------------------------------------------------------------------------\n PostgreSQL 8.2.9 on i386-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.1.2 20...
[ { "msg_contents": "Hi,\n\nCan anyone suggest the performance tips for PostgreSQL using Hibernate.\n\nOne of the queries:\n\n- PostgreSQL has INDEX concept and Hibernate also has Column INDEXes. Which\nis better among them? or creating either of them is enough? or need to\ncreate both of them?\n\nand any more pe...
[ { "msg_contents": "Folks,\n\nIn a fresh Pg8.3.3 box, we created a 3-stripe RAID0 array.\nThe write speed is about 180MB/s, as shown by dd :\n\n# dd if=/dev/zero of=/postgres/base/teste2 bs=1024 count=5000000\n5000000+0 records in\n5000000+0 records out\n5120000000 bytes (5,1 GB) copied, 28,035 seconds, 183 MB/s...
[ { "msg_contents": "\nDavid Wilson escreveu:\n> On Wed, Aug 20, 2008 at 2:30 PM, André Volpato\n> <andre.volpato@ecomtecnologia.com.br> wrote:\n>\n> \n>> The CPU is 100% used since a few hours ago. Can anyone tell why?\n>> \n>\n> Sounds like you've just got a CPU bound query. The data may even all\n> be in...
[ { "msg_contents": "I'm currently trying to find out what the best configuration is for \nour new database server. It will server a database of about 80 GB and \ngrowing fast. The new machine has plenty of memory (64GB) and 16 SAS \ndisks, of wich two are already in use as a mirror for the OS.\n\nThe rest can...
[ { "msg_contents": "My company finally has the means to install a new database server for \nreplication. I have Googled and found a lot of sparse information out \nthere regarding replication systems for PostgreSQL and a lot of it looks \nvery out-of-date. Can I please get some ideas from those of you that \na...
[ { "msg_contents": "I only have a few days of experience with postgres and it is working \ngreat, but when I start building up test queries I ran into a problem I \ndon't understand.\n\nOne query works fast, returning results in under a second. If I insert \none more join into the table however, it switches to ...
[ { "msg_contents": "[for the purpose of this post, 'blocking' refers to an I/O operation\ntaking a long time for reasons other than the amount of work the I/O\noperation itself actually implies; not to use of blocking I/O calls or\nanything like that]\n\nHello,\n\nI have a situation in which deterministic latenc...
[ { "msg_contents": "Hello,\nI'm having trouble with a Nested Loop being selected for a rather \ncomplex query; it turns out this is a pretty bad plan as the nested \nloop's row estimates are quite off (1 estimated / 1207881 actual). If \nI disable enable_nestloop, the query executes much faster (42 seconds \...
[ { "msg_contents": "Hi list.\n \nI have a table with over 30 million rows. Performance was dropping steadily\nso I moved old data not needed online to an historic table. Now the table\nhas about 14 million rows. I don't need the disk space returned to the OS\nbut I do need to improve performance. Will a plain va...
[ { "msg_contents": "Hi,\n\nI use Postgresql 8.3.1-1 to store a lot of data coming from a large amount\nof sensors. In order to have good performances on querying by timestamp on\neach sensor, I partitionned my measures table for each sensor. Thus I create\na lot of tables.\nI simulated a large sensor network wit...
[ { "msg_contents": "Actually, I've got another test system with only few sensors (thus few\ntables) and it's working well (<10ms insert) with all the indexes.\nI know it's slowing down my performance but I need them to interogate the\nbig tables (each one can reach millions rows with time) really fast.\n\nRegard...
[ { "msg_contents": "I was a bit confused about the read and write sorry ! I understand what you\nmean...\nBut do you think that the IO cost (of only one page) needed to handle the\nindex writing is superior than 300ms ? Because each insert in any of these\ntables is that slow.\nNB: between my \"small\" and my \"...
[ { "msg_contents": "1 table contains about 5 indexes : timestamp, one for each sensor type - 3,\nand one for packet counting (measures packet dropping)\n(I reckon that this is quite heavy, but a least the timestamp and the values\nare really usefull)\n\n1 table contains about 5 indexes : timestamp, one for each ...
[ { "msg_contents": "One sensor (so one table) sends a packet each seconds (for 3000 sensors).\n=> So we have : 1 insert per second for 3000 tables (and their indexes).\nHopefully there is no update nor delete in it...\n\nOne sensor (so one table) sends a packet each seconds (for 3000 sensors). => So we have : 1 ...
[ { "msg_contents": "What I described in the last mail is what I try to do.\nBut I said earlier that I only do about 3-4 inserts / seconds because of my\nproblem.\nSo it's about one insert each 30 minutes for each table.\n\nWhat I described in the last mail is what I try to do.But I said earlier that I only do ab...
[ { "msg_contents": "Does all INSERTs are made by one application? Maybe PREPARED STATEMENTS \nwill help you? What about optimization on application level?\n", "msg_date": "Sun, 24 Aug 2008 17:42:05 +0300", "msg_from": "DiezelMax <max@nts.biz.ua>", "msg_from_op": true, "msg_subject": "Re: Large nu...
[ { "msg_contents": "Hello every body,\n\nI just discover a big not only big huge difference between NOW() and \nCURRENT_DATE.\n\nDid you already know about it and do you know why ?\n\nDELETE FROM blacklist where bl_date < (NOW() - interval '2 DAY');\non 6 000 000 of records\n699 ms\n\nDELETE FROM blacklist where...
[ { "msg_contents": "Quite a lot of answers !\n\n> Does all INSERTs are made by one application? Maybe PREPARED STATEMENTS\nwill help you? What about optimization on application level?\nYes it's on only one application (through JDBC), optimizations (grouped\ntransaction, prepared statement) will be done but that ...
[ { "msg_contents": "That's not a bad idea, at least for historical data.\nBut actually one of the most common thing in sensor network monitoring is\nlast readings monitoring.\nWith indexes what I can do is : SELECT * FROM measures_xx ORDER BY timestamp\nDESC LIMIT 1 => And I got the very last reading in a blink ...
[ { "msg_contents": "We are attempting to turn off autovacuum but it keeps coming back. We \ncan't afford the performance hit from vacuum while end users are \naccessing our system.\n\nPostgresql Version: 8.3.3\nOS: Linux 2.6.18-53.el5PAE #1 SMP\n\nRunning PostgreSQL setting: \nsspg=# show autovacuum;\n autova...
[ { "msg_contents": "It seems to me that the planner makes a very poor decision with this\nparticular query:\n\n--- snip ---\nwoome=> explain analyze SELECT \"webapp_invite\".\"id\",\n\"webapp_invite\".\"person_id\", \"webapp_invite\".\"session_id\",\n\"webapp_invite\".\"created\", \"webapp_invite\".\"text\",\n\"...
[ { "msg_contents": "\nHi,\n\nWe're currently having a problem with queries on a medium sized table. This table is 22GB in size (via select pg_size_pretty(pg_relation_size('table'));). It has 7 indexes, which bring the total size of the table to 35 GB (measured with pg_total_relation_size).\n\nOn this table we're...
[ { "msg_contents": "Eh, there was a spurious join in that query which was created by an\nORM which messed things up apparently. Sorry for the noise. This\nabstracted version of the original query that does the same is fast:\n\nwoome=> EXPLAIN ANALYZE\nSELECT *\nFROM webapp_invite i\nINNER JOIN webapp_person p ON...
[ { "msg_contents": "\nHi, \n\nWould you like to be so kind as to answer the following questions:\n\n- Is there any way to control the number of clog files and xlog files? \nI encounter an issue that there are too many clog files under the \npg_clog/ directory which occupy more space than I can endure..\n\n- What...
[ { "msg_contents": "Is there a way to use multi-level inheritance to achieve sub \npartitioning that the query optimizer will recognize? With our current \napplication design, we would need a partition for every other day for \n18 months which will not perform well. The reason we need so many \npartitions is ...
[ { "msg_contents": "I'm looking for some help in speeding up searches. My table is pretty simple\n(see below), but somewhat large, and continuously growing. Currently it has\nabout 50 million rows.\n\nThe table is (I know I have excessive indexes, I'm trying to get the\nappropriate ones and drop the extras):\n ...