From: Hannu Krosing <hannu@tm.ee>
To: thebfh@toolsmythe.com
Cc: Christopher Browne <cbbrowne@libertyrms.info>
Cc: pgsql-performance@postgresql.org
Subject: Re: Performance Concern
Date: Sat, 25 Oct 2003 11:19:31 +0300
Message-ID: <1067069971.11729.6.camel@fuji.krosing.net> (raw)
In-Reply-To: <KKEBKDPPLALEFHBEAOCCIEDDDEAA.thebfh@toolsmythe.com>
References: <KKEBKDPPLALEFHBEAOCCIEDDDEAA.thebfh@toolsmythe.com>
John Pagakis kirjutas L, 25.10.2003 kell 10:16:
> Christopher -
> Thanks.
>
> Answer 1:
> I believe auto commit was off (but I'm not at my dev box right now). I'll
> double-check that and the commit interval.
>
> Answer 2:
> Ah ha!! No indexes on FKs. I'll try that.
>
> Yes, each baz is a uniquely identifiable. I had started a SP to create gen
> the key but scrapped it when I saw no rand() function in pgpsql. Did I miss
> something?
hannu=# select random();
random
------------------
0.59924242859671
(1 row)
\df lists all available functions in psql
to generate string keys you could use something like:
hannu=# select 'key' || to_hex(cast(random()*1000000000 as int));
?column?
-------------
key1e22d8ea
(1 row)
-----------------
Hannu
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-performance@postgresql.org
Cc: hannu@tm.ee, thebfh@toolsmythe.com, cbbrowne@libertyrms.info
Subject: Re: Performance Concern
In-Reply-To: <1067069971.11729.6.camel@fuji.krosing.net>
References: <KKEBKDPPLALEFHBEAOCCIEDDDEAA.thebfh@toolsmythe.com> <1067069971.11729.6.camel@fuji.krosing.net>
* 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