threads
listlengths
1
275
[ { "msg_contents": "Hi there,\n\nI have a simple aggregate query: SELECT count(\"PK_ID\") AS \"b1\" FROM \"tbA\" \nWHERE \"PK_ID\" > \"f1\"( 'c1' ), which has the following execution plan:\n\"Aggregate (cost=2156915.42..2156915.43 rows=1 width=4)\"\n\" -> Seq Scan on \"tbA\" (cost=0.00..2137634.36 rows=77124...
[ { "msg_contents": "I have a lot of centos servers which are running postgres. Postgres isn't used\nthat heavily on any of them, but lately, the stats collector process keeps\ncausing tons of IO load. It seems to happen only on servers with centos 5.\nThe versions of postgres that are running are:\n\n8.1.18\n8...
[ { "msg_contents": "I have a lot of centos servers which are running postgres. Postgres isn't used\nthat heavily on any of them, but lately, the stats collector process keeps\ncausing tons of IO load. It seems to happen only on servers with centos 5.\nThe versions of postgres that are running are:\n\n8.1.18\n8...
[ { "msg_contents": "Hi foilks\n\nI am using PG 8.3 from Java. I am considering a performance tweak which will\ninvolve holding about 150 java.sql.PreparedStatment objects open against a\nsingle PGSQL connection. Is this safe?\n\nI know that MySQL does not support prepared statements *per se*, and so\ntheir imple...
[ { "msg_contents": "Hello,\n\nI am struggling to understand why for certain criteria that i supply for a\nquery alters the the query plan. In my \"good\" case i can see that an index\nis used, in my bad case where i only change the text value of the criteria,\nbut not the criteria itslef (ie change/add the condi...
[ { "msg_contents": "Hi,\n\nwe are seeing latency spikes in the 2-3 second range (sometimes 8-10s) for \nqueries that usually take 3-4ms on our systems and I am running out of things to \ntry to get rid of them. Perhaps someone here has more ideas - here's a \ndescription of the systems and what I've tried with n...
[ { "msg_contents": "Hey folks\n\nI am trying to do a full table scan on a large table from Java, using a\nstraightforward \"select * from foo\". I've run into these problems:\n\n1. By default, the PG JDBC driver attempts to suck the entire result set\ninto RAM, resulting in *java.lang.OutOfMemoryError* ... this ...
[ { "msg_contents": "All,\n\nWe're having a very strange problem where autovacuum does not complete\non a Postgres 8.3.8/Solaris 5.10 system. The reason I say strange is:\nthis is one of a twin pair of identical systems,and the other system\ndoes not have this issue.\n\nBasically, vacuuming of a table which norm...
[ { "msg_contents": "When a connection is used for both reading and writing, a commit() also\ndestroys any open cursors. Simple workaround - use two connections.\n\nSee full discussion on JDBC list.\n\nCheers\nDave\n\nOn Thu, Apr 15, 2010 at 3:01 PM, Dave Crooke <dcrooke@gmail.com> wrote:\n\n> I have followed the...
[ { "msg_contents": "Hello.\n\nI have a query that performs very poor because there is a limit on join\ncolumn that is not applied to other columns:\n\nselect * from company this_ left outer join company_tag this_1_ on\nthis_.id=this_1_.company_id left outer join company_measures companymea2_ on\nthis_.id=company...
[ { "msg_contents": "Scott - I tried to post a SOLVED followup to the JDBC list but it was\nrejected :-!\n\nI now have the opposite problem of getting rid of the cursor :-)\nResultSet.close() does not work. I am trying to do a DROP TABLE from the\nother Connection, to whack the table I just finished the ETL on, b...
[ { "msg_contents": "Statement.close() appears to get the job done (in my envrionment, PG's\ndriver never sees a Connection.close() because of DBCP).\n\nI'd consider the fact that ResultSet.close() does not release the implicit\ncursor to be something of a bug, but it may well have been fixed already.\n\nCheers\n...
[ { "msg_contents": "Hi,\n \nI am using dbt2 on Linux 64 (CentOS release 5.3 (Final)) . I have compiled latest postgresql-8.4.3 code on the machine and run dbt2 against it. I am little confused about the results. I ran dbt2 with the following configuration i.e.\n \nDBT2 Options :\n WAREHOUSES=75\n DB_CONNEC...
[ { "msg_contents": "Howdy all,\n\nI've got a huge server running just postgres. It's got 48 cores and 256GB of ram. Redhat 5.4, Postgres 8.3.9.\n64bit OS. No users currently.\n\nI've got a J2EE app that loads data into the DB, it's got logic behind it so it's not a simple bulk load, so\ni don't think we can use ...
[ { "msg_contents": "Hi,\n\nI have access to servers running 8.3.1, 8.3.8, 8.4.2 and 8.4.3. I have \nnoticed that on the 8.4.* versions, a lot of our code is either taking \nmuch longer to complete, or never completing. I think I have isolated \nthe problem to queries using in(), not in() or not exists(). I've...
[ { "msg_contents": "I have a DB with small and large tables that can go up to 15G.\nFor performance benefits, it appears that analyze has much less cost\nthan vacuum, but the same benefits?\nI can’t find any clear recommendations for frequencies and am\nconsidering these parameters:\n\nAutovacuum_vacuum_threshol...
[ { "msg_contents": "I have previously discussed my very long PL/PGSQL stored procedure on this\nlist. However, without getting into too many details, I have another\nperformance-related question.\n\nThe procedure currently uses cursors to return multiple result sets to the\nprogram executing the procedure. Basic...
[ { "msg_contents": "Please do this small optimization if it is possible. It seem that the \noptimizer have the all information to create a fast plan but it does not \ndo that.\n\ncreate temp table t1 (id bigint, t bigint);\n\ninsert into t1 values (1, 1);\ninsert into t1 values (2, 2);\ninsert into t1 values (2,...
[ { "msg_contents": "Hello, everybody!\n\nI'm using PostgreSQL 8.4.3, compiled by Visual C++ build 1400, 32-bit on\nWindows XP SP3.\nI use following data model for issue reproducing.\n\nCREATE TABLE test1\n(\n id integer NOT NULL,\n \"value\" double precision,\n CONSTRAINT test1_pkey PRIMARY KEY (id)\n);\n\nCR...
[ { "msg_contents": "I have a 16G box and tmpfs is configured to use 8G for tmpfs .\n\nIs a lot of memory being wasted that can be used for Postgres ? (I am\nnot seeing any performance issues, but I am not clear how Linux uses\nthe tmpfs and how Postgres would be affected by the reduction in\nmemory)\n\nSriram\n"...
[ { "msg_contents": "Hello,\n\nI'm about to embark on a partitioning project to improve read performance on some of our tables:\n\ndb=# select relname,n_live_tup,pg_size_pretty(pg_relation_size(relid)) from pg_stat_all_tables where schemaname = 'public' order by n_live_tup desc limit 10;\n relname ...
[ { "msg_contents": "Hi,\n\nI am trying to have synchronous master-master replication in PostgreSQL8.4 using PgPool II. I am not able to configure PgPool on the system, it gives me an error, libpq is not installed or libpq is old.\n\nI have tried the command , ./configure -with-pgsql = PostgreSQL dir -with-pgsql-...
[ { "msg_contents": "El 07/05/2010 15:37, Mark Stosberg escribi�:\n> Hello,\n>\n> We've been a satified user of PostgreSQL for several years, and use it\n> to power a national pet adoption website: http://www.adoptapet.com/\n>\n> Recently we've had a regularly-timed middle-of-the-night problem where\n> database...
[ { "msg_contents": "Jignesh, All:\n\nMost of our Solaris users have been, I think, following Jignesh's advice\nfrom his benchmark tests to set ZFS page size to 8K for the data zpool.\n However, I've discovered that this is sometimes a serious problem for\nsome hardware.\n\nFor example, having the recordsize set ...
[ { "msg_contents": "Hi all!\n\nWe moved from MySQL to Postgresql for some of our projects. So far\nwe're very impressed with the performance (especially INSERTs and\nUPDATEs), except for a strange problem with the following bulk delete\nquery:\n\nDELETE FROM table1 WHERE table2_id = ?\n\nI went through these Wik...
[ { "msg_contents": "I have a message posted in pgsql-general that outlines what I thought\nwas an indexing problem - it's not, so I'm bringing it here.\n\nI dumped the table from our production system and stuffed it into a test\nmachine, then started refining and playing with the query until I was\nable to get i...
[ { "msg_contents": "Hello all,\n\nA query ran twice in succession performs VERY poorly the first time as it \niterates through the nested loop. The second time, it rips. Please see SQL, \nSLOW PLAN and FAST PLAN below.\n\nI don't know why these nested loops are taking so long to execute.\n\" -> Nested Loop (c...
[ { "msg_contents": "Hi all,\n In my database application, I've a table whose records can reach 10M\nand insertions can happen at a faster rate like 100 insertions per second in\nthe peak times. I configured postgres to do auto vacuum on hourly basis. I\nhave frontend GUI application in CGI which displays th...
[ { "msg_contents": "venu madhav wrote:\n \n>>> AND e.timestamp >= '1270449180'\n>>> AND e.timestamp < '1273473180'\n>>> ORDER BY.\n>>> e.cid DESC,\n>>> e.cid DESC\n>>> limit 21\n>>> offset 10539780\n \n> The second column acts as a secondary key for sorting if the\n> primary sorting key is a different column. F...
[ { "msg_contents": "Hi\n\nI have a situation at my work which I simply don't understand and hope \nthat here I can find some explanations.\n\nWhat is on the scene:\nA - old 'server' PC AMD Athlon64 3000+, 2GB RAM, 1 ATA HDD 150GB, Debian \netch, postgresql 8.1.19\nB - new server HP DL 360, 12GB RAM, Intel Xeon 8...
[ { "msg_contents": "Hi\n\nI have a situation at my work which I simply don't understand and hope\nthat here I can find some explanations.\n\nWhat is on the scene:\nA - old 'server' PC AMD Athlon64 3000+, 2GB RAM, 1 ATA HDD 150GB, Debian\netch, postgresql 8.1.19\nB - new server HP DL 360, 12GB RAM, Intel Xeon 8 c...
[ { "msg_contents": "\nThis is not a rigorous test and should not be used as a direct comparison\nbetween\noperating systems. My objective was to estimate the ZFS toll in Postgres,\nand\nwhat to expect in performance, comparing to the old server this machine will\nbe replacing. Not all possible configurations wer...
[ { "msg_contents": "Sample code:\n\nSELECT *\nFROM MyTable\nWHERE foo = 'bar' AND MySlowFunc('foo') = 'bar'\n\nLet's say this required a SEQSCAN because there were no indexes to support \ncolumn foo. For every row where foo <> 'bar' would the filter on the SEQSCAN \nshort-circuit the AND return false right away,...
[ { "msg_contents": "Machine: 8 core AMD opteron 2.1GHz, 12 disk RAID-10, 2 disk pg_xlog,\nRHEL 5.4 pg version 8.3.9 (upgrading soon to 8.3.11 or so)\n\nThis query:\nSELECT sum(f.bytes) AS sum FROM files f INNER JOIN events ev ON f.eid\n= ev.eid WHERE ev.orgid = 969677;\n\nis choosing a merge join, which never re...
[ { "msg_contents": "Hi,\n\nI recently switched to PostgreSQL from MySQL so that I can use PL/R for data\nanalysis. The query in MySQL form (against a more complex table structure)\ntakes ~5 seconds to run. The query in PostgreSQL I have yet to let finish,\nas it takes over a minute. I think I have the correct ta...
[ { "msg_contents": "Hello,\n\nSorry for the re-post  - not sure list is the relevant one, I included\nslightly changed query in the previous message, sent to bugs list.\n\nI have an ORM-generated queries where parent table keys are used to\nfetch the records from the child table (with relevant FK indicies),\nwhe...
[ { "msg_contents": "Hi All,\n In my application we are using postgres which runs on an embedded\nbox. I have configured autovacuum to run once for every one hour. It has 5\ndifferent databases in it. When I saw the log messages, I found that it is\nrunning autovacuum on one database every hour. As a result...
[ { "msg_contents": "We're using a function that when run as a select statement outside of the \nfunction takes roughly 1.5s to complete whereas running an identical\nquery within a function is taking around 55s to complete.\n\nWe are lost as to why placing this query within a function as opposed to\nsubstituting...
[ { "msg_contents": "Hi everyone,\n\nI use DBD::Pg to interface with our 8.4.2 database, but for a particular query, performance is horrible. I'm assuming that the behavior of $dbh->prepare is as if I did PREPARE foo AS (query), so I did an explain analyze in the commandline:\n> db_alpha=# prepare foo6 as (SELEC...
[ { "msg_contents": "Hi group,\n\nI could really use your help with this one. I don't have all the\ndetails right now (I can provide more descriptions tomorrow and logs\nif needed), but maybe this will be enough:\n\nI have written a PG (8.3.8) module, which uses Flex Lexical Analyser.\nIt takes text from database...
[ { "msg_contents": "Hello,\n\nI work for a web app to send email newsletters, and I have one question\nabout postgres' performance in two different setups. Actually we have one\n4GB Ram VPS running our app server (it's a rails app under nginx and thin)\nand a 4GB Ram VPS running the database (18GB). We want to m...
[ { "msg_contents": "Hi,\n\nI wrote a query (see below) that extracts climate data from weather stations\nwithin a given radius of a city using the dates for which those weather\nstations actually have data. The query uses the measurement table's only\nindex:\n\nCREATE UNIQUE INDEX measurement_001_stc_idx\n ON c...
[ { "msg_contents": "Greetings,\n\nin \nhttp://archives.postgresql.org/message-id/1056648218.7041.11.camel@jester, \nit is stated that the performance of temporary tables is \"the same as a \nregular table but without\nWAL on the table contents.\".\n\nI have a datamining-type application which makes heavy use of ...
[ { "msg_contents": "We're using a function that when run as a select statement outside of the \nfunction takes roughly 1.5s to complete whereas running an identical\nquery within a function is taking around 55s to complete.\n\nWe are lost as to why placing this query within a function as opposed to\nsubstituting...
[ { "msg_contents": "Good day list \r\n\r\nI would appreciate some comments to the following: \r\n\r\nI have a Dell PowerEdge SC1420 server with 2 GB of RAM 1 DD 73 Gb SCSI Ulltra320 2 Xeon (4 \r\ncache) with PGSQL 7.3.7 \r\n\r\nrunning GNU / Linux Red Hat Enterprise 4, 0 for 32-bit (kernel 2.6.9-5Elsmp) Nahant (...
[ { "msg_contents": "Hello,\nThank you for the clarifications. The plan as run from the psql looks ok,\nalso did not notice any specific locks for this particular query.\n\nLogs of the system running queries are not utterly clear, so chasing the\nparameters for the explosive query is not that simple (shared logs ...
[ { "msg_contents": "I have been Googling for answers on this for a while, and have not been able\nto find anything satisfactory.\n\nImagine that you have a stored procedure which is currently written using\nPL/PGSQL. This stored procedure performs lots of long, complex SQL queries\n(95% SELECT statements, 5% INS...
[ { "msg_contents": "Dear all and Tom,\n\n Recently my company’s postgres DB server sluggish suddenly with a\nhight Context-switching value as below:\n\n \n\n2010-04-07 04:03:15 procs memory swap io\nsystem cpu\n\n2010-04-07 04:03:15 r b swpd free buff cache...
[ { "msg_contents": "Hi,\nI have two similar queries that calculate \"group by\" summaries over a huge table (74.6mil rows).\nThe only difference between two queries is the number of columns that group by is performed on.\nThis difference is causing two different plans which are vary so very much in performance.\...
[ { "msg_contents": "Hi all,\n\nAre there any HP Smart Array disk controller users running linux that\nhave experimented with the new scsi based hpsa driver over the block\nbased cciss driver? I have a p800 controller that I'll try out soon.\n(I hope.)\n\nRegards,\nMark\n", "msg_date": "Thu, 27 May 2010 18:2...
[ { "msg_contents": "I'm using PostgreSQL 9.0 beta 1. I've got the following table definition:\n\n# \\d parts_2576\n Table \"public.parts_2576\"\n Column | Type |\nModifiers\n------------+------------------------+-------------------------------------------...
[ { "msg_contents": "Anybody on the list have any experience with these drives? They get\ngood numbers but I can't find diddly on them on the internet for the\nlast year or so.\n\nhttp://www.stec-inc.com/product/zeusiops.php\n", "msg_date": "Fri, 28 May 2010 13:48:54 -0600", "msg_from": "Scott Marlowe <s...
[ { "msg_contents": "Thom Brown wrote:\n \n> It's a shame I can't optimise it though as the real case that runs\n> is with a limit of 4000 which takes a long time to complete.\n \nPerhaps you should post the real case.\n \n-Kevin\n", "msg_date": "Sat, 29 May 2010 12:01:21 -0500", "msg_from": "\"Kevin Gri...
[ { "msg_contents": "Hi.\n\nI'm trying to get the planner to do sort of the correct thing\nwhen choosing between index-scans on btree indices and\nbitmap heap scans.\n\nThere has been several things going on in parallel. One\nis that the statistics data is off:\nhttp://thread.gmane.org/gmane.comp.db.postgresql.de...
[ { "msg_contents": "Hello,\n\ni have a set of unique data which about 150.000.000 rows. Regullary i \nget a list of data, which contains multiple times of rows than the \nalready stored one. Often around 2.000.000.000 rows. Within this rows \nare many duplicates and often the set of already stored data.\nI want ...
[ { "msg_contents": "I'm needing some tutorial to use and understand the graphical feature\n\"Explain\" of PgAdmin III?\n\nDo you have it?\n\nThanks,\n\nJeres.\n\nI'm needing some tutorial to use and understand the graphical feature \"Explain\" of PgAdmin III?Do you have it?Thanks,Jeres.", "msg_date": "Tue, 1...
[ { "msg_contents": "I'm helping set up a Red Hat 5.5 system for Postgres. I was going to \nrecommend xfs for the filesystem - however it seems that xfs is \nsupported as a technology preview \"layered product\" for 5.5. This \napparently means that the xfs tools are only available via special \nchannels.\n\nWhat...
[ { "msg_contents": "Hi,\n\nSorry to revive an old thread but I have had this error whilst trying to \nconfigure my 32-bit build of postgres to run on a 64-bit Windows Server \n2008 machine with 96GB of RAM (that I would very much like to use with \npostgres).\n\nI am getting:\n\n2010-06-02 11:34:09 BSTFATAL: re...
[ { "msg_contents": "Hallo all\n\nI have a strange problem here.\nI have a pgsql database running on Intel hardware here, it has 8 cores\nhyperthreaded so you see 16 cpu's.\n\nThis box is basically adle @ the moment as it is still in testing yet\ntop shows high usage on just 1 of the cores.\nmpstat gives the belo...
[ { "msg_contents": "hi,\n\nI have a problem space where the main goal is to search backward in time for\nevents. Time can go back very far into the past, and so the\ntable can get quite large. However, the vast majority of queries are all\nsatisfied by relatively recent data. I have an index on the row creati...
[ { "msg_contents": "I cant seem to pinpoint why this query is slow . No full table scans\nare being done. The hash join is taking maximum time. The table\ndev4_act_action has only 3 rows.\n\nbox is a 2 cpu quad core intel 5430 with 32G RAM... Postgres 8.4.0\n1G work_mem\n20G effective_cache\nrandom_page_cost=1\n...
[ { "msg_contents": "I am reposting as my original query was mangled\n\nThe link to the explain plan is here as it does not paste well into\nthe email body.\n\nhttp://explain.depesz.com/s/kHa\n\n\nThe machine is a 2 cpu quad core 5430 with 32G RAM and 6x450G 15K\nsingle raid-10 array\n\n1G work_mem\ndefault_stati...
[ { "msg_contents": "Hi\n\nI am performing a DB insertion and update for 3000+ records and while doing so i get CPU utilization\nto 100% with 67% of CPU used by postgres....\n\nI have also done optimization on queries too...\n\nIs there any way to optimized the CPU utilization for postgres....\n\nI am currently u...
[ { "msg_contents": "Some interesting data about different filesystems I tried with\nPostgreSQL and how it came out.\n\nI have an application that is backed in postgres using Java JDBC to\naccess it. The tests were all done on an opensuse 11.2 64-bit machine,\non the same hard drive (just ran mkfs between each te...
[ { "msg_contents": "Hi.\n\nI hope I'm not going to expose an already known problem, but I couldn't find \nit mailing list archives (I only found http://archives.postgresql.org/pgsql-\nhackers/2009-12/msg01543.php).\n\nOn one of my (non production) machines, I've just seen a very big performance \nregression (I w...
[ { "msg_contents": "Hi,\nI was doing some benchmarking while changing configuration options to try to get more performance out of our postgresql servers and noticed that when running pgbench against 8.4.3 vs 8.4.4 on identical hardware and configuration there is a large difference in performance. I know tuning i...
[ { "msg_contents": "Dear Experts,\n\n \n\nI have data about half milllion to 1 million which is populated into the Postgres db using a batch job (A sql script consists of pl/pgsql functions and views) .\n\n \n\nI am using PostgreSQL 8.3.5 on windows 2003 64-Bit machine.\n\n \n\nIt would be helpful if you can sug...
[ { "msg_contents": "Can anyone please tell me why the following query hangs?\nThis is a part of a large query.\n\nexplain\nselect *\nfrom vtiger_emaildetails\ninner join vtiger_vantage_email_track on vtiger_emaildetails.emailid =\nvtiger_vantage_email_track.mailid\nleft join vtiger_seactivityrel on vtiger_seacti...
[ { "msg_contents": "AI Rumman wrote:\n \n>> Merge Left Join (cost=9500.30..101672.51 rows=2629549 width=506)\n \n> And the query does not return data though I have been waiting for\n> 10 mins.\n>\n> Do you have any idea ?\n \nUnless you use a cursor, PostgreSQL interfaces typically don't show\nany response on t...
[ { "msg_contents": "Hi,\nI have the following query that needs tuning:\n\npsrdb=# explain analyze (SELECT\npsrdb(# MAX(item_rank.rank) AS maxRank\npsrdb(# FROM\npsrdb(# item_rank item_rank\npsrdb(# WHERE\npsrdb(# item_rank.project_id='proj2783'\npsrdb(# AND item_rank.pf_id IS NULL\n...
[ { "msg_contents": "Hi,\n\nI found a slow part of the query:\n\nSELECT\n* date(extract(YEAR FROM m.taken)||'-1-1') d1,*\n* date(extract(YEAR FROM m.taken)||'-1-31') d2*\nFROM\n climate.city c,\n climate.station s,\n climate.station_category sc,\n climate.measurement m\nWHERE\n c.id = 5148 AND ...\n\nDate...
[ { "msg_contents": "Tom,\n\nFirst off, I wouldn't use a VM if I could help it, however, sometimes you have to make compromises. With a 16 Gb machine running 64-bit Ubuntu and only PostgreSQL, I'd start by allocating 4 Gb to shared_buffers. That should leave more than enough room for the OS and file system cach...
[ { "msg_contents": "Never say never with computer geeks ....\nhttp://www.youtube.com/watch?v=mJyAA0oPAwE\n\nOn Fri, Jun 11, 2010 at 7:44 AM, Kenneth Marshall <ktm@rice.edu> wrote:\n\n> Hi Anj,\n>\n> That is an indication that your system was less correctly\n> modeled with a random_page_cost=2 which means that th...
[ { "msg_contents": "Hello,\n\nWe are trying to optimize our box for Postgresql. We have i7, 8GB of\nram, 2xSATA RAID1 (software) running on XFS filesystem. We are running\nPostgresql and memcached on that box. Without any optimizations (just\nedited PG config) we got 50 TPS with pg_bench default run (1 client /\...
[ { "msg_contents": "Whenever I run this query, I get out of memory error:\n\n\nexplain analyze\n*select *\nemail_track.count AS \"Emails_Access_Count\",\nactivity.subject AS \"Emails_Subject\",\ncrmentity.crmid AS EntityId_crmentitycrmid\n*from *\n(select * from crmentity where deleted = 0 and createdtime betwee...
[ { "msg_contents": "Can any one please help me in tuning the query?\n\nexplain\nselect *\nfrom (select * from crmentity where deleted = 0 and createdtime between\n(now() - interval '6 month') and now() ) as crmentity\ninner join (select * from activity where activitytype = 'Emails' and\ndate_start between (now(...
[ { "msg_contents": "Hi all,\nI have 2 data bases trying to perform an update query at the same time \non a same table in a third data base using db link.\nI'm getting a dead lock exception:\nERROR: deadlock detected\nDETAIL: Process 27305 waits for ShareLock on transaction 55575; blocked \nby process 27304.\nP...
[ { "msg_contents": "Hi,\nActually i guess the problem is related to the way PG uses to aquire \nlock on the rows that will be updated.\nSuppose the update query will affect 5 rows: A, B, C, D and E.\nApparently the folowing senario is happening:\n 1- Transaction1 locks row A\n 2- Trnasaction2 locks row B...
[ { "msg_contents": "We have a fairly unique need for a local, in-memory cache. This will\nstore data aggregated from other sources. Generating the data only\ntakes a few minutes, and it is updated often. There will be some\nfairly expensive queries of arbitrary complexity run at a fairly high\nrate. We're lookin...
[ { "msg_contents": "Just curious if this would apply to PostgreSQL:\nhttp://queue.acm.org/detail.cfm?id=1814327\n\n<http://queue.acm.org/detail.cfm?id=1814327>Now that I've read it, it seems\nlike a no-brainer. So, how does PostgreSQL deal with the different latencies\ninvolved in accessing data on disk for sear...
[ { "msg_contents": "Good morning List \r\n\r\nIn relation to the process of tuning the engine PostgreSQL database, especially \r\n7.3.7 version that is being used currently, agreaceria me clarify a procedure \r\n\r\nIf I have a server with 2 GB of RAM, it is said that the shared memory segment for \r\nthe engine...
[ { "msg_contents": "Good morning List \r\n\r\nIn relation to the process of tuning the engine PostgreSQL database, especially \r\n7.3.7 version that is being used currently, agreaceria me clarify a procedure \r\n\r\nIf I have a server with 2 GB of RAM, it is said that the shared memory segment for \r\nthe engine...
[ { "msg_contents": "Hello,I will have a web application having postgres 8.4+ as backend. At any given time, there will be max of 1000 parallel web-users interacting with the database (read/write)I wish to do performance testing of 1000 simultaneous read/write to the database.\nI can do a simple unix script on th...
[ { "msg_contents": "Hi,\n\nI am new to this list so please forgive me if it not fits the standards.\n\nI have the following query that I run agains postgresql 8.2:\n\nselect distinct \n m.koid,\n m.name, \n m.farbe, \n m.aktennummer, \n m.durchgefuehrt_von, \n m.durchgefuehrt_bis, \n rf.bezeichnung as rf_...
[ { "msg_contents": "Hi All,\n I am using Postgres 8.1.9 for my application. My application also has\na clean up module which cleans up specified percentage of total database\nsize at regular intervals. Now the problem is I use *pg_database_size* to\nobtain the size of the database. After deleting the record...
[ { "msg_contents": "Hi,\n\nI've noticed something that I find strange with the hash-aggregate\nfeature of Postgres. I'm currently running Postgres v8.4.1 on Debian\nLinux 64-bit.\n\nI have a simple query that when planned either uses hash-aggregates or a\nsort depending on the amount of working memory available....
[ { "msg_contents": "Hello there,\n\nI've searched the web and can find very little on this issue, so I was\nhoping those on this list would be able to shed some light on it.\n\nPerformance has dropped through the floor after converting my db from ASCI\nto UTF8. Is this normal behavior on 8.4.x?\n\nI'm mystified...
[ { "msg_contents": "Some more on the RHEL 5.5 system I'm helping to setup. Some benchmarking \nusing pgbench appeared to suggest that wal_sync_method=open_sync was a \nlittle faster than fdatasync [1]. Now I recall some discussion about \nthis enabling direct io and the general flakiness of this on Linux, so \ni...
[ { "msg_contents": "Hi, \n\nI've noticed something that I find strange with the hash-aggregate feature of Postgres. I'm currently running Postgres v8.4.1 on Debian Linux 64-bit.\n\nI have a simple query that when planned either uses hash-aggregates or a sort depending on the amount of working memory available. T...
[ { "msg_contents": "I think I have read what is to be read about queries being prepared in \nplpgsql functions, but I still can not explain the following, so I thought \nto post it here:\n\nSuppose 2 functions: factor(int,int) and offset(int, int).\nSuppose a third function: convert(float,int,int) which simply r...
[ { "msg_contents": "Which one is good - join between table or using exists in where condition?\n\nQuery 1;\n\nSelect a.*\nfrom a\nwhere exists\n(\nselect 1 from b inner join c on b.id1 = c.id where a.id = b.id)\n\nQuery 2:\nselect a.*\nfrom a\ninner join\n(select b.id from b inner join c on b.id1 = c.id) as q\no...
[ { "msg_contents": "AI Rumman wrote:\n \n> Which one is good - join between table or using exists in where\n> condition?\n \nYour example wouldn't return the same results unless there was at\nmost one matching row in b and one matching row in c, at least\nwithout resorting to DISTINCT (which you don't show). S...
[ { "msg_contents": "Hi.\n\nI have been wondering if anyone has been experimenting with \"really \nagressive\"\nautovacuuming. The database I'm adminstrating rarely have \"long running\" \ntransactions\n(over several minutes). And a fair amount of buffercache and an OS cache of\n(at best 64GB). A lot of the OS ca...
[ { "msg_contents": "Hi,\n\nI'm getting low performance on SUM and GROUP BY queries.\nHow can I improve my database to perform such queries.\n\nHere is my table schema:\n=> \\d acct_2010_25\n Tabela \"public.acct_2010_25\"\n Coluna | Tipo ...
[ { "msg_contents": "Hi folks,\n\nis there a general problem with raid10 performance postgresql on it?\nWe see very low performance on writes (2-3x slower than on less\nperformant servers). I wonder if it is solely problem of raid10\nconfiguration, or if it is postgresql's thing.\n\nWould moving WAL dir to separa...
[ { "msg_contents": "v. 8.4.3 \n\nI have a table that has several indexes, one of which the table is clustered on. If I do an ALTER TABLE Foo ADD COLUMN bar integer not null default -1;\n\nIt re-writes the whole table.\n\n* Does it adhere to the CLUSTER property of the table and write the new version clustered?\...
[ { "msg_contents": "This query seems unreasonable slow on a well-indexed table (13 million\nrows). Separate indexes are present on guardid_id , from_num and\ntargetprt columns.\nThe table was analyzed with a default stats target of 600.\nPostgres 8.1.9 on 2 cpu quad core 5430 with 32G RAM (work_mem=502400)\n 6 ...
[ { "msg_contents": "PasteBin for the vmstat output\nhttp://pastebin.com/mpHCW9gt\n\nOn Wed, Jun 23, 2010 at 8:22 PM, Rajesh Kumar Mallah\n<mallah.rajesh@gmail.com> wrote:\n> Dear List ,\n>\n> I observe that my postgresql (ver 8.4.2) dedicated server has turned cpu\n> bound and there is a high load average in th...
[ { "msg_contents": "On 6/23/10, Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:\n> Rajesh Kumar Mallah <mallah.rajesh@gmail.com> wrote:\n>> PasteBin for the vmstat output\n>> http://pastebin.com/mpHCW9gt\n>>\n>> On Wed, Jun 23, 2010 at 8:22 PM, Rajesh Kumar Mallah\n>> <mallah.rajesh@gmail.com> wrote:\n>>> De...
[ { "msg_contents": "I have a situation where we are limited by the chassis on the box (and cost).\n\nWe have a 12 x 600G hot swappable disk system (raid 10)\nand 2 internal disk ( 2x 146G)\n\nWe would like to maximize storage on the large disks .\n\nDoes it make sense to put the WAL and OS on the internal disks...