Re: [SQL] [HACKERS] MERGE-esque Functionallity (was: Adding MERGE to the TODO list (resend with subject))

2004-05-14 Thread Mike Rylander
On Tuesday 11 May 2004 09:44 am, Bruce Momjian wrote: [snip] > > > > Bruce Momjian kirjutas E, 10.05.2004 kell 06:58: > > > > > Added to TODO: > > > > > > > > > > * Add MERGE command that does UPDATE, or on failure, INSERT > > > > [snip] Hello all. I have been lurking here for a bit and the

[SQL] view running query

2004-05-14 Thread Eric Anderson Vianet SAO
I run an application which connects to my pgsql DB. How could I see which query is sent to DB when, an example, i push some application button (such ´find´). sds Eric Anderson CPD Via Net SAO 11-66432800 ---(end of broadcast)-

Re: [SQL] where is this problem (trigger)

2004-05-14 Thread Stephan Szabo
On Wed, 12 May 2004, Theodore Petrosky wrote: > I can not seem to update these rows because of the dot > in the jobnumber field. I have found that I can change > the dot to an underscore but I thought I would ask if > there is a better solution. > > here is the error: > > UPDATE jobinfo SET isbil

Re: [SQL] where is this problem (trigger)

2004-05-14 Thread Christoph Haller
> > I fire this trigger whenever my client updates a row > in the db: > > CREATE FUNCTION notify_jobinfo() RETURNS "trigger" > AS ' > BEGIN > EXECUTE ''NOTIFY ''||TG_RELNAME||''_''||NEW.jobnumber; > RETURN NEW; > END > ' > LANGUAGE plpgsql; > > CREATE TRIGGER notify_jobinfo > AFTER U