From: Thomas Good <tomg@admin.nrnet.org>
To: pgsql-sql@postgreSQL.org
Subject: abusing an aggregate funct
Date: Sat, 14 Nov 1998 07:00:42 -0500 (EST)
Message-ID: <Pine.LNX.3.96.981114065037.6759A-100000@admin.nrnet.org> (raw)
In-Reply-To: <Pine.LNX.4.05.9811131934540.6359-100000@barnet.kharkov.ua>
Hi all...
I ported a foxpro db to postgres - the foxpro strategy (if this is
not a non-sequitor) was to put everything in one big table...
with no unique constraints on any attr/no p_key.
I had perl iterate thru the dump file prepending an int value to each
tuple - which is now my p_key. Works fine.
Due to the sheer girth of the table the following query, called from
a data entry script, takes a bit of time to finish:
SELECT max(rec_num) FROM crtrd1;
I use this to setup `rec_num + 1' for my query number (p_key)...any
way I can speed this up a bit? I've run vacuum analyze but the
table size is doing me in...
Stuck_In_Staten_Island,
Tom
(thanks ;-)
---------- Sisters of Charity Medical Center ----------
Department of Psychiatry
----
Thomas Good <tomg@q8.nrnet.org>
Coordinator, North Richmond C.M.H.C. Information Systems
75 Vanderbilt Ave, Quarters 8 Phone: 718-354-5528
Staten Island, NY 10304 Fax: 718-354-5056
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tomg@admin.nrnet.org
Subject: Re: abusing an aggregate funct
In-Reply-To: <Pine.LNX.3.96.981114065037.6759A-100000@admin.nrnet.org>
References: <Pine.LNX.4.05.9811131934540.6359-100000@barnet.kharkov.ua> <Pine.LNX.3.96.981114065037.6759A-100000@admin.nrnet.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox