[BUGS] Bug in AT TIME ZONE contruct between EST and INTERVAL '-05:00'

2003-03-13 Thread Joshua Moore-Oliva
When selecting with the AT TIME ZONE or timezone function, the returned value is not always a timestamp. This is inconsistent with the documentation. To reproduce this problem, run these two queries. SELECT now() AT TIME ZONE 'EST' returns 2003-03-13 21:27:14.63401-05 SELECT now() AT TIME ZON

Re: [BUGS] create table permissions bug for 7.3.2

2003-03-13 Thread Evgeny Duzhakow
On Thu, 13 Mar 2003, Tom Lane wrote: TL>regression=# create user z; TL>CREATE USER TL>regression=# create schema s; TL>CREATE SCHEMA TL>regression=# \c - z TL>You are now connected as new user z. TL>regression=> create table s.t (f1 int); TL>ERROR: s: permission denied TL>regression=> TL>I'm not

RESOLUTION: Re: [BUGS] Bug in AT TIME ZONE contruct between EST and INTERVAL '-05:00' (resubmit now that I am a member of this list)

2003-03-13 Thread Joshua Moore-Oliva
A kind person on the pgsql-general list told me. "This appears to be a simple typo in the pg_proc entry for the function. The underlying C code thinks it is returning a timestamp without time zone, but that's not what the pg_proc entry has. You can fix this in an existing database by doing UPDAT

Re: [BUGS] Bug in AT TIME ZONE contruct between EST and INTERVAL '-05:00' (resubmit now that I am a member of this list) More info

2003-03-13 Thread Joshua Moore-Oliva
In addition, I have upgraded to postgre 7.3.2 instead of postgre 7.3 and I get the exact same output except that years are included in the interval. It still returns an interval instead of a timestamp. josh. On March 13, 2003 10:12 pm, Joshua Moore-Oliva wrote: > When selecting with the AT TI

[BUGS] Bug in AT TIME ZONE contruct between EST and INTERVAL '-05:00' (resubmit now that I am a member of this list)

2003-03-13 Thread Joshua Moore-Oliva
When selecting with the AT TIME ZONE or timezone function, the returned value is not always a timestamp. This is inconsistent with the documentation. To reproduce this problem, run these two queries. SELECT now() AT TIME ZONE 'EST' returns 2003-03-13 21:27:14.63401-05 SELECT now() AT TIME ZONE

Re: [BUGS] bug in numeric log() on 7.1, 7.2.2, 7.2.3

2003-03-13 Thread Tom Lane
dmarin <[EMAIL PROTECTED]> writes: > This query never returns: > select log(93094::numeric/92908::numeric); The attached patch against 7.3 seems to take care of the problem. You should be able to apply it to 7.2, with possibly some tweaking (the code needs to go into the loop in ln_var()). I am

Re: [BUGS] now() and date_trunc() apparently corrupting data

2003-03-13 Thread Tom Lane
Oliver Elphick <[EMAIL PROTECTED]> writes: > This is with -configure -enable-integer-datetime in 7.3.2, i386 Linux > platform. Is anyone else seeing this? If so, does it happen without > --enable-integer-datetime? > junk=# select * from mt; > v > - >

[BUGS] now() and date_trunc() apparently corrupting data

2003-03-13 Thread Oliver Elphick
This is with -configure -enable-integer-datetime in 7.3.2, i386 Linux platform. Is anyone else seeing this? If so, does it happen without --enable-integer-datetime? junk=# \d mt Table "public.mt" Column |Type | Modifiers --

Re: [BUGS] Transactions and RowExclusive locks on foreign key tables

2003-03-13 Thread Stephan Szabo
On Thu, 13 Mar 2003, Donald Fraser wrote: > I have a question regarding transactions. > When updating a row of a table PostgreSQL obtains a RowExclusive lock, > which according to the docs means that no other transaction can obtain > a RowExclusive lock on this row in the same table until the ex

[BUGS] Transactions and RowExclusive locks on foreign key tables

2003-03-13 Thread Donald Fraser
I have a question regarding transactions. When updating a row of a table PostgreSQL obtains a RowExclusive lock, which according to the docs means that no other transaction can obtain a RowExclusive lock on this row in the same table until the existing one is released. That seems fair enoug

Re: [BUGS] Solution for bug #899

2003-03-13 Thread Laurent FAILLIE
Ok there is the context diff of my modification : Bye Laurent --- *** postgresql-7.3.2/src/bin/pg_dump/pg_dump.c Fri Dec 27 18:10:55 2002 --- postgresql-7.3.2/src/bin/pg_dump/pg_dump.c.new Wed Mar 5 12:12:32 2003 *** *** 601,606 --- 601,609

Re: [BUGS] Optimizer bug in subselect/view

2003-03-13 Thread Tom Lane
Andrew Koshelev <[EMAIL PROTECTED]> writes: > As you can see, optimizer in earlier version of PostgreSQL skips > unneeded data, but latest version doesn't. CVS tip works the way you want it to. The behavior in 7.3.* is an unfortunate side-effect of a quick-and-dirty bug fix. The less dirty way t

Re: [BUGS] create table permissions bug for 7.3.2

2003-03-13 Thread Tom Lane
Evgeny Duzhakow <[EMAIL PROTECTED]> writes: > Now connect and try to create the table: > testtables=# \c - fake > You are now connected as new user fake. > testtables=> create table qq(i int); > CREATE TABLE Sure. You need to revoke CREATE access on the public schema (not the same thing as the

[BUGS] Optimizer bug in subselect/view

2003-03-13 Thread Andrew Koshelev
I have in subselect processing. Example below: create table users (uid serial primary key, uname text); create table folders (fid serial primary key, fname text, uid int); create view user_view as select u.uid, u.uname, (select count (*) from folders where uid = u.uid) as nfolders from users u;