threads
listlengths
1
275
[ { "msg_contents": "Dear PostgreSQL developers,\n\nI'm confused about the absence of a very simple optimization\nin PostgreSQL. Suppose we have a VIEW where some columns are\nexpensive to be calculated:\n\n CREATE VIEW a AS\n SELECT\n (... expensive calculation ...) as expensive,\n count(*) a...
[ { "msg_contents": "Hi.\n\nI'm currently testing out PostgreSQL's Full Text Search capabillities.\nWe're currenly using Xapian, it has some nice features and some\ndrawbacks (sorting), so it is especially this area I'm investigating.\n\nI've loaded the database with 50K documents, and the table definition\nis:\n...
[ { "msg_contents": "Jeff, Robert, I am still working on the \"low cardinality\" info you requested. Please bear with me.\n\nIn the meantime, have the following question:\n\nAre there known \"scenarios\" where certain types of SQL queries perform worse in PG\nthan they do in ORacle ?\n\nFor example, I have observ...
[ { "msg_contents": "Hi all,\n\nThe current discussion about \"Indexes on low cardinality columns\" let me discover this \n\"grouped index tuples\" patch (http://community.enterprisedb.com/git/) and its associated \n\"maintain cluster order\" patch (http://community.enterprisedb.com/git/maintain_cluster_order_v5....
[ { "msg_contents": "Hi,\n\nI have two large tables T1 and T2, such that T2 has a FK to T1 (i.e. T2.FK-->\nT1.PK, possibly multiple T2 rows may reference the same T1 row). I have\ndeleted about 2/3 of table T2. I now want to delete all rows in T1 that are\nnot referenced by T2, i.e. all rows in T1 that cannot joi...
[ { "msg_contents": "Hi (running PG8.4.1)\n\nAs far as I have gotten in my test of PG Full Text Search.. I have got\nover 6m documents indexed so far and the index has grown to 37GB. The\nsystems didnt do any autovacuums in the process but I manually vacuumed a\nfew times and that stopped growth for a short peri...
[ { "msg_contents": "Hi guys,\n\nImagine if you will that I have a table thus\n\nCREATE TABLE \"lumps\" (\n \"id\" SERIAL PRIMARY KEY,\n \"name\" TEXT NOT NULL,\n \"data\" BYTEA NOT NULL\n);\n\nImagine I have stored say 1000 rows.\n\nIn each row, we have stored on average\n20 bytes in column \"n...
[ { "msg_contents": "Hi Jeff,\n\n>> Hi all,\n>> \n>> The current discussion about \"Indexes on low cardinality columns\" let\n>> me discover this \n>> \"grouped index tuples\" patch (http://community.enterprisedb.com/git/)\n>> and its associated \n>> \"maintain cluster order\" patch\n>> (http://community.enterpri...
[ { "msg_contents": "I have a reporting query that is taking nearly all of it's time in aggregate\nfunctions and I'm trying to figure out how to optimize it. The query takes\napproximately 170ms when run with \"select *\", but when run with all the\naggregate functions the query takes 18 seconds. The slowness c...
[ { "msg_contents": "Hi\n\nMy indexing base is now up to 7.5m documents, I have raise statistics\ntarget to 1000 for the tsvector column in order to make the\nquery-planner choose more correctly. That works excellent.\n\nTable structure is still:\nftstest=# \\d ftsbody\n Table \"publ...
[ { "msg_contents": "I am running several servers with Postgres 8.3 that are used to house\nlocation data from thousands of devices. Location updates are quite\nfrequent, so our tables rapidly become fairly large (often about 2GB per\nday of growth). We've been using Postgres for close to 10 years now and\nhave...
[ { "msg_contents": "\n\r\nHi,\r\n\r\nIs there any way to get the query plan of the query run in the stored\r\nprocedure?\r\nI am running the following one and it takes 10 minutes in the procedure\r\nwhen it is pretty fast standalone.\r\n\r\nAny ideas would be welcome!\r\n\r\n# EXPLAIN ANALYZE SELECT m.domain_id,...
[ { "msg_contents": "Hi\n\nIt seems to me that the row estimates on a ts_vector search is a bit on\nthe low side for terms that is not in th MCV-list in pg_stats:\n\nftstest=# explain select id from ftstest where ftstest_body_fts @@\nto_tsquery('nonexistingterm') order by id limit 10;\n ...
[ { "msg_contents": "Hi.\n\nI'm currently trying to figure out why the tsearch performance seems to\nvary a lot between different queryplans. I have created a sample dataset\nthat sort of resembles the data I have to work on.\n\nThe script that builds the dataset is at:\nhttp://krogh.cc/~jesper/build-test.pl\nand...
[ { "msg_contents": "Dear all,\n\nI need to optimize a database used by approx 10 people, I don't need to\nhave the perfect config, simply to avoid stupid bottle necks and follow\nthe best practices...\n\nThe database is used from a web interface the whole work day with\n\"normal\" requests (nothing very special)...
[ { "msg_contents": "Postgres consistently does a sequential scan on the child partitions\nfor this query\n\nselect * from partitioned_table\nwhere partitioned_column > current_timestamp - interval 8 days\nwhere x in (select yy from z where colname like 'aaa%')\n\nIf I replace the query with\n\nselect * from part...
[ { "msg_contents": "Hi All,\n\nI use postgresql 8.3.7 as a huge queue. There is a very simple table\nwith six columns and two indices, and about 6 million records are\nwritten into it in every day continously commited every 10 seconds from\n8 clients. The table stores approximately 120 million records, because a...
[ { "msg_contents": "Hi everyone,\n\nI want to model the following scenario for an online marketing application:\n\nUsers can create mailings. The list of recipients can be uploaded as \nspreadsheets with arbitrary columns (each row is a recipient). I expect \nthe following maximum quantities the DB will contain:...
[ { "msg_contents": "Hi,\n\nI have several long text fields in my DB that I would love to compress\n(descriptions, URLs etc). Can you tell me what options exists in PG\n(+pointers please), typical effect on space and run time?\n\nThanks,\n\n-- Shaul\n\nHi,I have several long text fields in my DB that I would love...
[ { "msg_contents": "\nHi all,\n\nI have now readed many many forums and tried many different solutions and I\nam not getting good performance to database. My server is Debian linux, with\n4gb ram, there is also java application and I am giving to that 512mb\n(JAVA_OPTS) memory. In database there is now like 4mil...
[ { "msg_contents": "Hi Hi all,\n\nI have now readed many many forums and tried many different solutions and I\nam not getting good performance to database. My server is Debian linux, with\n4gb ram, there is also java application and I am giving to that 512mb\n(JAVA_OPTS) memory. In database there is now like 4mi...
[ { "msg_contents": "Tom Lane <tgl@sss.pgh.pa.us> wrote:\n \n> Any sane text search application is going to try to filter out\n> common words as stopwords; it's only the failure to do that that's\n> making this run slow.\n \nImagine a large table with a GIN index on a tsvector. The user wants\na particular docum...
[ { "msg_contents": "Does/is it possible for the PG optimizer come up with differnet plans when \nyou're using bind variables vs when you send static values?\n\nlike if my query was\n\nselect * from users (add a bunch of complex joins) where username = 'dave'\nvs\nselect * from users (add a bunch of complex join...
[ { "msg_contents": "All,\n \nI'm trying to understand the free memory usage and why it falls below\n17G sometimes and what could be causing it. Any pointers would be\nappreciated.\n \nroot@prod1 # prtconf\nSystem Configuration: Sun Microsystems sun4u\nMemory size: 32768 Megabytes\n \n[postgres@prod1 ~]$ vmstat...
[ { "msg_contents": "Hello All --\n\nI have a simple queuing application written on top of postgres which \nI'm trying to squeeze some more performance out of.\n\nThe setup is relatively simple: there is a central queue table in \npostgres. Worker daemons do a bounded, ordered, limited SELECT to \ngrab a row,...
[ { "msg_contents": "Hi:\n\nI have an application wherein a process needs to read data from a stream and store the records for further analysis and reporting. The data in the stream is in the form of variable length records with clearly defined fields - so it can be stored in a database or in a file. The only cav...
[ { "msg_contents": "Hi:\n\nI have an application wherein a process needs to read data from a stream and store the records for further analysis and reporting. The data in the stream is in the form of variable length records with clearly defined fields - so it can be stored in a database or in a file. The only cav...
[ { "msg_contents": "Jay Manni wrote:\n> The data in the stream is in the form of variable length records with \n> clearly defined fields ? so it can be stored in a database or in a \n> file. The only caveat is that the rate of records coming in the stream \n> could be several 1000 records a second.\nThere's a fe...
[ { "msg_contents": "Jay Manni wrote:\n\n> The data in the stream is in the form of variable length records with \n> clearly defined fields ? so it can be stored in a database or in a \n> file. The only caveat is that the rate of records coming in the stream \n> could be several 1000 records a second.\n\n\nThere'...
[ { "msg_contents": "Hi folks\n\nI had a couple of semi-newbie questions about this, which I couldn't find\nobvious answers to in the archives ... we are using Postgres 8.3, and the\nbehaviour is the same across Windows and Linux.\n\nI am working with an app which, among other things stores XML files (average\nab...
[ { "msg_contents": "Thanks folks for the quick replies.\n\n1. There is one transaction, connected from the JVM, that is showing\n\"IDLE in transaction\" .... this appears to be a leftover from\nHibernate looking at the schema metadata. It's Apache Jackrabbit, not\nour own code:\n\nhyper9test_1_6=# select c.relna...
[ { "msg_contents": "Hi Developers and Tuners,\n Is there any way to run some query in low priority and some query\nin higher priority in pg. The main reason for this is i need my main\napplication(high priority) to be undisturbed by the sub application(low\npriority) which is running on same DB. Is there...
[ { "msg_contents": "I'm facing a problem where running a CREATE TABLE has slowed down\nsignificantly over time.\n\n \n\nThis is problematic because my application needs to routinely create a new\nschema and create 300 tables in each new schema. In total it takes about 3\nminutes, which may not seem like a big de...
[ { "msg_contents": "\n Hi All,\n\nWe have a bigger table with some million rows. Number of index scans is\nhigh, number of seq reads is low. This table if often joined with\nothers... so we want to buy a new SSD drive, create a tablespace on it\nand put this big table on it. Random read speed on SSD is identica...
[ { "msg_contents": "Hi !\nWe recently had a problem with wal archiving badly impacting the\nperformance of our postgresql master.\nAnd i discovered \"cstream\", that can limite the bandwidth of pipe stream.\n\nHere is our new archive command, FYI, that limit the IO bandwidth to 500KB/s :\narchive_command = '/bi...
[ { "msg_contents": "There's two papers published recently at Duke that I just found, both of \nwhich use PostgreSQL as part of their research:\n\nAutomated SQL Tuning through Trial and (Sometimes) Error: \nhttp://www.cs.duke.edu/~shivnath/papers/dbtest09z.pdf\nTuning Database Configuration Parameters with iTune...
[ { "msg_contents": "Hi Chaps,\n\nI'm putting together some new servers, and whilst I've been happy with our current config of Adaptec 5805's with bbu I've noticed these 5805Z cards, apparently the contents of DRAM is copied into onboard flash upon power failure.\n\nJust wondered if anyone had any experience of t...
[ { "msg_contents": "Brahma Prakash Tiwari escribi�:\n>\n> *Hi all*\n>\n> *Why age (datfrozenxid) in postgres becomes 1073742202 not zero after \n> vacuum of database.*\n>\n> *Thanks in advance *\n>\n> \n>\n> **Brahma Prakash Tiwari**** **\n>\n> DBA\n>\n> -------------------------------------------------------...
[ { "msg_contents": "Hi All,\n\nRunning Pg 8.3RC2, Linux server, w/8GB RAM, OpenSuSE 10.2 OS (yes, I \nknow that's old). I have seen *really* long-running autovacs eating up \nsystem resources. While the below is not an example of *really* long, \nit shows how I killed an autovac which had been running for mor...
[ { "msg_contents": "This is just a heads-up for anyone using Ruby on Rails (with\nActiveRecord) on JRuby who sees performance degradation over time. Each\nRuby runtime instance will degrade query performance slightly. You can\nsee this if the minimum and maximum number of active runtimes are not\nconfigured to...
[ { "msg_contents": "Hello,\n\nI'm about to buy SSD drive(s) for a database. For decision making, I \nused this tech report:\n\nhttp://techreport.com/articles.x/16255/9\nhttp://techreport.com/articles.x/16255/10\n\nHere are my concerns:\n\n * I need at least 32GB disk space. So DRAM based SSD is not a real\n ...
[ { "msg_contents": "\nHello\n\n I just finished implementing a \"search engine\" for my site and found \nts_headline extremely slow when used with a Polish tsearch \nconfiguration, while fast with English. All of it boils down to a simple \ntestcase, but first some background.\n\n I tested on 8.3.1 on G5/OSX 1...
[ { "msg_contents": "Hi, everyone.\n\nBetween postres docs, forum posts, previous similar questions answered and\nrandom blogs, I've read as much as I could about why others have had similar\nproblems in the past before turning to you guys for help, so I really hope\nthis is not some completely obvious oversight ...
[ { "msg_contents": "I've got a pair of servers running PostgreSQL 8.0.4 on Windows. We \nhave several tables that add and delete massive amounts of data in a \nsingle day and are increasingly having a problem with drive \nfragmentation and it appears to be giving us a decent performance hit. \nThis is extern...
[ { "msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHello,\n\nwe are facing a performance regression regarding certain NOT EXISTS\nclauses when moving from 8.3.8 to 8.4.1. It is my understanding that the\nplaner treats LEFT JOINs and NOT EXISTS equally with antijoin in 8.4,\nbut this is causing...
[ { "msg_contents": "Hello everbody,\n\nI�m doing some tests with a large table about 7 milions tuples.\n\nSo, I need to retrieve only the last value for some key. That key has \nabout 20.000 tuples in this table.\n\nSELECT field1\nFROM table_7milions\nWHERE field1 = 'my_key'\nORDER BY field1 DESC\nLIMIT 1\n\nT...
[ { "msg_contents": "Hello,\n\nI've inherited some very...interestingly...\ndesigned tables, and am trying to figure out how to make them usable. I've\ngot an ugly hack in place, but it will not use an index properly, and I'm\nhoping someone will be able to point me in the right direction.\n\nProduction is runni...
[ { "msg_contents": "Are the FSM parameters for each database, or the entire Postgres system? In other words, if I have 100 databases, do I need to increase max_fsm_pages and max_fsm_relations by a factor of 100, or keep them the same as if I just have one database?\n\nI suspect they're per-database, i.e. as I a...
[ { "msg_contents": "Hi All,\n\nI have a stats collection system where I collect stats at specific\nintervals (from network monitoring nodes), and stuff them into a\nPostgreSQL DB. To make make the retrieval faster, I'm using a\npartitioning scheme as follows:\n\nstats_300: data gathered at 5 mins, child tables n...
[ { "msg_contents": "Dear All,\n\nI've just joined this list, so let me first thank you in advance for \nyour hospitality.\n\nI'm having lots of trouble with variously slow running queries on a \nproduction system. I've tried all the \"obvious\" fixes: changing the \nquery planner, checking for indexing, autovacu...
[ { "msg_contents": "\nHi all,\n\nI'm experiencing a strange behavior with my postgresql 8.3:\nperformance is degrading after 3/4 days of running time but if I\njust restart it performance returns back to it's normal value..\nIn normal conditions the postgres process uses about 3% of cpu time\nbut when is in \"de...
[ { "msg_contents": "Richard Neill wrote:\n \n> SELECT ( core.demand.qty - viwcs.wave_end_demand.qty_remaining )\n> FROM\n> core.demand,\n> viwcs.previous_wave\n> LEFT OUTER JOIN viwcs.wave_end_demand USING ( wid )\n> WHERE core.demand.id = viwcs.wave_end_demand.demand_id;\n \nFor comparison, how...
[ { "msg_contents": "Hi,\n\nMy PostgreSQL server has two CPUs (OS: Fedora 11), each with 4 cores. Total\nis 8cores. Now I have several clients running at the same time to do insert\nand update on the same table, each client having its own connection. I have\nmade two testing with clients running in parallel t...
[ { "msg_contents": "Hi all,\n\n(Sorry, I know this is a repeat, but if you're using message threads,\nthe previous one was a reply to an OLD subject.)\n\nThe query below is fairly fast if the commented sub-select is\ncommented, but once I included that column, it takes over 10 minutes to\nreturn results. Can s...
[ { "msg_contents": "I have a table with a number of columns.\n \nI perform \n \nSelect * \nfrom table\norder by a,b\n \nThere is an index on a,b which is clustered (as well as indexes on a and b\nalone).\nI have issued the cluster and anyalze commands.\n \nNevertheless, PostgreSQL performs a Sequential Scan on t...
[ { "msg_contents": "Dear All,\n\nThanks for your help earlier with the previous question. I wonder if I \nmight ask another.\n\n\nWe have various queries that need to run, of which I'm going to focus on \n2, \"vox\" and \"du_report\".\n\nBoth of them are extremely sensitive to the precise values of \nrandom_page...
[ { "msg_contents": "Question:\n\nIs an INSERT command with a SELECT statement in the RETURNING * parameter faster than say an INSERT and then a SELECT? Does the RETURNING * parameter simply amount to a normal SELECT command on the added rows? We need to basically insert a lot of rows as fast as possible, and get...
[ { "msg_contents": "\nHi everybody,\n\nI've got two queries that needs optimizing. Actually, there are others, \nbut these are pretty representative.\n\nYou can see the queries and the corresponding plans at\n\nhttp://bulldog.duhs.duke.edu/~faheem/snpdb/opt.pdf\n\nor\n\nhttp://bulldog.duhs.duke.edu/~faheem/snpdb...
[ { "msg_contents": "Dear all,\n The query is slow when executing in the stored procedure(it is taking around 1 minute). when executing as a sql it is taking 4 seconds.\nbasically i am selecting the varchar column which contain 4000 character. We have as iindex on the table. We have analyzed the table also. Wh...
[ { "msg_contents": "Dear All.\n Can any one give me dynamic sql in postgres stored procedure using \"USING CLAUSE\"\nRegards,\nRam\n\n\n\n\n\n\nDear All.\n    Can any one give me dynamic sql \nin postgres stored procedure using \"USING CLAUSE\"\nRegards,\nRam", "msg_date": "Tue, 24 Nov 2009 16:55:56 +0530...
[ { "msg_contents": "Hello,\nI've run in a severe performance problem with the following statement:\n\nDELETE FROM t1 WHERE t1.annotation_id IN (\n\tSELECT t2.annotation_id FROM t2)\n\nt1 contains about 48M record (table size is 5.8GB), while t2 contains about 60M\nrecord (total size 8.6GB). annotation_id is the ...
[ { "msg_contents": "\nWe're about to purchase a new server to store some of our old databases, \nand I was wondering if someone could advise me on a RAID card. We want to \nmake a 6-drive SATA RAID array out of 2TB drives, and it will be RAID 5 or \n6 because there will be zero write traffic. The priority is stu...
[ { "msg_contents": "Dear All,\n\nThanks very much for your help so far. My understanding of PG is getting \na lot better!\n\nI wonder if I've understood analyze properly: I'm not sure I quite \nunderstand how specific the statistics gathered actually are.\n\n\nIn particular, what happens in the following case:\n...
[ { "msg_contents": "Dear All,\n\nI'm wondering whether Vacuum/analyse (notably by the autovaccuum daemon) \nis responsible for some deadlocks/dropouts I'm seeing.\n\nOne particular table gets hit about 5 times a second (for single row \nupdates and inserts) + associated index changes. This is a very light \nload...
[ { "msg_contents": "Hi,\n\nI am trying to run postgresql functions with threads by using OpenMP. \nI tried to parallelize slot_deform_tuple function(src/backend/access/ \ncommon/heaptuple.c) and added below lines to the code.\n\n#pragma omp parallel\n{\n\t#pragma omp sections\n\t{\n\t\t#pragma omp section\n\t\t...
[ { "msg_contents": "Regards to all the list.\nZFS, the new filesystem developed by the Solaris Development team and \nported to FreeBSD too, have many advantages that can do that all \nsysadmins are questioned\nabout if it is a good filesystem to the PostgreSQL installation.\nAny of you haved tested this filesys...
[ { "msg_contents": "Friendly greetings !\nI use postgresql 8.3.6.\n\nhere is a few info about the table i'm querying :\n-------------------------------------------------------------\n- select count(*) from _article : 17301610\n- select count(*) from _article WHERE (_article.bitfield && getbit(0)) : 6729\n\n\nHer...
[ { "msg_contents": "Perhaps making your select be explicitely part of a read-only\ntransaction rather than letting java make use of an implicit\ntransaction (which may be in auto commit mode)\n\nOn 11/30/09, Waldomiro <waldomiro@shx.com.br> wrote:\n> Hi everybody,\n>\n> I have an java application like this:\n>\n...
[ { "msg_contents": "I have a million-row table (two text columns of ~25 characters each plus two integers, one of which is PK) that is replaced every week. Since I'm doing it on a live system, it's run inside a transaction. This is the only time the table is modified; all other access is read-only.\n\nI wanted...
[ { "msg_contents": "Dear All,\n\nI don't know if this is a stupid question, or not, but I can't \nunderstand the following.\n\nI have a pretty simple query, which runs in about 7ms\n\n SELECT * FROM h.inventory WHERE demand_id =289276563;\n\n\nThe result of this is a 15 row x 17 column table. However, I want t...
[ { "msg_contents": "Hello Everyone,\n\n \n\nI have a very bit big database around 15 million in size, and the dump\nfile is around 12 GB.\n\nWhile importing this dump in to database I have noticed that initially\nquery response time is very slow but it does improves with time.\n\nAny suggestions to improve perfo...
[ { "msg_contents": "\nThe following bug has been logged online:\n\nBug reference: 5228\nLogged by: aftab\nEmail address: akhangd@hotmail.co.uk\nPostgreSQL version: 8.3.8\nOperating system: Centos 5\nDescription: Execution of prepared query is slow when timestamp\nparameter is used\nDe...
[ { "msg_contents": "----------------------------------------------\nTABLE STRUCTURE\n----------------------------------------------\n\nCREATE TABLE gbobjects\n(\n ssid bigint NOT NULL,\n nid character varying NOT NULL,\n inid bigint NOT NULL,\n uid bigint NOT NULL,\n status character varying,\n noofchanges...
[ { "msg_contents": "Hi All,\n\n\nMaybe some questions are quite newbie ones, and I did try hard to scan \nall the articles and documentation, but I did not find a satisfying \nanswer.\n\nI'm running PostgreSQL 8.3.6 on a 32-Bit Centos 4 machine (which I \nprobably should update to 64 Bit soon)\n\n\nI have some t...
[ { "msg_contents": "Hi All,\n\nI want to identify the bottleneck queries inside the procedure. I want to know which of the queries are taking the time. How can I measure time taken to execute the individual Query inside a Procedure ?\n\nThank You\nNiraj Patel\n\n\n________________________________\nFrom: \"pgsql-...
[ { "msg_contents": "On Fri, Dec 4, 2009 at 4:03 PM, Andreas Thiel <andreas.thiel@u-blox.com> wrote:\n> Hi All,\n>\n> Maybe some questions are quite newbie ones, and I did try hard to scan\n> all the articles and documentation, but I did not find a satisfying\n> answer.\n>\n> I'm running PostgreSQL 8.3.6 on a 32-...
[ { "msg_contents": "Hi Andreas,\n\nCould you please properly quote the email? The way you did it is quite \nunreadable because you always have to guess who wrote what.\n\nOn Sunday 06 December 2009 17:06:39 Andreas Thiel wrote:\n> > I'm going to work on the table size of the largest table (result_orig)\n> > itse...
[ { "msg_contents": "On Sunday 06 December 2009 19:20:17 Andreas Thiel wrote:\n> Hi Andres,\n> \n> Thanks a lot for your answers. As bottom line I think the answer is I\n> have to rethink my DB structure.\nCan't answer that one without knowing much more ;)\n\n> > Could you please properly quote the email? The way...
[ { "msg_contents": "Hello All,\n\nI'm in the process of loading a massive amount of data (500 GB). After \nsome initial timings, I'm looking at 260 hours to load the entire 500GB. \n10 days seems like an awfully long time so I'm searching for ways to \nspeed this up. The load is happening in the Amazon cloud (EC...
[ { "msg_contents": "Hello everybody,\n\nwe have severe performance penalty between Postgresql 8.3.8 and 8.4.1\n\nConsider the following tables:\n\nCREATE TABLE xdf.xdf_admin_hierarchy\n(\n admin_place_id integer NOT NULL,\n admin_order smallint NOT NULL,\n iso_country_code character(3) NOT NULL,\n country_id...
[ { "msg_contents": "Hi,\n\nI am looking for a way to let the user know what the estimated time for the\ncurrent transaction he requested and while the transaction is in progress,\nhow much time is elapsed for the transaction as a fraction of the total\nestimated time at a particular instance, by dynamically est...
[ { "msg_contents": "*$ dbt2-run-workload -a pgsql -d 10 -w 1 -c 1 -o\n/home/store/tmp/testdbt2/out-1.o*\npostmaster starting\nDBT-2 test for pgsql started...\n\nDATABASE SYSTEM: localhost\nDATABASE NAME: dbt2\nDATABASE CONNECTIONS: 1\nTERMINAL THREADS: 10\nTERMINALS PER WAREHOUSE: 10\nWAREHOUSES PER THREAD/CLIEN...
[ { "msg_contents": "Hi All,\n\nI have to optimize following query :\n\nSELECT r.TopFamilyID AS FamilyID, FROM CMRules r \n WHERE r.WorkspaceID =18512 \n GROUP BY r.TopFamilyID ;\n\nThe explain plan is as follows :\n\n Group (cost=509989.19..511518.30 rows=9 width=10) (actual time=1783.102...
[ { "msg_contents": "Hello\n\nMy vacuums have suddenly started to fail, seemingly at random. I am\nconfused.\n\nI'm running 8.1.3, with close to a dozen servers, up to 150 databases each.\nI have 8GB of RAM. Vacuums have started to fail on all servers (though only\nthe occasional vacuum) with the following erro...
[ { "msg_contents": "I just installed a shiny new database server with pg 8.4.1 running on \nCentOS 5.4. After using slony to replicate over my database I decided to \n do some basic performance tests to see how spiffy my shiny new server \nis. This machine has 32G ram, over 31 of which is used for the system \...
[ { "msg_contents": "\n\nHello,\n\nPostgreSQL has served us very well powering a busy national pet\nadoption website. Now I'd like to tune our setup further get more out\nof hardware. \n\nWhat I'm noticing is that the while the FreeBSD server has 4 Gigs of\nmemory, there are rarely every more than 2 in use-- the ...
[ { "msg_contents": "Hey,\nI've got a computer which runs but 8.3 and 8.4. To create a db it takes 4s\nfor 8.3 and 9s for 8.4. I have many unit tests which create databases all\nof the time and now run much slower than 8.3 but it seems to be much longer\nas I remember at one point creating databases I considere...
[ { "msg_contents": "Problem: Function call typically takes 2-3 millisecond but at times exceeding 2-3 Minutes. \n===================================================== \n>From the DB logs it seems when multiple processes are trying to execute the function , \nexecution takes sequentially rather than parallel, whi...
[ { "msg_contents": "Dear Pavel, \n\nThanks for quick response. \n\nYes I am using explicit locks but only at row-level, not at table level, will this cause sequential execution? \nselect ...on primary key..... for update; \nMy objective is to execute this function in parallel for different PK entities, for same ...
[ { "msg_contents": "Apparently the latest version of MySQL has solved this problem: http://www.xaprb.com/blog/2006/06/28/why-large-in-clauses-are-problematic/\n\nBut I am running PostgreSQL v8.3 and am observing generally that SELECT ... WHERE ... IN (a, b, c, ...) is much slower than SELECT ... INNER JOIN (SELE...
[ { "msg_contents": "Hello.\n\nI have a problem I don't understand. I hope it's a simple problem and I'm\njust stupid.\n\nWhen I make a subquery Postgres don't care about my indexes and makes\na seq scan instead of a index scan. Why?\n\nIs it possible that the subquery change the datatype and by this make\na inde...
[ { "msg_contents": "Hello!\n\nThere are many questions on internet about whether it is possible to\noptimize \"Bitmap Heap Scan\" somehow without answer, so seems like\nproblem is rather important.\n\nThe query I need to optimize is:\n\nEXPLAIN SELECT date_trunc('day', d.created_at) AS day, COUNT(*) AS\ndownload...
[ { "msg_contents": "We're looking to upgrade our database hardware so that it can sustain \nus while we re-architect some of the more fundamental issues with our \napplications. The first thing to spend money on is usually disks, but \nour database currently lives almost entirely on flash storage, so \nthat'...
[ { "msg_contents": "Hi,\n\nwe experience some strange performance problems, we've already found a \nworkaround for us, but are curious if it's a known problem of the optimizer.\n\nTested with the following Postgres Version: 8.2.15 and 8.3.9\nAUTOVACUUM is enabled, explicit VACUUM and REINDEX both tables and the\...
[ { "msg_contents": "Hi there,\n\nI've got a small question about multicolumn indexes.\n\nI have a table with ~5M rows (43 bytes per column - is that relevant?) \n(but eventually it could grow up to 50M rows), used to store e-mail \nlogs. I am trying to build a web frontend to search mails in this table.\n\nI us...
[ { "msg_contents": "Hi all,\n\nI'm trying to figure out which HW configuration with 3 SATA drives is \nthe best in terms of reliability and performance for Postgres database.\n\nI'm thinking to connect two drives in RAID 0, and to keep the database \n(and WAL) on these disks - to improve the write performance of...
[ { "msg_contents": "Hi,\nWe currently have a large table (9 million rows) of which only the last\ncouple of days worth of data is queried on a regular basis.\nTo improve performance we are thinking of partitioning the table.\n\nOne idea is:\nCurrent_data = last days worth\narchive_data < today (goes back to 2005...
[ { "msg_contents": "This isn't true. IBMs IPS series controllers can the checked and configured via the ipssend utility that works very well in 2.6.x LINUX.\n\n\"Scott Marlowe\" <scott.marlowe@gmail.com> wrote:\n\n>On Thu, Dec 24, 2009 at 11:09 AM, Richard Neill <rn214@cam.ac.uk> wrote:\r\n>>\r\n>>\r\n>> Jeremy...
[ { "msg_contents": "Tom Lane wrote:\n \n> That does look weird. Do we have a self-contained test case?\n \nI've been tinkering with this and I now have a self-contained test\ncase (SQL statements and run results attached). I've debugged through\nit and things don't seem right in set_append_rel_pathlist, since\nc...
[ { "msg_contents": "Hey\nHow are you these days? I bought one apple iphone 3gs black from this\nwebsite www.ynchenxi.com to my surprise,it's original,but much cheaper.You\ncan check it,Hope everything well.\nregards\n\n \nHeyHow are you these days? I bought one apple iphone  3gs black from this website www.yn...