Re: [SQL] get sequence value of insert command

2004-11-20 Thread Erik Thiele
On Fri, 19 Nov 2004 10:57:12 -0500 "Passynkov, Vadim" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Erik Thiele [mailto:[EMAIL PROTECTED] > > Sent: Friday, November 19, 2004 3:42 AM > > To: [EMAIL PROTECTED] > > Subje

[SQL] get sequence value of insert command

2004-11-19 Thread Erik Thiele
hi create sequence mysequence; create table foo( id integer default nextval('mysequence'), bla text, wombat integer, foobar date, primary key(id) ); insert into foo (wombat) values (88); now how do i know the id of my newly inserted element? and how can this be done in a completely co

Re: [SQL] Function To Log Changes

2004-04-07 Thread Erik Thiele
one have any ideas, or is it just > not possible? http://gborg.postgresql.org/project/tablelog/projdisplay.php is this what you are looking for? cu erik -- Erik Thiele ---(end of broadcast)--- TIP 3: if posting/reading through Usenet

Re: [SQL] fine grained trigger time specification...

2004-03-23 Thread Erik Thiele
On Tue, 23 Mar 2004 10:17:31 -0600 Bruno Wolff III <[EMAIL PROTECTED]> wrote: > On Tue, Mar 23, 2004 at 15:19:13 +0100, > Erik Thiele <[EMAIL PROTECTED]> wrote: > > now sadly i am getting this kind of problem: > > > > > > zeit=> insert into a

Re: [SQL] special integrity constraints

2004-03-22 Thread Erik Thiele
On Mon, 22 Mar 2004 09:12:11 -0600 Bruno Wolff III <[EMAIL PROTECTED]> wrote: > On Mon, Mar 22, 2004 at 14:10:42 +0100, > Erik Thiele <[EMAIL PROTECTED]> wrote: > > > > it means (((count_rows(a)+count_rows(b)) modulo 2) == 0) > > OK, that means my

Re: [SQL] special integrity constraints

2004-03-22 Thread Erik Thiele
On Mon, 22 Mar 2004 06:21:28 -0800 (PST) Stephan Szabo <[EMAIL PROTECTED]> wrote: > > On Mon, 22 Mar 2004, Erik Thiele wrote: > > > On Mon, 22 Mar 2004 12:13:29 +0200 (EET) > > Achilleus Mantzios <[EMAIL PROTECTED]> wrote: > > > > >

Re: [SQL] special integrity constraints

2004-03-22 Thread Erik Thiele
On Mon, 22 Mar 2004 05:26:04 -0600 Bruno Wolff III <[EMAIL PROTECTED]> wrote: > On Mon, Mar 22, 2004 at 10:20:31 +0100, > Erik Thiele <[EMAIL PROTECTED]> wrote: > > hi, > > > > i have two tables > > > > create table a (x integer); > >

Re: [SQL] special integrity constraints

2004-03-22 Thread Erik Thiele
On Mon, 22 Mar 2004 12:13:29 +0200 (EET) Achilleus Mantzios <[EMAIL PROTECTED]> wrote: > O kyrios Erik Thiele egrapse stis Mar 22, 2004 : > > Did you check out the DEFERRABLE option on the constraint? > DEFERRABLE NOT DEFERRABLE This controls whether the constraint

[SQL] special integrity constraints

2004-03-22 Thread Erik Thiele
. so i created this new kind of problem here to make things clearer. cu Erik -- Erik Thiele ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [SQL] triggers on commit

2004-03-19 Thread Erik Thiele
On Fri, 19 Mar 2004 10:13:56 -0500 Tom Lane <[EMAIL PROTECTED]> wrote: > Erik Thiele <[EMAIL PROTECTED]> writes: > > now. what i wanted to do is ensure that this is done correctly and > > otherwise abort the transaction. > > of course this check needs to be do

[SQL] triggers on commit

2004-03-19 Thread Erik Thiele
les. and again i want to keep logic in client program to see what is really happening. my postgresql version is 7.2.1. but i also scanned 7.4 docs for the wanted functionality. cya & thx! erik -- Erik Thiele ---(end of broadcast)---

[SQL] current_date timezone documentation suggestion

2003-11-19 Thread Erik Thiele
good work! erik -- Erik Thiele ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [SQL] how to vacum

2003-09-10 Thread Erik Thiele
vacuum full; does the trick. cya erik -- Erik Thiele ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [SQL] summing tables

2003-07-15 Thread Erik Thiele
> >2 | 5 | 7 | > >3 | -2 | -4 | > > > > > > i am needing a sql statement to do > > > > c=a+b+"the c of the row with seq one less than myself" > > > > this statement has to run over the whole table, in seq order. -- Erik

[SQL] summing tables

2003-07-15 Thread Erik Thiele
f the row with seq one less than myself" this statement has to run over the whole table, in seq order. how can this be acomplished??? cu&thanks erik -- Erik Thiele ---(end of broadcast)--- TIP 1: subscribe and unsubscribe command

[SQL] time date interval...

2003-07-12 Thread Erik Thiele
;t use all those time types. use your own microsecond counter, that is completely independent of all other time stuff. that's a general guideline, not only for postgresql apps. thanks! cu erik -- Erik Thiele ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html