On Wed, 2007-01-24 at 08:26 -0800, Sorin Schwimmer wrote:
> The front-end application can do it easy in a
> loop of a sort, but on remote servers (and that's the
> norm these days) it creates unnecessary network
> traffic.

You can avoid this easily via a stored procedure.

> My suggestion is to allow INSERT to do it REPEAT x.

We generally try to avoid non-standard extensions to SQL to accomplish
things that can be comfortably expressed in standard SQL, or via the
existing Postgres constructs (e.g. PL/PgSQL stored procedures).


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not

Reply via email to