threads
listlengths
1
275
[ { "msg_contents": "Actually, I have some queries that are slow, however I was wondering if you\ncould help me write a query that is rather simple, but I, as a true database\nnovice, can't seem to conjure. So we have stocks, as I have previously\nsaid, and I have a huge table which contains all of the opening a...
[ { "msg_contents": "Hi,\n\nI've experienced that PG up to current release does not make use of an index when aggregating. Which of course may result in unacceptable answering times\n\nThis behaviour is reproducable on any table with any aggregat function in all of my databases on every machine (PostgreSQL 7.4.2 ...
[ { "msg_contents": "I am experiencing rather slow INSERTs on loaded server. The table I am \ninserting to is:\n\nCREATE TABLE pagestats\n(\n page_id int4 NOT NULL,\n viewed timestamptz DEFAULT now(),\n session int4 NOT NULL\n) WITH OIDS;\n\nThe table is populated with 700k rows. It is VACUUM ANALYZED every...
[ { "msg_contents": "Hello,\n\nI'm using PostgreSQL 7.4.2 (package from backports.org) \non a Debian (woody) box. The machine is IBM eServer 345\nwith two 2.8 Xeon CPUs, it has 1024MB of RAM and\ntwo 15k RPM SCSI disks running in hardware RAID1, which\nis provided by the onboard LSI Logic controller (LSI53C1030)....
[ { "msg_contents": "Hello All,\n\n We are building a web based application which is database\nintensive (we intend to use postgresql). Expect about 600\nconcurrent users. We are using Zope and python with postgresql on\nRedHat Enterprise Linux. Our server has dual intel xeon 2.4 GHz\nand 2 Gig Ram with...
[ { "msg_contents": ">>>>> \"Laurent\" == Laurent Rathle <laurent@parinux.org> writes:\n\n Laurent> Le lundi 28 Juin 2004 10:14, Sylvain Lhullier a �crit�:\n >> � �Pour info, le vid�o-proj de Parinux devrait rejoindre les RMLL\n >> (sauf opposition du CA).\n >> \n >> � �Nous sommes en train de ...
[ { "msg_contents": "\n I have a problem where a query gets _much_ slower if I add statements\nto the where clause than if I just get everything and filter in the\ncode. I expected the query to be faster as the where clause gets\nbigger (and thus the data to return gets lower).\n\n I've put inline the SQL and exp...
[ { "msg_contents": "Creating indexes on a table affects insert performance depending on the\nnumber of indexes that have to be populated. From a query standpoint,\nindexes are a godsend in most cases.\n\nDuane\n\n-----Original Message-----\nFrom: Chris Cheston [mailto:ccheston@gmail.com]\nSent: Wednesday, June ...
[ { "msg_contents": "Here is my query, that returns one row:\nSELECT f1, f2,(SELECT dfield FROM d WHERE d.ukey = f1) FROM m WHERE \nstatus IN(2) AND jid IN(17674) ORDER BY pkey DESC LIMIT 25 OFFSET 0;\n\nHere was the really bad plan chosen. This didn't come back for a long \nwhile and had to be cancelled:\n\n ...
[ { "msg_contents": "\nHi there,\n\ni have a problem with a query that uses the result of a plsql function\nIn\nthe where clause:\n\nSELECT\n assignments.assignment_id,\n assignments.package_id AS package_id,\n assignments.title AS title,\n COUNT(*) AS Count\nFROM\n assignments INNER JOIN submissions ON...
[ { "msg_contents": "\nThe following bug has been logged online:\n\nBug reference: 1186\nLogged by: Gosen, Hitoshi\n\nEmail address: mic-gosen@ns.inter-mic.co.jp\n\nPostgreSQL version: 7.4\n\nOperating system: linux 2.4.18\n\nDescription: Broken Index?\n\nDetails: \n\nHello All,\nWe ar...
[ { "msg_contents": "[Please CC me on all replies, I'm not subscribed to this list]\n\nHi,\n\nI'm trying to find out why one of my queries is so slow -- I'm primarily\nusing PostgreSQL 7.2 (Debian stable), but I don't really get much better\nperformance with 7.4 (Debian unstable). My prototype table looks like th...
[ { "msg_contents": "Hello,\n\nCan anybody suggest any hint on this:\n\ntemp=> EXPLAIN SELECT DISTINCT \"number\" FROM \"tablex\" WHERE \"Date\" BETWEEN '2004-06-28'::date AND '2004-07-04'::date AND \"Time\" BETWEEN '00:00:00'::time AND '18:01:00'::time;\n\nUnique (cost=305669.92..306119.43 rows=89 width=8)\n\t-...
[ { "msg_contents": "I have a very simple problem. I run two select statments, they are identical except for a single\nwhere condition. The first select statment runs in 9 ms, while the second statment runs for 4000\nms \n\nSQL1 - fast 9ms\nexplain analyse select seq_ac from refseq_sequence S where seq_ac in (sel...
[ { "msg_contents": "Hello there, I'm trying to make sure my postgres 7.4 is running as fast \nas it can in my box.\nMy hardware configuration is:\n\nHP ML-350G3\nDup processor XEON 2.8\nThree U320, 10000 rpm disks, RAID-5\nHP 641 Raid Controller.\n1GB RAM\n\nMy Software config is:\n\nRedHat 7.3 - 2.4.20-28.7smp ...
[ { "msg_contents": "I have been trying to get keyword searching quicker and have now decided to make smaller tables.\n\nI was working with tables of about 50 000 000 rows but now will use about 1.5million rows, I am using a TSearch2 to find keywords in the titles column of the rows. I have indexes using a gist ...
[ { "msg_contents": "Forgot to mention that were running post gres 7.4.2 using a dual optiron system and 4gig ram. The results are used by the PHP web server.\nThanks again\n ----- Original Message ----- \n From: borajetta \n To: pgsql-performance@postgresql.org \n Sent: Tuesday, July 06, 2004 10:52 AM\n Sub...
[ { "msg_contents": "\n\nI would like to ask you where i can find information about the\nimplementation of the inheritance relationship in Postgres.\n\nThere are several ways to store and to retrieve instances\ncontained in an hierarchie.\n\nWhich clustering and buffer replacement policy implements Postgres?\n\nT...
[ { "msg_contents": "Hi,\n\nUsing PostgreSQL 7.4.2 on Solaris. I'm trying to \nimprove performance on some queries to my databases so\nI wanted to try out various index structures. \n\nSince I'm going to be running my performance tests\nrepeatedly, I created some SQL scripts to delete and \nrecreate various ind...
[ { "msg_contents": "Hello,\n\nI have been a happy postgresql developer for a few years now. Recently\nI have discovered a very strange phenomenon in regards to inserting\nrows.\n\nMy app inserts millions of records a day, averaging about 30 rows a\nsecond. I use autovac to make sure my stats and indexes are up ...
[ { "msg_contents": "I do have one table that acts as a lookup table and grows in size as the\napp runs, however in the tests I have been doing I have dropped and\nrecreated all tables including the lookup table.\n\nI keep wondering how disk is allocated to a particular DB. Also is there\nany way I could tell whe...
[ { "msg_contents": "\nCan someone explain what I'm missing here? This query does what I\nexpect--it uses the \"foo\" index on the openeddatetime, callstatus,\ncalltype, callkey fields:\n\nelon2=# explain analyse select * from call where aspid='123C' and\nOpenedDateTime between '2000-01-01 00:00:00.0' and '2004...
[ { "msg_contents": "Well, you're kind of right. I removed the limit, and now _both_\nversions of the query perform a sequence scan!\n\nOh, I forgot to include in my original post: this is PostgreSQL 7.3.4\n(on x86 Linux and sparc Solaris 6)\n\n-Joel\n\n-----Original Message-----\nFrom: Guido Barosio [mailto:gba...
[ { "msg_contents": "[Apologies if this reaches the list twice -- I sent a copy before\n subscribing, but it seems to be stuck waiting for listmaster forever, so I\n subscribed and sent it again.]\n\nHi,\n\nI'm trying to find out why one of my queries is so slow -- I'm primarily\nusing PostgreSQL 7.2 (Debian stab...
[ { "msg_contents": "> What is it about the buffer cache that makes it so unhappy being able\nto\n> hold everything? I don't want to be seen as a cache hit fascist, but\nisn't\n> it just better if the data is just *there*, available in the\npostmaster's\n> address space ready for each backend process to access it...
[ { "msg_contents": "> \n> > However, this query performs a sequence scan on the table, ignoring\nthe\n> > call_idx13 index (the only difference is the addition of the aspid\nfield\n> > in the order by clause):\n> \n> You do not have an index which matches the ORDER BY, so PostgreSQL\n> cannot simply scan the ind...
[ { "msg_contents": ">>>>> \"Matthieu\" == Matthieu Compin <matthieu.compin@parinux.org> writes:\n\n Matthieu> bonjour � tous! J'avais �mis l'id�e d'acheteer une borne\n Matthieu> wifi pour nos futurs manifestation public. Je viens donc\n Matthieu> de discuter pour avoir qq infos et des prix.\n\nJe pens...
[ { "msg_contents": "Jan wrote:\n> > The disk cache on most operating systems is optimized. Plus,\nkeeping\n> > shared buffers low gives you more room to bump up the sort memory,\nwhich\n> > will make your big queries run faster.\n> \n> Plus, the situation will change dramatically with 7.5 where the disk\n> cach...
[ { "msg_contents": "Andy wrote:\n> Whether the OS caches the data or PG does, you still want it cached.\nIf\n> your\n> sorting backends gobble up the pages that otherwise would be filled\nwith\n> the\n> database buffers, then your postmaster will crawl, as it'll *really*\nhave\n> to\n> wait for stuff from disk. ...
[ { "msg_contents": "\nWhen I went to 7.4.3 (Slackware 9.1) w/ JDBC, the improvements are that it doesn't initially take much memory (have 512M) and didn't swap. I ran a full vaccum and a cluster before installation, however speed degaded to 1 *second* / update of one row in 150 rows of data, within a day! pg_aut...
[ { "msg_contents": ">>>>> \"alix\" == alix <alix@guillard.nom.fr> writes:\n\n alix> Le Mon, 12 Jul 2004 12:37:47 +0200 (CEST) Jean-Luc Ancey\n alix> <jlancey@rocketmail.com> & stef �crivit:\n\n >> > Pour moi la m�me chose que l'ann�e derni�re : on > s'abstient.\n\n alix> Pour moi la m�me chose que...
[ { "msg_contents": "> \n> Considering you're pulling out 450k rows in 8 seconds, I'd also guess\n> the data is mostly in memory. Is that normal? Or is this a result of\n> having run several test queries against the same data multiple times?\n> \n\nAh yes, that would have been the result of running the query seve...
[ { "msg_contents": "Hi all,\n\nI'm storing some timestamps as integers (UTF) in a table and I want to\nquery by <= and >= for times between a certain period. The table has\ngotten quite large and is now very slow in querying.\n\nI think it's time to create an index for the timestamp column.\n\nI tried using an ...
[ { "msg_contents": "Hi,\n\nI have a database with 10 tables having about 50 000 000 records ...\nEvery day I have to delete about 20 000 records, inserting about the same in \none of this table.\n\nThen I make some agregations inside the other tables to get some week results, \nand globals result by users. That ...
[ { "msg_contents": "\n\n\n\nShould I be concerned that my vacuum process has taken upwards of 100 +\nminutes to complete? I dropped all indexes before starting and also\nincreased the vacuum_mem before starting.\nLooking at the output below, it appears that a vacuum full hasn't been done\non this table for quit...
[ { "msg_contents": "Hi,\n\nI operate a database server with postgres 7.3.2, 2 Xeon CPU's and 1 GB \nRam. The database-files reside on a local SCSI-HD, the system runs on \nSuSE Enterprise Server 8.0.\n\nThe size of the dumped database is about 300 MB, the database is \nvacuumed (-a -z) every night an reindexed e...
[ { "msg_contents": "\nWith pg_autovaccum it's now at 95M swap; averaging 5MB / day increase with same load. Cache slightly increases or decreases according to top.\n\n --- On Tue 07/13, Matthew T. O'Connor < matthew@zeut.net > wrote:\nFrom: Matthew T. O'Connor [mailto: matthew@zeut.net]\nTo: jim.ewert@excite.co...
[ { "msg_contents": "I've been using the adaptec ZCR raid cards in our servers for a while \nnow, mostly small systems with 3 or 6 disks, and we've been very happy \nwith them. However, we're building a new DB machine with 14 U320 15K \nSCA drives, and we've run into a performance bottlenkeck with the ZCR \nca...
[ { "msg_contents": "I lost the email that had the fix for this and now I need it again...\ncan someone or tom let me know what the fix was, I can't find it in any\nof my emails or archived on the internet\n\n \n\nThis is what I got...\n\n \n\nTwo servers, one debian, one fedora\n\n \n\nDebain dual 3ghz, 1 gig ra...
[ { "msg_contents": "Hi,\n\nI have a query, which runs fast for one id (query 1)\nand slow for other id (query 2)\nthough both plans and cost are same except\nthese two qeries return different number of rows.\n\nexplain analyze\nSELECT *\nFROM user U LEFT JOIN user_timestamps T USING\n(user_id), user_alias A\nWHE...
[ { "msg_contents": "Pg Performers,\n\nThis might be a out of the ordinary question, or perhaps I have been out\nof the loop for a while but does PostgreSQL (or any other database) have\nsupport for lazy index updates. What I mean by lazy index updates is\nindex updating which occur at a regular interval rather ...
[ { "msg_contents": "Hi all,\n\nI've been searching the list for a while but couldn't find any up-to-date \ninformation relating to my problem.\nWe have a production server with postgresql on cygwin that currently deels \nwith about 200 Gigs of data (1 big IDE drive). We plan to move to linux \nfor some reasons I...
[ { "msg_contents": "Thanks a lot Scott.\n\nIt seems that we were totally wrong when considering a network storage \nsolution. I've read your techdoc \nhttp://techdocs.postgresql.org/guides/DiskTuningGuide and found many \ninteresting remarks. \nI think that we will know focus on external Raid systems which seem ...
[ { "msg_contents": "I must say that cygwin did well (there exists good software on windows, \ni've found one)... as a prototype ... when I look at the postgresql poll \n(http://www.postgresql.org/survey.php?View=1&SurveyID=11), it seems like \nI'm not alone !!\nActually, the major problem was the limit of the av...
[ { "msg_contents": "I have (among other things) a parent table with 200 records and a child table with 20MM or more. I set up referential integrity on the FK with ON DELETE CASCADE.\n\nIt appears that when a DELETE is done on the parent table, the child table deletion is done with a sequential scan. I say this b...
[ { "msg_contents": "PREPARE c(int4) AS DELETE FROM childtable WHERE fk=$1;\nEXPLAIN EXECUTE c(-1);\n\ngives an index scan.\n\nPREPARE c2(int4) AS DELETE FROM parenttable WHERE key=$1;\nEXPLAIN EXECUTE c2(1);\n\ngives a seq scan on the parent table (itself a little curious) and no explanation of what the triggers...
[ { "msg_contents": "I FOUND IT!\n\nA second trigger that doesn't belong......\n\nOK, we're set now, and thanks for showing me some ways to check what the planner is up to. Is there a way of seeing what the triggers will do?\n", "msg_date": "Tue, 20 Jul 2004 13:06:46 -0700", "msg_from": "andrew@pillette.c...
[ { "msg_contents": "Hello,\n\nI have a request like SELECT ... WHERE x<=A<=y AND t<=B<=u AND z<=C<=w AND ..\n5 columns are in BETWEEN clauses.\n\nWhat is the best index I could use?\n\nIf I create btree index on all columns (A,B,C..), here is what explain\nanalyze gives me:\n-------------------------------------...
[ { "msg_contents": "Hi all,\n\tI was wondering if part or all of Postgres would be able to take\nadvantage of a beowulf cluster to increase performance? If not then why\nnot, and if so then how would/could it benefit from being on a cluster?\n\n\tThanks for the enlightenment in advance.\n\n-Joe\n\n\n", "msg...
[ { "msg_contents": "Hello,\n\nUsing a test client application that performs 100000 insert operations on a\ntable, with the client application running on the same machine as the\nPostgres server, I get the following results for the time taken to run the\ntest:\n\nUnix domain socket connection: 26 seconds\nInet do...
[ { "msg_contents": "I hall\nI have a query in this form:\n\nempdb=# explain analyze select * from v_past_connections where id_user = 26195 and login_time > '2004-07-21';\n QUERY PLAN\n------------------------------------------------------------------...
[ { "msg_contents": "Hi all,\n\nin a large table (millions of rows) I am using \na variable-length user\ndefined type \nto store relatively short field entries, i.e. the \nlength of certain\nfields could be restricted to 2^16 or even \n2^8 characters.\n\nNow I wonder whether it would be possible \nto save storage...
[ { "msg_contents": "Hi all - \nI've got a schema I'm working on modifying, nad I need some help getting\nthe best performance out. The orginal schema has a many to many linkage\nbetween a couple tables, using a two column linkage table. This is used\nto represent groups of people and their relationship to an obj...
[ { "msg_contents": "Hello --\n\nTo increase query (i.e. select) performance, we're trying to get \npostgres to use an index based on a timestamp column in a given table.\n\nEvent-based data is put into this table several times a minute, with the \ntimestamp indicating when a particular row was placed in the tabl...
[ { "msg_contents": "Dear all,\n\nThis is my two last line of a vacuum full verbose analyse;.\n\nINFO: ᅵfree space map: 27 relations, 4336 pages stored; 3232 total pages \nneeded\nDETAIL: ᅵAllocated FSM size: 2000 relations + 50000000 pages = 293088 kB\n\nWhat are the good parameters to set with those informa...
[ { "msg_contents": "I am in a situation where I have to treat a table as logically ordered\nbased on an index. Right now I'm doing this via queries, and a I need a\nbetter way to do it. Cursors do not meet my requirements, because they\nare always insensitive. Also, my performance requirements are\nextreme......
[ { "msg_contents": "Hello,\n\nAre there any tools that help with postgres/postgis performance tuning?\n\nSo they measure the acutal tuple costs and cpu power, or suggest optimal\nvalues for the index sample counts?\n\nI could imagine that some profiling on a typical workload (or realistic\nsimulation thereof) co...
[ { "msg_contents": "> > So, for a table t with a three part key over columns a,b,c, the\nquery\n> > to read the next value from t for given values a1, b1, c1 is\n> >\n> > select * from t where\n> > \ta >= a1 and\n> > (a > a1 or b >= b1) and\n> > (a > a1 or b > b1 or c > c1)\n> \n> You mut not rely on...
[ { "msg_contents": "Markus wrote:\n> > The basic problem is the planner can't always match the query to the\n> > index. So, either the planner has to be helped/fixed or I have to\n> > explore another solution. This seems to happen most when the 'a'\n> > column has very poor selectivity. In this case, the plan...
[ { "msg_contents": "> > select * from t where\n> > \ta >= a1 and\n> > (a > a1 or b >= b1) and\n> > (a > a1 or b > b1 or c > c1)\n> \n> > In about 95% of cases, the planner correctly selects the index\nt(a,b,c)\n> > and uses it.\n> \n> I'm surprised it's that good. Why not do\n\nIt is. In fact, it's...
[ { "msg_contents": "> Hmm, it sure seems like there ought to be an easy way to do this...\n\nHere is the only alternative that I see:\ncreate function column_stacker(text[] columns, text[] types) returns\ntext\n[...]\nlanguage 'C' immutable;\n\nthe above function stacks the columns together in a single string fo...
[ { "msg_contents": "Greg wrote:\n> One thing that can help is to add ORDER BY a,b,c LIMIT 1 to your\nquery.\n> That\n> will virtually guarantee that it uses an index scan, which will at\nleast\n> avoid\n> making it scan all the records *after* finding the match. However it\nstill\n> doesn't seem to make Postgres...
[ { "msg_contents": "\"Merlin Moncure\" <merlin.moncure@rcsonline.com> wrote ..\n[snip]\n> select * from t where\n> \ta >= a1 and\n> (a > a1 or b >= b1) and\n> (a > a1 or b > b1 or c > c1)\n\nI don't see why this is guaranteed to work without an ORDER BY clause, even if TABLE t is clustered on the cor...
[ { "msg_contents": "> SELECT * FROM t WHERE\n> (a >= a1 AND b>=b1 AND c>=c1) ORDER BY a,b,c LIMIT 1 OFFSET 1;\n> \n> using the way LIMIT cuts down on sort time (I've never tried it with\nboth\n> LIMIT and OFFSET, though; you could always use LIMIT 2 and skip a\nrecord\n> client-side if that works better).\n\nDon...
[ { "msg_contents": "Greg Stark wrote:\n> > > do it for multi-column keys. It seems it would be nice if some\nsyntax\n> > > similar to (a,b,c) > (a1,b1,c1) worked for this.\n> Hum. It would seem my intuition matches the SQL92 spec and Postgres\ngets\n> this\n> wrong.\n[...] \n> Even if Postgres did this right I'm...
[ { "msg_contents": "Hello,\n\nI having a great deal of difficulty getting postgres to do a hash join.\nEven if I disable nestloop and mergejoin in postgres.conf, the optimizer\nstill refuses to select hash join. This behavior is killing my\nperformance.\n\nPostgres version is 7.3.2 and relevant tables are vacuum...
[ { "msg_contents": "> Greg Stark <gsstark@MIT.EDU> writes:\n> This approach won't get the optimizer to actually use an index for\nthese\n> comparisons, but it will fix the semantics to match the spec. Later we\ncan\n> either improve the optimizer to detect expressions like this (which I\n> think\n> would be cool...
[ { "msg_contents": "> Greg Stark <gsstark@mit.edu> writes:\n> > Removing <,<=,>,>= would be trivial.\n> \n> ... and not backwards-compatible. If we did that then cases involving\n> unlabeled row expressions would no longer work as they did in prior\n> releases. For example\n> \n> \tselect (1,2,3) < (4,5,6);\n>...
[ { "msg_contents": "Hi everyone,\n\nsomebody can help me??????? my boss want to migrate to\nORACLE................\n\nwe have a BIG problem of performance,it's slow....\nwe use postgres 7.3 for php security application with approximately 4\nmillions of insertion by day and 4 millions of delete and update\nand ar...
[ { "msg_contents": "I have the following query that I have to quit after 10 mins. I have vacuum full analyzed each of the tables and still nothing seems to help. There are indexes on all the join fields. I've included the query, explain and the table structures. Please let me know if there is anything else I...
[ { "msg_contents": "Just an update on this:\nqueries in the 'next key' form on fields(a,b,c)\nonly ever use the index for the first field (a). I just never noticed\nthat before...in most cases this is selective enough. In most logical\ncases in multi part keys the most important stuff comes first.\n\nCuriously...
[ { "msg_contents": "Greg Stark wrote:\n> Well I'm not sure whether you caught it, but Tom did come up with a\n> work-around that works with the current infrastructure if all the\ncolumns\n> involved are the same datatype.\n> \n> You can create a regular btree index on the expression array[a,b,c]\nand\n> then\n> ...
[ { "msg_contents": "> \"Merlin Moncure\" <merlin.moncure@rcsonline.com> writes:\n> > I would much rather see postgres 'get' (a,b,c) > (a1,\n> > b1, c1)...if there is even a chance this is possible, I'll direct my\n> > efforts there.\n> \n> For the ISAM context this whole discussion is kinda moot, because you\n> ...
[ { "msg_contents": "can anyone imagine why my query refuses to use indexes for a \nfoo.val<=bar.val query (but works for foo.val=bar.val foo.val<=1). the \ni_value fields are ints (int4), and selectivity of both of these queries \nis 2/10000. and I'm running pgsql 7.4.3.\n\nAlso, the default_statistics_target is...
[ { "msg_contents": "Stephane wrote:\nHi everyone,\n \nsomebody can help me??????? my boss want to migrate to ORACLE................\n\n#fsync = true \n[snip]\n\nAre you using battery baked RAID? \n\nYour problem is probably due to the database syncing all the time. With fsync one, you get 1 sync per transactio...
[ { "msg_contents": "Stan Bielski <bielski@ece.cmu.edu> writes:\n> On Thu, 29 Jul 2004, Tom Lane wrote:\n>> Are you sure the join condition is hashjoinable? You didn't say\n>> anything about the datatypes involved ...\n\n> My apologies. The columns that I want to join are both type 'inet'.\n> Shouldn't that be h...
[ { "msg_contents": "\nTo the person who was looking for a $5k midlevel SSD drive (sorry, I hit 'd'\ntoo fast):\n\n http://www.tigicorp.com/tigijet_exp_s.htm\n\nI found this via this interesting survey of SSD products:\n\n http://www.storagesearch.com/ssd-buyers-guide.html\n\nIncidentally it seems the popular P...
[ { "msg_contents": "\n\nHi, i would like to answer if there is any way in postgres to find the\npage miss hits caused during a query execution.\n\n\nIs there something like explain analyze with the page miss hits???\n", "msg_date": "Mon, 2 Aug 2004 11:11:43 +0300 (EET DST)", "msg_from": "Ioannis Theohari...
[ { "msg_contents": "We have a \"companies\" and a \"contacts\" table with about 3000 records\neach.\n\nWe run the following SQL-Command which runs about 2 MINUTES !:\n\nSELECT count(*) FROM contacts LEFT JOIN companies ON contacts.sid =\ncompanies.intfield01\n\ncontacts.sid (type text, b-tree index on it)\ncompa...
[ { "msg_contents": "Cannot you do a cast in your query? Does that help with using the indexes?\n\n-----Original Message-----\nFrom: pgsql-performance-owner@postgresql.org\n[mailto:pgsql-performance-owner@postgresql.org]On Behalf Of\nmailing@impactmedia.de\nSent: maandag 2 augustus 2004 14:09\nTo: pgsql-performan...
[ { "msg_contents": "Hi all,\n\nMy system is a PostgreSQL 7.4.1 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 20020903 (Red Hat Linux 8.0 3.2-7). It has a Pentium III-733 Mhz with 512 MB ram. It is connected to my workststation (dual XEON 1700 with 1 Gb RAM) with a 100 Mb switched network.\n\nI have a table wit...
[ { "msg_contents": "Joost wrote:\n> My system is a PostgreSQL 7.4.1 on i686-pc-linux-gnu, compiled by GCC\ngcc\n> (GCC) 20020903 (Red Hat Linux 8.0 3.2-7). It has a Pentium III-733 Mhz\n> with 512 MB ram. It is connected to my workststation (dual XEON 1700\nwith\n> 1 Gb RAM) with a 100 Mb switched network.\n> \n...
[ { "msg_contents": " TIP 9: the planner will ignore your desire to choose an index scan if your\n joining column's datatypes do not match\n\nGreetz,\nGuido\n\n> Cannot you do a cast in your query? Does that help with using the indexes?\n> \n> -----Original Message-----\n> From: pgsql-performance-owner@post...
[ { "msg_contents": "Hi Merlin,\n\n> The 9206 ms time is what the database actually spent \n> gathering the data and sending it to you. This is non-negotiable unless you bump up\n> hardware, etc, or fetch less data. This time usually scales linearly\n> (or close to it) with the size of the dataset you fetch.\n>...
[ { "msg_contents": "> Hi Merlin,\n> \n> > The 9206 ms time is what the database actually spent\n> > gathering the data and sending it to you. This is non-negotiable\nunless\n> you bump up\n> > hardware, etc, or fetch less data. This time usually scales\nlinearly\n> > (or close to it) with the size of the datas...
[ { "msg_contents": "Thanks I found the same info on the tigi and like what I saw. I also\nspoke with a consulting firm that has used them and also says good\nthings, but they have not tried it with postgres. I will post an\nanalysis of performance once we have the equipment ordered and\ninstalled. \n\n-----Origi...
[ { "msg_contents": "Hi\n\nI have 2 tables like this:\nCREATE TABLE query (\n\tquery_id \tint not null,\n\tdat \tvarchar(64) null ,\n\tsub_acc_id \tint null ,\n\tquery_ip \tvarchar(64) null ,\n\tosd_user_type \tvarchar(64) null \n)\n;\n\nCREATE TABLE trans (\n\ttransaction_id \tvarchar(64) not null ,\n\tdate...
[ { "msg_contents": "Hello all.\n \nI am managing a large database with lots of transactions in different\ntables.\nThe largest tables have around 5-6 millions tuples and around 50000-60000\ninserts and maybe 20000 updates pr day.\nWhile the smalest tables have only a few tuples and a few updates /inserts\npr day...
[ { "msg_contents": "> Trying to run this query:\n> EXPLAIN ANALYSE\n> select * FROM trans\n> WHERE query_id NOT IN (select query_id FROM query)\n> \n> but it will remain like that forever (cancelled after 30 min).\n\nexplain analyze actually runs the query to do timings. Just run explain\nand see what you come ...
[ { "msg_contents": "> > Try bumping up shared buffers some and sort mem as much as you\nsafely\n> > can.\n> Thank you, that did it!\n> \n> With\n> shared_buffers = 3000\t\t# min 16, at least max_connections*2,\n8KB\n> each\n> sort_mem = 128000\t\t# min 64, size in KB\n> \n> it takes <3 seconds (my hardware is no...
[ { "msg_contents": "I run a Perl/CGI driven website that makes extensive use of PostgreSQL \n(7.4.3) for everything from user information to formatting and display \nof specific sections of the site. The server itself, is a dual \nprocessor AMD Opteron 1.4Ghz w/ 2GB Ram and 2 x 120GB hard drives \nmirrored for...
[ { "msg_contents": "Hello,\n\nmy web application grows slower and slower over time. After some \nprofiling I came to the conclusion that my SQL queries are the biggest \ntime spenders (25 seconds). Obviously I need to optimise my queries and \nmaybe introduce some new indexes.\n\nThe problem is, that my applicat...
[ { "msg_contents": "Hi,\n\nI have some problem of performance on a PG database, and I don't\nknow how to improve. I Have two questions : one about the storage\nof data, one about tuning queries. If possible !\n\nMy job is to compare Oracle and Postgres. All our operational databases\nhave been running under Orac...
[ { "msg_contents": "Can anyone give a good reference site/book for getting the most out of \nyour postgres server.\n\nAll I can find is contradicting theories on how to work out your settings.\n\nThis is what I followed to setup our db server that serves our web \napplications.\n\nhttp://www.phpbuilder.com/colum...
[ { "msg_contents": "\n>X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org\n>X-Authentication-Warning: houston.familyhealth.com.au: chriskl owned process \ndoing -bs\n>Date: Wed, 4 Aug 2004 21:21:51 +0800 (WST)\n>From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>\n>To: Valerie Schne...
[ { "msg_contents": "[forwarded to performance] \n> The result is that for \"short queries\" (Q1 and Q2) it runs in a few\n> seconds on both Oracle and PG. The difference becomes important with\n> Q3 : 8 seconds with oracle\n> 80 sec with PG\n> and too much with Q4 : 28s with oracle\n> ...
[ { "msg_contents": "I have a database that I should migrate from 7.3 -> 7.4.3 but pg_dump |\npsql seems to take forever. (Several hours) Is there anything that can I \ndo to speed it up?\n\nThe databse is primary a table with 300.000 records of about 200Kbytes\neach. ~ 60 GB. \n\nThis is becoming an issue with t...
[ { "msg_contents": "Hi,\nI 've decreased the sort_mem to 5000 instead of 50000.\nI recreated ma table using integer and real types instead of\nnumeric : the result is very improved for the disk space :\n\n schema | relfilenode | table | index | reltuples | size \n--------+-------------+----...
[ { "msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nValerie Schneider DSI/DEV wrote:\n\n| #---------------------------------------------------------------------------\n| # RESOURCE USAGE (except WAL)\n| #---------------------------------------------------------------------------\n|\n| # - Memor...
[ { "msg_contents": "Another question:\nHow are you benchmarking your queries? Are you running them from within\npsql? Do you plan to run these queries from within an application?\n\npsql introduces some overhead because it has to scan the result set to\ndetermine the widths of the columns for formatting purpos...