Re: plpgsql loop not returning value

From: Josh Close <narshe(at)gmail(dot)com>
To: POSTGRES <pgsql-general(at)postgresql(dot)org>
Subject: Re: plpgsql loop not returning value
Date: 2004-10-16 23:55:09
Message-ID: 4a0cafe204101616555df74a04@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 16 Oct 2004 10:20:35 -0600, Michael Fuhr <mike(at)fuhr(dot)org> wrote:
> Glad you got it working.
>
> A question about your design: you appear to have a tblBatchHistory_X
> table for each iId value in tblServers. Is there a reason for doing
> that instead of having a single tblBatchHistory table with a foreign
> key reference to tblServers?

I didn't write it, but it's to avoid locking. Each table is for a
different server. They are all writing at the same time, and I guess
it speeds up the inserts to have them in different tables. It makes
querying them a little bit more tricky, but it's not bad.

-Josh

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steven Klassen 2004-10-17 00:42:17 Re: Newbie table definition question
Previous Message Dann Corbit 2004-10-16 23:21:53 Re: pgsql function using C++?, or at least C interfacing with C++ lib?