threads
listlengths
1
275
[ { "msg_contents": "Dear Gurus,\n\nVersion: 7.4.6\n\nI use a query on a heavily indexed table which picks a wrong index \nunexpectedly. Since this query is used in response to certain user \ninteractions thousands of times in succession (with different constants), \n500ms is not affordable for us. I can easily w...
[ { "msg_contents": "Hi,\n \n We�ve a SELECT that even without ORDER BY is returning the rows in the order that we liked but when we add the ORDER BY clause the runtime and costs are much bigger.\n \n We have to use ORDER BY otherwise in some future postgresql version probably it will not return in the co...
[ { "msg_contents": "> > It's *got* to be the network configuration on the client machine.\n> \n> We've seen gripes of this sort before --- check the list archives for\n> possible fixes. I seem to recall something about a \"QoS patch\", as\n> well as suggestions to get rid of third-party packages that might be\n...
[ { "msg_contents": "> On Sun, Dec 18, 2005 at 01:10:21AM -0000, Ben Trewern wrote:\n> > I know I should be writing these in C but that's a bit beyond me. I\nwas\n> > going to try PL/Python or PL/Perl or even PL/Ruby. Has anyone any\nidea\n> > which language is fastest, or is the data access going to swamp the\...
[ { "msg_contents": "I am currently using a dual Opteron (248) single core system (RAM\nPC3200) and for a change I am finding that the bottleneck is not disk\nI/O but CPU/RAM (not sure which). The reason for this is that the most\nfrequently accessed tables/indexes are all held in RAM and when\nquerying the datab...
[ { "msg_contents": "Hi all,\n\n On a user's request, I recently added MySQL support to my backup \nprogram which had been written for PostgreSQL exclusively until now. \nWhat surprises me is that MySQL is about 20%(ish) faster than PostgreSQL.\n\n Now, I love PostgreSQL and I want to continue recommending it...
[ { "msg_contents": "What version of postgres?\r\n\r\nCopy has been substantially improved in bizgres and also in 8.1.\r\n- Luke\r\n--------------------------\r\nSent from my BlackBerry Wireless Device\r\n\r\n\r\n-----Original Message-----\r\nFrom: pgsql-performance-owner@postgresql.org <pgsql-performance-owner@p...
[ { "msg_contents": "Tom Lane wrote:\n> I'd expect plpgsql to suck at purely computational tasks, compared to\n> the other PLs, but to win at tasks involving database access. These\n\nThere you go...pl/pgsql is pretty much required learning (it's not\nhard). For classic data processing tasks, it is without peer...
[ { "msg_contents": "Jan Dittmer <jdittmer@sfhq.hn.org> escreveu: What is your work_mem setting? I think the default is 1MB which is\nprobably too low as your trying to sort roughly 150000*100Bytes = 15MB.\n\nJan\n\n I think you would like to say 150000*896Bytes... Am I right? My default work_mem is 2048 and I ...
[ { "msg_contents": "Hi, all.\n\n While working on algorithm of my project I came to question. Let it\nbe table like this (user+cookie pair is the primary key).\n\nINT user\nINT cookie\nINT count\n\n Periodically (with period 10 minutes) this PostgreSQL table\nupdated with my information.\n The main problem that ...
[ { "msg_contents": "Hi,\n \n We have more than 200 customers running 8.0.3 and two weeks ago started migration project to 8.1.1.After the first migration to 8.1.1 we had to return back to 8.0.3 because some applications were not working right.\n \n Our user told me that records are not returning more in th...
[ { "msg_contents": "Frank, \n\n> You definitely DO NOT want to do RAID 5 on a database server. That\n> is probably the worst setup you could have, I've seen it have lower\n> performance than just a single hard disk. \n\nI've seen that on RAID0 and RAID10 as well.\n\nThis is more about the quality and mode...
[ { "msg_contents": "Guys,\n\nGot the following ERROR when i was vacuuming the template0 database.\npostgresql server version is 7.4.5 and stats info in postgresql.conf is\n\n# - Query/Index Statistics Collector -\n\nstats_start_collector = true\nstats_command_string = true\nstats_block_level = true\nstats_row_le...
[ { "msg_contents": "We are trying to ascertain if we are up against the limits of what \npostgres can accomplish without having the tables clustered. We would \nprefer not to have to cluster our tables because according to the \ndocumentation this is a one time operation and not maintained. Is there \nany othe...
[ { "msg_contents": "Hi!\n\nThis is not actually a question about performance, but an inquiry to help \nme understand what is going on. Below this text are two EXPLAIN ANALYZE \noutputs, before and after VACUUM ANALYZE was run. I have several questions \nabout the proposed plans (mostly the first one). There is o...
[ { "msg_contents": "Hello,\n\twe have a PostgreSQL for datawarehousing. As we heard of so many enhancements \nfor 8.0 and 8.1 versions we dicided to upgrade from 7.4 to 8.1. I must say \nthat the COPY FROM processes are much faster now from 27 to 17 minutes. Some \nqueries where slower, but the performance probl...
[ { "msg_contents": "Hi all,\n\n Which is the best way to import data to tables? I have to import \n90000 rows into a column and doing it as inserts takes ages. Would be \nfaster with copy? is there any other alternative to insert/copy?\n\nCheers!\n", "msg_date": "Thu, 29 Dec 2005 10:48:26 +0100", "msg_...
[ { "msg_contents": "I have an instance of PG 7.4 where I would really like to execute some\nschema changes, but every schema change is blocked waiting for a process\ndoing a COPY. That query is:\n\nCOPY drill.trades (manager, sec_id, ticker, bridge_tkr, date, \"type\",\nshort, quantity, price, prin, net_money, ...
[ { "msg_contents": "A few WEEKS ago, the autovacuum on my instance of pg 7.4 unilaterally\ndecided to VACUUM a table which has not been updated in over a year and\nis more than one terabyte on the disk. Because of the very high\ntransaction load on this database, this VACUUM has been ruining\nperformance for al...
[ { "msg_contents": "Is it possible to have the planner consider the second plan instead of the \nfirst?\n\nadmpostgres4=> explain analyze select * from users where id in (select \nuser_id from user2user_group where user_group_id = 769694);\n \nQUERY PLAN \n\n------------------------------------------------------...
[ { "msg_contents": "I have questions about how to improve the write performance of PostgreSQL for logging data from a real-time simulation. We found that MySQL 4.1.3 could log about 1480 objects/second using MyISAM tables or about 1225 objects/second using InnoDB tables, but PostgreSQL 8.0.3 could log only about...
[ { "msg_contents": "I have a table which stores cumulative values\nI would like to display/chart the deltas between successive data collections\n\nIf my primary key only increments by 1, I could write a simple query\n\nselect b.gc_minor - a.gc_minor, b.gc_major - a.gc_major\n from jam_trace_sys a, jam_trace_sys...
[ { "msg_contents": "Hello,\n\nWe have a web-application running against a postgres 8.1 database, and \nbasically, every time I run a report after no other reports have been run for \nseveral hours, the report will take significantly longer (e.g. 30 seconds), \nthen if I re-run the report again, or run the report...
[ { "msg_contents": "Hi to all, \n\nI have the following query:\n\nSELECT count(*) FROM orders o\n INNER JOIN report r ON r.id_order=o.id\n WHERE o.id_status>3\n\nExplaing analyze:\nAggregate (cost=8941.82..8941.82 rows=1 width=0) (actual time=1003.297..1003.298 rows=1 loops=1)\n -> Hash Join (cost=...
[ { "msg_contents": "\nPg: 7.4.9\nRH: ES v3\nQuad-Xeon\n16G ram\n\nThe following SQL takes 4+ mins to run. I have indexes on all join fields\nand I've tried rearranging the table orders but haven't had any luck. I\nhave done the usual vacuums analyze and even vacuum FULL just to make sure\nbut still the same re...
[ { "msg_contents": "Howdy.\n\nI'm running into scaling problems when testing with a 16gb (data \n+indexes) database.\n\nI can run a query, and it returns in a few seconds. If I run it \nagain, it returns in a few milliseconds. I realize this is because \nduring subsequent runs, the necessary disk pages have be...
[ { "msg_contents": "\nWe have to inserts a records(15000- 20000) into a table which also\ncontains (15000-20000) records, then after insertion, we have to delete\nthe records according to a business rule.\nAbove process is taking place in a transaction and we are using batches\nof 128 to insert records.\nEveryth...
[ { "msg_contents": "Hello\n\nwhat is the best for a char field with less than 1000 characters?\na text field or a varchar(1000)\n\nthanks\n\n", "msg_date": "Mon, 09 Jan 2006 11:58:19 +0100", "msg_from": "TNO <tnodev@free.fr>", "msg_from_op": true, "msg_subject": "[PERFORMANCE] Beetwen text and va...
[ { "msg_contents": "Hello gentlemen,\n\nAlthough this is my first post on the list, I am a fairly experienced PostgreSQL \nprogrammer. I am writing an ERP application suite using PostgreSQL as the \npreferred DBMS. Let me state that the SQL DDL is automatically generated by a \nCASE tool from an ER model. The ge...
[ { "msg_contents": "Suppose a table with structure:\n\nTable \"public.t4\"\n\n Column | Type | Modifiers\n--------+---------------+-----------\n c1 | character(10) | not null\n c2 | character(6) | not null\n c3 | date | not null\n c4 | character(30) |\n c5 | numeric(10,2) |...
[ { "msg_contents": "Question,\n\nHow exactly is Postgres and Linux use the memory?\n\nI have serveral databases that have multi GB indexes on very large tables.\nOn our current servers, the indexes can fit into memory but not the data\n(servers have 8 - 12 GB). However, my boss is wanting to get new servers\nfo...
[ { "msg_contents": "Hello,\n\nI've a performance problem with the planner algorithm choosen in a website.\nSee the difference between this:\n\n\thttp://klive.cpushare.com/?scheduler=cooperative\n\nand this:\n\n\thttp://klive.cpushare.com/?scheduler=preemptive\n\n(note, there's much less data to show with preempt...
[ { "msg_contents": "Hey folks,\n\nI'm working with a query to get more info out with a join. The base query works great speed wise because of index usage. When the join is tossed in, the index is no longer used, so the query performance tanks.\n\nCan anyone advise on how to get the index usage back?\n\nweather...
[ { "msg_contents": "Hello,\n\nI have to develop a companies search engine (looks like the Yellow\npages). We're using PostgreSQL at the company, and the initial DB is\n2GB large, as it\nhas companies from the entire world, with a fair amount of information.\n\nWhat reading do you suggest so that we can develop t...
[ { "msg_contents": "Hello,\n \nI have an inner join query that runs fast, but I when I change to a left\njoin the query runs 96 times slower. I wish I could always do an inner\njoin, but there are rare times when there isn't data in the right hand\ntable. I could expect a small performance hit, but the differe...
[ { "msg_contents": "Hello!\nHas anyone got any tips for speeding up this query? It currently \ntakes hours to start.\n\nPostgreSQL v8.x on (SuSe Linux)\nThanks!\n\n\nno_people=# explain SELECT r.id AS r_id, r.firstname || ' ' || \nr.lastname AS r_name, ad.id AS ad_id, ad.type AS ad_type, ad.address \nAS ad_ad...
[ { "msg_contents": "Hi ,\n\n\n I am having problem optimizing this query, Postgres optimizer uses a \nplan which invloves seq-scan on a table. And when I choose a option to \ndisable seq-scan it uses index-scan and obviously the query is much faster.\n All tables are daily vacummed and analyzed as per docs...
[ { "msg_contents": "Hi ,\n\n\n I am having problem optimizing this query, Postgres optimizer uses a \nplan which invloves seq-scan on a table. And when I choose a option to \ndisable seq-scan it uses index-scan and obviously the query is much faster.\n All tables are daily vacummed and analyzed as per docs.\...
[ { "msg_contents": "\nHi,\n\nI'm running version 8.1 on a dedicated Sun v20 server (2 AMD x64's)\nwith 4Gb of RAM. I have recently noticed that the performance of\nsome more complex queries is extremely variable and irregular.\nFor example, I currently have a query that returns a small number \nof rows (5) by jo...
[ { "msg_contents": "Hi,\n \nI've looked around through the docs, but can't seem to find an answer to\nthis. If I change a column's statistics with \"Alter table alter column\nset statistics n\", is there a way I can later go back and see what the\nnumber is for that column? I want to be able to tell which colu...
[ { "msg_contents": "\nHi,\n\nI'm running version 8.1 on a dedicated Sun v20 server (2 AMD x64's)\nwith 4Gb of RAM. I have recently noticed that the performance of\nsome more complex queries is extremely variable and irregular.\nFor example, I currently have a query that returns a small number \nof rows (5) by jo...
[ { "msg_contents": "I do a load of sql joins using primary and foreign keys. What i would like\nto know if PostgreSQL creates indexes on these columns automatically (in\naddition to using them to maintain referential integrity) or do I have to\ncreate an index manually on these columns as indicated below?\n\nCRE...
[ { "msg_contents": "\n\n\n\n\n\nHi,\n\nI'm working on a project, whose implementation deals with PostgreSQL. A brief description of our application is given below.\n\nI'm running version 8.0 on a dedicated server 1Gb of RAM. \nmy database isn't complex, it contains just 2 simple tables.\n\nCREATE TABLE cookies...
[ { "msg_contents": "Hi,\n\nI've got a set-returning function, defined as STABLE, that I reference twice \nwithin a single query, yet appears to be evaluated via two seperate function \nscans. I created a simple query that calls the function below and joins the \nresults to itself (Note: in case you wonder why...
[ { "msg_contents": "Hi all,\n\nIs PostgreSQL able to throw unnecessary joins?\nFor example I have two tables, and I join then with their primary keys, say\ntype of bigint . In this case if I don't reference to one of the\ntables anywhere except the join condition, then the join can be eliminated.\nOr if I do a \...
[ { "msg_contents": "Porting app from 7.3 to 8.1, have hit a query that is slower. Everything\nis analyzed / vacuumed appropriately. I've managed to pare the query\ndown into something manageable that still gives me a problem, it looks\nlike this:\n\nSELECT \n * \nFROM\n (\n SELECT\n softw...
[ { "msg_contents": "Jamal Ghaffour a écrit :\n\n\n\n\nHi,\n\nI'm working on a project, whose implementation deals with PostgreSQL. A brief description of our application is given below.\n\nI'm running version 8.0 on a dedicated server 1Gb of RAM. \nmy database isn't complex, it contains just 2 simple tables.\n...
[ { "msg_contents": "OIDs seem to be on their way out, and most of the time you can get a\nmore helpful result by using a serial primary key anyway, but I wonder\nif there's any extension to INSERT to help identify what unique id a\nnewly-inserted key will get? Using OIDs the insert would return the OID\nof the i...
[ { "msg_contents": "Hi!\n\nI need to write a few pages about Postgresql, to convince some suits. They\nhave a few millions of records, on a few site, but they want to know the\npractical limits of Postgresql. So i need some information about the\nbiggest (in storage space, in record number, in field number, and ...
[ { "msg_contents": "I have been working on optimizing a PostgreSQL server for weekly updates\nwhere data is only updated once a week then for the remaining portion of the\nweek the data is static. So far I have set fsync to off and increased the\nsegment size among other things. I need to ensure that at the en...
[ { "msg_contents": "I am aware that what I am dreaming of is already available through cursors, but \nin a web application, cursors are bad boys, and should be avoided. What I would \nlike to be able to do is to plan a query and run the plan to retreive a limited \nnumber of rows as well as the executor's state....
[ { "msg_contents": "Hi,\n\nI've been reading an interesting article which compared different \ndatabase systems, focusing on materialized views. I was wondering how \nthe postgresql developers feel about this feature ... is it planned to \nimplement materialized views any time soon? They would greatly improve \n...
[ { "msg_contents": "Hi,\n\nI always think that use of * in SELECT affected in the performance,\nbecoming the search slowest.\n\nBut I read in the a Postgres book's that it increases the speed of\nsearch.\n\nAnd now???? What the more fast?\n\nThanks\n\n", "msg_date": "Mon, 16 Jan 2006 14:49:28 +0000", "ms...
[ { "msg_contents": "Hi,\nWe have a horribly designed postgres 8.1.0 database (not my fault!). I \nam pretty new to database design and management and have really no idea \nhow to diagnose performance problems. The db has only 25-30 tables, and \nhalf of them are only there because our codebase needs them (long s...
[ { "msg_contents": "Hi,\n\nI already read the documentation for to use the SPI_PREPARE and\nSPI_EXEC... but sincerely I don't understand how I will use this\nresource in my statements.\n\nI looked for examples, but I din't good examples :(..\n\nSomebody can help me?\n\nThanks.\n\nMarcos.\n\n\n\n", "msg_date"...
[ { "msg_contents": "hi,\n\nI'm curious as to why autovacuum is not designed to do full vacuum. I \nknow that the necessity of doing full vacuums can be reduced by \nincreasing the FSM, but in my opinion that is the wrong decision for \nmany applications. My application does not continuously \ninsert/update/delet...
[ { "msg_contents": "Michael Riess wrote:\n> Hi,\n> \n> yes, some heavily used tables contain approx. 90% free space after a\n> week. I'll try to increase FSM even more, but I think that I will\n> still have to run a full vacuum every week. Prior to 8.1 I was using\n> 7.4 and ran a full vacuum every day, so the a...
[ { "msg_contents": "8.1.1, everything vacuumed/analyzed. basically i have two queries that\nwhen executed individually run quite quickly, but if I try to left join\nthe second query onto the first, everything gets quite a bit slower. \n\nrms=# explain analyze\nrms-# SELECT\nrms-# software_download.*\nrms-#...
[ { "msg_contents": "Hi,\n\nI have a postges 8.1.1 table with over 29 million rows in it. The colunm \n(file_name) that I need to search on has entries like the following:\n\n MOD04_L2.A2005311.1400.004.2005312013848.hdf \n\n MYD04_L2.A2005311.0700.004.200531...
[ { "msg_contents": "I'm trying to query a table with 250,000+ rows. My query requires I provide 5 colums in my \"order by\" clause:\n\nselect\n column\nfrom table \nwhere \n column >= '2004-3-22 0:0:0'\norder by \n ds.receipt desc,\n ds.carrier_id asc,\n ds.batchnum asc,\n encounternum asc,\n ds...
[ { "msg_contents": "Hi,\n\nI have two tables foobar and foobar2 (which inherits from foobar, no \nextra columns).\nfoobar2 has all the data (574,576 rows), foobar is empty.\nBoth foobar and foobar2 have an index on the only column 'id'. Now I \nhave a list of ids in a tmp_ids tables.\nA query on foobar2 (child ...
[ { "msg_contents": "Hi,\n\nI have a simple question about performance using two resources.\n\nWhat's have the best performance?\n\nlower( col1 ) LIKE lower( 'myquestion%' )\n\nOR\n\ncol1 ILIKE 'myquestion%'\n\nThanks.\n\n\n", "msg_date": "Wed, 18 Jan 2006 09:10:30 +0000", "msg_from": "Marcos <mjs_ops@gmx...
[ { "msg_contents": "Hi,\n \nI am currently doing large weekly updates with fsync=off. My updates\ninvolves SELECT, UPDATE, DELETE and etc. Setting fsync=off works for me\nsince I take a complete backup before the weekly update and run a \"sync\" and\n\"CHECKPOINT\" after each weekly update has completed to ens...
[ { "msg_contents": "Hi,\n \nWill simple queries such as \"SELECT * FROM blah_table WHERE tag='x'; work\nany faster by putting them into a stored procedure?\n \nBenjamin Arai\nbarai@cs.ucr.edu\nhttp://www.benjaminarai.com <http://www.benjaminarai.com/> \n \n\n\n\n\n\nHi,\n \nWill simple queries \nsuch as \"SELECT...
[ { "msg_contents": "Hi,\n \n I am trying to perform the following type of query 'select\npatientname ... from patient were patientname LIKE 'JONES%, %' order by\npatientname asc limit 100'. There about 1.4 million rows in the table.\nOn my windows machine (2GB Ram ,3Ghz, Windows XP, 120GB Hard Drive,\npostgres...
[ { "msg_contents": "\nThe following query took 17 seconds:\nselect count(LogSN), min(LogSN), max(LogSN) from Log where create_time < \n'2005/10/19';\n\nFiguring that getting the count will involve scanning the database, I took \nit out, but the new query took 200 seconds:\nselect min(LogSN), max(LogSN) from Log ...
[ { "msg_contents": "Hi there,\n\nI am running a website where each page connects to the DB to retrieve and\nwrite information. Each page load uses a separate connection (rather than\njust sharing one as is the common case) because I use a lot of transactions.\n\nI am looking to speed up performance, and since ea...
[ { "msg_contents": "Hello!\n\nI noticed that the creation of a GIST index for tsearch2 takes very\nlong - about 20 minutes. CPU utilization is 100 %, the resulting\nindex file size is ~25 MB. Is this behaviour normal?\n\nFull text columns: title author_list\ntsearch2 word lists: fti_title fti_aut...
[ { "msg_contents": "Hi,\nI have a query that does a left outer join. The query gets some text \nfrom a reference table where one of the query's main tables may or may \nnot have the text's tables id. It wasn't super fast, but now it simply \nwon't execute. It won't complete either through odbc or via pgadmin \n(...
[ { "msg_contents": ">>Hi,\n>> \n>> Will simple queries such as \"SELECT * FROM blah_table WHERE tag='x'; work any\n>> faster by putting them into a stored procedure?\n\n>\n>IMHO no, why do you think so? You can use PREPARE instead, if you have many\n>selects like this.\n\n\nI tought that creating stored procedu...
[ { "msg_contents": "Hello; \n\nI am going through a post mortem analysis of an infrequent but\nrecurring problem on a Pg 8.0.3 installation. Application code\nconnects to Pg using J2EE pooled connections.\n\n PostgreSQL 8.0.3 on sparc-sun-solaris2.9, compiled by GCC sparc-sun-solaris2.8-gcc (GCC) 3.3.2\n\nData...
[ { "msg_contents": "Hello,\n\nOur application uses typical queries similar to following (very simplified):\n\nSELECT\n part_id,\n part_name,\n (SELECT\n SUM(amount) FROM part_movements M\n WHERE P.part_id = M.part_id\n ) as part_amount\nFROM parts P\nLIMIT 50\n\nThe parts table holds thousands of items. Moveme...
[ { "msg_contents": "Greetings -\n\nI am really love Postgres and do enjoy hacking around it but I just\nmet a libpq performance issue that I would like to get your help with.\n\nI have Postgres 8.0.1 running on Linux version 2.6.10-1.771_FC2.\n\nI have an application that makes queries to Postgres. I want to kee...
[ { "msg_contents": "Hi folks,\n\nI'm not sure if this is the right place for this but thought I'd ask. \nI'm relateively new to postgres having only used it on 3 projects and am \njust delving into the setup and admin for the second time.\n\nI decided to try tsearch2 for this project's search requirements but a...
[ { "msg_contents": "\n\nHi,\n\n\nFinally i found the problem of slow backup/restore, i´m only instaled de\nWindows 2000 Service Pack 4... :)\n\nThanks to all\n\n\nFranklin\n \n\n-----Mensagem original-----\nDe: Richard Huxton [mailto:dev@archonet.com] Enviada em: quarta-feira, 30 de\nnovembro de 2005 14:28\nPara...
[ { "msg_contents": "I'm investigating a potential IO issue. We're running 7.4 on AIX 5.1. \nDuring periods of high activity (reads, writes, and vacuums), we are \nseeing iostat reporting 100% disk usage. I have a feeling that the \niostat numbers are misleading. I can make iostat usage jump from less \nthan ...
[ { "msg_contents": "Hi all,\n\n I have a performance problem and I don't know where is my bottleneck.\nI have postgresql 7.4.2 running on a debian server with kernel\n2.4.26-1-686-smp with two Xeon(TM) at 2.80GHz and 4GB of RAM and a RAID\n5 made with SCSI disks. Maybe its not the latest hardware but I think\n...
[ { "msg_contents": "Hi,\nWe are running Postgresql 8.1, and getting dramatically inconsistant results\nafter running VACUUM ANALYZE. Sometimes after analyzing the database, the\nquery planner chooses a very efficient plan (15 rows, 4.744 ms), and\nsometimes a terrible one (24 rows, 3536.995 ms). Here's the abb...
[ { "msg_contents": "We recently segmented a large table into calendar month slices and were going \nto to replace the original, but we are not getting the results we think it \nshould... Everything is vacuumed, and we are using 8.0.3 on amd64.\n\nAnything anyone can suggest would be appreciated, our backs again...
[ { "msg_contents": "\nWith big thanks to Josh Berkus and Devrim Gunduz, I'm happy to announce \nthat Sun has just released a Solaris distribution of PostgreSQL 8.1.2 \nwith ready-to-install packages for both Sparc and x86. These packages \nare currently in Beta, and we expect to FCS in 2 -3 weeks. The \npacka...
[ { "msg_contents": "Hi,\n\nI've created a table like this :\nCREATE TABLE tmp_A (\nc \"char\",\ni int4\n);\n\nAnd another one\nCREATE TABLE tmp_B (\ni int4,\nii int4\n);\n\nI then inerted a bit more than 19 million rows in each table (exactly the\nsame number of rows in each).\n\nThe end result is that the physi...
[ { "msg_contents": "Hi All,\n\n \n\nI have seen it on occasion that the total runtime reported by explain\nanalyze was much higher than the actual time the query needed to\ncomplete. The differences in my case ranged between 20-120 seconds. I'm\njust curious if anyone else has experienced this and whether there ...
[ { "msg_contents": "It might be. I'm running on Fedora Linux kernel 2.6.5-1.358smp, GCC\n3.3.3, glibc-2.3.3-27\n\n\n-----Original Message-----\nFrom: Richard Huxton [mailto:dev@archonet.com] \nSent: Thursday, January 26, 2006 10:50 AM\nTo: Jozsef Szalay\nCc: pgsql-performance@postgresql.org\nSubject: Re: [PERFOR...
[ { "msg_contents": "Very good points thanks. In my case however, I was doing performance\ntests and therefore I had a very controlled environment with a single\nclient (me) doing strictly read-only multi-join queries.\n\n-----Original Message-----\nFrom: Michael Fuhr [mailto:mike@fuhr.org] \nSent: Thursday, Janu...
[ { "msg_contents": "\n\nDoes anyone have any experience with extremely large data sets?\nI'm mean hundreds of millions of rows.\n\nThe queries I need to run on my 200 million transactions are relatively\nsimple:\n\n select month, count(distinct(cardnum)) count(*), sum(amount) from\ntransactions group by month;...
[ { "msg_contents": "Depesz,\n\n> [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of \n> hubert depesz lubaczewski\n> Sent: Sunday, January 29, 2006 3:25 AM\n>\n> hmm .. do i understand correctly that you're suggesting that \n> using raid 10 and/or hardware raid adapter might hurt disc \n> subsystem per...
[ { "msg_contents": "Hi everybody,\n\nI have the following problem, on a test server, if I do a fresh import\nof production data then run \n'explain analyze select count(*) from mandats;'\n\nI get this result:\n\nAggregate (cost=6487.32..6487.32 rows=1 width=0) (actual time=607.61..607.61 rows=1 loops=1)\n -> ...
[ { "msg_contents": "\nCan you delete me from the mail list Please?\n\n", "msg_date": "Tue, 31 Jan 2006 17:24:30 +0100", "msg_from": "2386429@studenti.unige.it", "msg_from_op": true, "msg_subject": "Delete me" }, { "msg_contents": "2386429@studenti.unige.it wrote:\n> Can you delete me from...
[ { "msg_contents": "We have a large database system designed around partitioning. Our\napplication is characterized with\n \n- terabytes of data\n- billions of rows in dozens of base tables (and 100s of paritions)\n- 24x7 insert load of new data that cannot be stopped, data is time\nsensitive.\n- periodic repor...
[ { "msg_contents": "I am concerned with performance issues involving the storage of DV on\na database.\n\nI though of some options, which would be the most advised for speed?\n\n1) Pack N frames inside a \"container\" and store the container to the db.\n2) Store each frame in a separate record in the table \"fra...
[ { "msg_contents": "Hi there,\n\nI'm running a simple query with 2 inner joins (say A, B and C). Each of the\njoin columns has indexes. If I run queries that join just A and B, or just B\nand C, postgres uses indexes. But if I run \"A join B join C\" then the \"B\njoin C\" part starts using a sequential scan and...
[ { "msg_contents": "\nhi,\n\ni have a database storing XML documents.\nThe main table contains the nodes of the document, the other tables contain data for each node (depending on the node's type : ELE, Text, PI, ...)\n\nMy test document has 115000 nodes.\nthe export of the document(extracting all informations f...
[ { "msg_contents": "Tom,\n\nDo you mean it would be impossible to change the code so that existing\nselects continue to use the pre-truncated table until they commit? Or\njust require a more extensive change?\n\nThe update/insert rule change appears to be more more doable? No? \n\n> -----Original Message-----\n>...
[ { "msg_contents": "\nmy first implementation was in pl/pgsql but when i query the children of a node, i need to store them into an array because i need to iterate over all the children and for each child, I test the type of it.\nif it's a PI or a TEXT, i write it into a file, but if it's an element, i call the ...
[ { "msg_contents": "We're converting from a commercial database product to PostgreSQL, and\ngenerally things are going well. While the licensing agreement with the\ncommercial vendor prohibits publication of benchmarks without their\nwritten consent, I'll just say that on almost everything, PostgreSQL is\nfaste...
[ { "msg_contents": "Hi,\n\nI have 2 tables both have an index on ID (both ID columns are an oid).\n\nI want to find only only rows in one and not the other.\n\nSelect ID from TableA where ID not IN ( Select ID from Table B)\n\nThis always generates sequential scans.\n\nTable A has about 250,000 rows. Table B h...
[ { "msg_contents": "As I recall, the idea behind vacuum_threshold was to prevent\ntoo-frequent vacuuming of small tables. I'm beginning to question this\nreasoning:\n\nSmall tables vacuum very, very quickly, so 'extra' vacuuming is very\nunlikely to hurt system performance.\n\nSmall tables are most likely to hav...
[ { "msg_contents": "Hi,\n\nI'm fairly new to PostgreSQL. I was trying pgbench , but could not\nunderstand the output . Can anyone help me out to understand the output of\npgbench\n\n\n----Pradeep\n\nHi,I'm fairly new to PostgreSQL. I was trying pgbench , but could not understand the output . Can anyone help me o...
[ { "msg_contents": "Hi everyone,\n\nI have a question concerning the size of an index...\nWhat I acually did was bulid a btree index on an smallint attribute\nwithin a table with 10^8 rows. The table itself is app. 10GB large and\nwhat I would like to have the smallest possible indeces. Unfortunately\nthe curren...
[ { "msg_contents": "Using a separate lock table is what we've decided to do in this\nparticular case to serialize #1 and #3. Inserters don't take this lock\nand as such will not be stalled. \n\n> -----Original Message-----\n> From: Markus Schaber [mailto:schabi@logix-tt.com] \n> Sent: Thursday, February 02, 200...