Re: [BUGS] BUG #4059: Vacuum full not always cleaning empty tables

2008-03-25 Thread Alvaro Herrera
Mark Steben wrote: > I sent an email to 'pgsql-bugs@postgresql.org' entitled > 'Possible bug with VACUUM FULL' and also an addendum > But neglected to also send this bug report form. > You can refer to those emails; in a nutshell, I have found that VACUUM FULL > will not clean dead tuples out of

Re: [BUGS] BUG #4058: xml_table() segfaults on null

2008-03-25 Thread Tom Lane
"Frank F." <[EMAIL PROTECTED]> writes: > The xml_table() function in the xml2 contrib module causes a segfault in > postgres 8.2.5 if it encounters a null value in the column that it's trying > to pull XML data from. Seems to have been broken since day one :-(. Will fix.

[BUGS] BUG #4060: libpq - large stack causes TCP/IP error

2008-03-25 Thread Bruce Nairn
The following bug has been logged online: Bug reference: 4060 Logged by: Bruce Nairn Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3.1 Operating system: Windows XP Pro Description:libpq - large stack causes TCP/IP error Details: I'm using the libpq interfac

[BUGS] BUG #4059: Vacuum full not always cleaning empty tables

2008-03-25 Thread Mark Steben
The following bug has been logged online: Bug reference: 4059 Logged by: Mark Steben Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.5 Operating system: Linux redhat Description:Vacuum full not always cleaning empty tables Details: I sent an email to 'pgsql

Re: [BUGS] Possible problem with EXTRACT(EPOCH FROM TIMESTAMP)

2008-03-25 Thread David Rowley
Thanks for the feedback. I would have been more suspicious of time zones if the unusual date had fallen on the 25th of march that year, this is when daylight savings starts in the timezone that postgresql uses on my system. The AT TIME ZONE sounds like the best fix for my problem. Thank you

Re: [BUGS] BUG #4057: SUM returns NULL when given no rows

2008-03-25 Thread Tom Lane
"Reginald Drake" <[EMAIL PROTECTED]> writes: > Doing something like "SELECT SUM(some_integer_column) FROM some_table WHERE > FALSE" gives me NULL, where I would expect 0. Since COUNT does give a > meaningful value when applied to zero columns, maybe SUM should do the same. You might expect that, b

[BUGS] BUG #4057: SUM returns NULL when given no rows

2008-03-25 Thread Reginald Drake
The following bug has been logged online: Bug reference: 4057 Logged by: Reginald Drake Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.7 Operating system: Ubuntu linux Description:SUM returns NULL when given no rows Details: Doing something like "SELECT SU

Re: [BUGS] Possible problem with EXTRACT(EPOCH FROM TIMESTAMP)

2008-03-25 Thread Tom Lane
David Fetter <[EMAIL PROTECTED]> writes: > On Tue, Mar 25, 2008 at 07:50:30PM -, David Rowley wrote: >> SELECT FLOOR(EXTRACT(EPOCH FROM '2007-04-09 00:59:59'::TIMESTAMP WITHOUT >> TIME ZONE) / 86400.0),EXTRACT(EPOCH FROM '2007-04-09 00:59:59'::TIMESTAMP >> WITHOUT TIME ZONE); > This is a bug

Re: [BUGS] Possible problem with EXTRACT(EPOCH FROM TIMESTAMP)

2008-03-25 Thread David Fetter
On Tue, Mar 25, 2008 at 07:50:30PM -, David Rowley wrote: > Hi, > > I came across something weird that I personally can't explain regarding the > EXTRACT function. > I've created a few SQLs to let people see what is happening. Perhaps there > is an explaination for it. > > Here is my script t

[BUGS] Possible problem with EXTRACT(EPOCH FROM TIMESTAMP)

2008-03-25 Thread David Rowley
Hi, I came across something weird that I personally can't explain regarding the EXTRACT function. I've created a few SQLs to let people see what is happening. Perhaps there is an explaination for it. Here is my script to test: -- The first column of the following 2 queries is trying to -- c

[BUGS] BUG #4058: xml_table() segfaults on null

2008-03-25 Thread Frank F.
The following bug has been logged online: Bug reference: 4058 Logged by: Frank F. Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.5-2PGDG Operating system: Centos Description:xml_table() segfaults on null Details: The xml_table() function in the xml2 contri

Re: [BUGS] can't delete record from second table in rules of view with join select

2008-03-25 Thread Tom Lane
Sergey Burladyan <[EMAIL PROTECTED]> writes: > Sorry, after thinking some time about this problem now i may be understand > what going on there... %) > When first rule was exec - no OLD row anymore in "v" view, nothing will be > joined and in second rule > OLD value is empty... so my question is

Re: [BUGS] BUG: PG do not use index

2008-03-25 Thread Bill Moran
In response to [EMAIL PROTECTED]: > Why PG do not use index? The standard question: when was the last time you did a vacuum analyze on this table? > > select max(id) from akh_testing_result > For MySQL this query take 2-3ms, but Postgres take 132 000ms to execute query. > > select max(id) from

Re: [BUGS] BUG #4055: Using Like in PostgreSQL 8.2.7 and 8.3.1

2008-03-25 Thread Bill Moran
In response to "Hugo Rafael Lesme Marquez" <[EMAIL PROTECTED]>: > > The following bug has been logged online: > > Bug reference: 4055 > Logged by: Hugo Rafael Lesme Marquez > Email address: [EMAIL PROTECTED] > PostgreSQL version: 8.2.7 and 8.3.1 > Operating system: Windows 2

Re: [BUGS] why provide cross type arithmetic operators

2008-03-25 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Added to TODO: > > * Add more cross-data-type operators > > http://archives.postgresql.org/pgsql-bugs/2008-01/msg00189.php > > Uh ... that is exactly 180 degrees away from the point of the thread. OK, I see now, updated: *

Re: [BUGS] can't delete record from second table in rules of view with join select

2008-03-25 Thread Sergey Burladyan
Hello, all > not important, is it one rule like: > create rule v_del as on delete to v do instead ( >delete from o1 where id = old.o1_id; >delete from o2 where id = old.o2_id; > ); > > or split into two rule like: > create rule v_del1 as on delete to v do instead ( >delete

Re: [BUGS] BUG: PG do not use index

2008-03-25 Thread Alvaro Herrera
[EMAIL PROTECTED] wrote: > Why PG do not use index? > select max(id) from akh_testing_result What PG version are you using? Recent versions should indeed use the index. Perhaps you just need to upgrade. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The Postgre

[BUGS] can't delete record from second table in rules of view with join select

2008-03-25 Thread Sergey Burladyan
Hello, all From sql.ru forum: not important, is it one rule like: create rule v_del as on delete to v do instead ( delete from o1 where id = old.o1_id; delete from o2 where id = old.o2_id; ); or split into two rule like: create rule v_del1 as on delete to v do instead ( dele

[BUGS] BUG: PG do not use index

2008-03-25 Thread Eugen.Konkov
Why PG do not use index? select max(id) from akh_testing_result For MySQL this query take 2-3ms, but Postgres take 132 000ms to execute query. select max(id) from akh_testing_result Query executed in 2,12 minutes, 1 Record(s) Returned --

Re: [BUGS] BUG #4047: case preserve for columns

2008-03-25 Thread Eugen.Konkov
if standard cause head acheing ignore standard You do so with UPPERCASE, so now you use all lowercased. This is good when you do thing simpler. But why you ignore asking of thousands people about case preserving? create table test ( "Id" integer ); SELECT "Id" as "ID" FROM test This cause BIG h