pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yudha Setiawan <inas_husband@bonbon.net>
To: Daniel MichaƂ <danielosch@o2.pl>
Cc: pgsql-sql@postgresql.org
Subject: Re: lock row in table
Date: Thu, 28 Aug 2003 17:42:50 +0700
Message-ID: <1bb201c36d51$2728f500$ea00a8c0@yudha> (raw)
References: <002301c36d3d$baf7f1f0$2601a8c0@gliwice.helion.com.pl>


  Of course I can lock record with syntax 
  "Begin; 
          select * from table1 where ID=12 for update; 
          update table1 set field1="New value" where ID=12; 
  commit;"
  but I can not to inform other user that the record is edited?
   
  MAIN TARGET:
  How to get information that current record is edited? Which function can I use?

  * as long as i know, the only message you could create is just 
  * raise notice 'ur_message'; or raise exception 'ur_error_message';
  * and the only message that delphi could read is just raise exception. 

  * And if you wanna make your own message, perhaps you must using try and except
  * and you could give your own message via ShowMessage('ur_message') or other 
  * Class object on delphi.

   
  Please help me, Maybe someone have similar problem? 
  Greetings,
  Daniel
   
  Hope it Help, GOD Bless You and Bravo PostgreSQL.

view thread (4+ messages)  latest in thread

Message-ID: <1bb201c36d51$2728f500$ea00a8c0@yudha>
Permalink:  ../1bb201c36d51$2728f500$ea00a8c0@yudha/
Also on:    postgresql.org/message-id/1bb201c36d51$2728f500$ea00a8c0@yudha

 · 

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: inas_husband@bonbon.net, danielosch@o2.pl
  Subject: Re: lock row in table
  In-Reply-To: <1bb201c36d51$2728f500$ea00a8c0@yudha>

* 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