Re: [ADMIN] A few misc. questions.

2000-05-26 Thread Peter Eisentraut
On Fri, 26 May 2000, Rainer Mager wrote: > 1. What happens when the primary key index runs out. That is, if we use an > INT(4) for a key and we create and delete enough to reach that number then > what happens? If you are talking about serial values, then you'll get an error. Otherwise it's of c

Re: [ADMIN] Bug or Feature ?

2000-05-26 Thread Karel Zak
> > I was thinking about a solution that doesn't cause an overflow. Please Use 'numeric' datetype. It never overflow and allow you to use deciamal numbers, but is slowly and is needs more memory. Karel

Re: [ADMIN] Bug or Feature ?

2000-05-26 Thread Norbert Meissner
> > Hi all, > > > > i found a strange behaviour in Postgresql 7.0 on FreeBSD 4.0 > > > > $ createdb foo > > $psql foo > > foo=# create table number (a_number int); > > foo=# insert into number values(15); > > foo=# insert into number values(16); > > select avg(a_number) from numb

Re: [ADMIN] Bug or Feature ?

2000-05-26 Thread Karel Zak
On Fri, 26 May 2000, Norbert Meissner wrote: > Hi all, > > i found a strange behaviour in Postgresql 7.0 on FreeBSD 4.0 > > $ createdb foo > $psql foo > foo=# create table number (a_number int); > foo=# insert into number values(15); > foo=# insert into number values(16); > sel

[ADMIN] Bug or Feature ?

2000-05-26 Thread Norbert Meissner
Hi all, i found a strange behaviour in Postgresql 7.0 on FreeBSD 4.0 $ createdb foo $psql foo foo=# create table number (a_number int); foo=# insert into number values(15); foo=# insert into number values(16); select avg(a_number) from number; avg -597483648 Th

RE: [ADMIN] A few misc. questions.

2000-05-26 Thread Nicolas Huillard
1. using unsigned int(4), it will take 137 years, inserting one record a second, to reach MAXINT. That's not an issue, and haven't been handled. 2. Use the curval() function, which returns exactly what you want, and is far better than reading the sequence table (I don't know if it's standard :

Re: [ADMIN] Scheduling Database Tasks

2000-05-26 Thread Reiner Dassing
Hello Ian! Nicolas Huillard proposed the use of cron based scheduling of jobs. This approach will overload you postgres server. There is another solution, which I found, will give you the granularity you will need: you can combine cron based scheuling with the ability of batch job based processi