pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-sql@postgresql.org
To: gbajaj@tietronix.com
Subject: Re: time delay function
Date: Tue, 22 Jul 2003 10:22:54 +0200
Message-ID: <3F1CF45E.901B6657@rodos.fzk.de> (raw)

>
> Pseudo code:
>
> begin trans
> select * from table1
> WAIT FOR 20 SECS
> update table1 set blah = 'blah'
> end transcation
>
> In pgplsql, Im looking for something like a function that I can use to
make the process to wait for 20 secs before con
tinuing to execute the next sql statment?
>
AFAIK there is no such thing.
But probably you can write a C function,
which waits for N seconds and which can
be called by your plpgsql function.
Regards, Christoph





view thread (4+ messages)  latest in thread

Message-ID: <3F1CF45E.901B6657@rodos.fzk.de>
Permalink:  ../3F1CF45E.901B6657@rodos.fzk.de/
Also on:    postgresql.org/message-id/3F1CF45E.901B6657@rodos.fzk.de

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ch@rodos.fzk.de, gbajaj@tietronix.com
  Subject: Re: time delay function
  In-Reply-To: <3F1CF45E.901B6657@rodos.fzk.de>

* 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