X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id EF3DF30FFBC for ; Thu, 26 Jun 2003 17:23:30 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 91295-04 for ; Thu, 26 Jun 2003 14:23:20 -0300 (ADT) Received: from tomts16-srv.bellnexxia.net (tomts16.bellnexxia.net [209.226.175.4]) by svr1.postgresql.org (Postfix) with ESMTP id 0AF5830FE11 for ; Thu, 26 Jun 2003 14:23:20 -0300 (ADT) Received: from [10.0.2.10] ([216.208.117.7]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030626172317.KAEW21124.tomts16-srv.bellnexxia.net@[10.0.2.10]>; Thu, 26 Jun 2003 13:23:17 -0400 Subject: Re: Temporary table performance? From: Rod Taylor To: Michael A Nachbaur Cc: pgsql-sql@postgresql.org In-Reply-To: <200306260914.41245.mike@nachbaur.com> References: <200306260914.41245.mike@nachbaur.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-yfEqFhSnaGbIx7HeAdkN" Message-Id: <1056648218.7041.11.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 26 Jun 2003 13:23:39 -0400 X-Archive-Number: 200306/300 X-Sequence-Number: 14058 --=-yfEqFhSnaGbIx7HeAdkN Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > I could then do some queries against the temporary table without having t= o=20 > regenerate the results every time I want to show a "Page 299 of 500" tool= bar. Performance wise temp tables are the same as a regular table but without WAL on the table contents. > Would I be better off just sucking this data into an in-memory data struc= ture,=20 > or can I use a temp table as an easy-to-use alternative? You are probably better off using a cursor. --=20 Rod Taylor PGP Key: http://www.rbt.ca/rbtpub.asc --=-yfEqFhSnaGbIx7HeAdkN Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA++ywZ6DETLow6vwwRAnFsAJ4wKjo3sC3soqU6WkcW3WAxHOIW2QCcDl1p TiZZjAW8ceCDdzLHhU+tMyU= =eJBr -----END PGP SIGNATURE----- --=-yfEqFhSnaGbIx7HeAdkN--