Re: [SQL] mail alert

2009-08-13 Thread Adrian Klaver
On Wednesday 12 August 2009 6:27:25 am Jan Verheyden wrote: > Hi, > > I got a bit stuck... > I was looking for a solution for option a) > > Maybe I'll first explain the situation a bit more: > > I have one database for patient registration > Another one for image storage > And a third one for book

Re: [SQL] mail alert

2009-08-13 Thread Alvaro Herrera
Tim Landscheidt wrote: > The main disadvantage in using a listener is that it is your > responsibility to make sure that the listener is listening > 24/7 - from before the database accepts other connections, > through network failures, bugs, etc. - otherwise notifica- > tions will be lost. Therefo

Re: [SQL] mail alert

2009-08-13 Thread Tim Landscheidt
Alvaro Herrera wrote: >> > It's on Windows >> I'd go with notify and a listener written in C using c-client to send >> emails, but only because I've used those before. > I wouldn't write it in C but rather Perl or Python, but whatever suits > your fancy should work (Visual Basic anyone?). The

Re: [SQL] mail alert

2009-08-13 Thread Alvaro Herrera
Jasen Betts wrote: > On 2009-08-12, Jan Verheyden wrote: > > --_000_E30C7040DE22624185BAD4093190B54437BE5DB4A9EX2007MBX2uzk_ > > Content-Type: text/plain; charset="us-ascii" > > Content-Transfer-Encoding: quoted-printable > > > > It's on Windows > > > > I'd go with notify and a listener written i

Re: [SQL] mail alert

2009-08-13 Thread Jasen Betts
On 2009-08-12, Jan Verheyden wrote: > --_000_E30C7040DE22624185BAD4093190B54437BE5DB4A9EX2007MBX2uzk_ > Content-Type: text/plain; charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > It's on Windows > I'd go with notify and a listener written in C using c-client to send emails, bu

Re: [SQL] mail alert

2009-08-13 Thread Jasen Betts
On 2009-08-11, Jan Verheyden wrote: > > Hi All, > > I was looking in what way it's possible to alert via mail when some conditi= > ons are true in a database. > > Thanks in advance! Assuming you mean email, and not ink on paper (hmm, OTOH you could load postcards into a printer) you could d

Re: [SQL] simple? query

2009-08-13 Thread Relyea, Mike
> From: pgsql-sql-ow...@postgresql.org [mailto:pgsql-sql-ow...@postgresql.org] On Behalf Of Jan Verheyden > Subject: [SQL] simple? query > > Hi, > I was trying to run following query but doesn't work: > if (uid='janvleuven10') then > insert into test (registered) values ('1'); > else > insert

[SQL] simple? query

2009-08-13 Thread Jan Verheyden
Hi, I was trying to run following query but doesn't work: if (uid='janvleuven10') then insert into test (registered) values ('1'); else insert into test (registered) values ('0'); end if; [cid:image001.png@01CA1C1B.03410D10] Anyone an idea? Regards, Jan <>