Re: [BUGS] BUG #1537: alter table statement

2005-03-13 Thread Tom Lane
Michael Fuhr <[EMAIL PROTECTED]> writes: > On Fri, Mar 11, 2005 at 11:12:07AM +, biju wrote: >> i tried to execute alter table statement for a particular table. i did it >> many ways, but not worked. > Please show the exact statement you executed and describe how it > didn't work. If you got

Re: [BUGS] BUG #1530: search on uuid indexed article returns no resultat

2005-03-13 Thread Tom Lane
"Avram" <[EMAIL PROTECTED]> writes: > The SELECT command using a 'uuid' field indexed with pk_situation returns no > result. The error dissapear after the backup and the restore of the database > or after deleting the index. There is no uuid datatype in the standard Postgres distribution. I suppo

Re: [BUGS] BUG #1533: "*OLD*" relation not recognized in CREATE RULE

2005-03-13 Thread Tom Lane
"Henk van den Toorn" <[EMAIL PROTECTED]> writes: > CREATE RULE rulename AS ON UPDATE > table WHERE OLD.index = NEW.index > DO INSTEAD NOTHING; > Postgresql responds with > ERROR: relation "*OLD*" does not exist Hm, works for me: regression=# create table tab1 (index serial primary key, data tex

Re: [BUGS] BUG #1541: Unusually long INSERT times after fresh clean/CREATE TABLES

2005-03-13 Thread Tom Lane
"John Engelhart" <[EMAIL PROTECTED]> writes: > Since I'm developing an SQL based application, I routinely "start from > scratch" with a script that deletes all the tables in my database and > rebuilds them. A problem started when I upgraded from 7.4.7 to 8.0.1 in > that the first run after the cle

Re: [BUGS] BUG #1539: Suggestion

2005-03-13 Thread Tom Lane
"Patrick Boulay" <[EMAIL PROTECTED]> writes: > Is it possible to change a prompt character during a transaction? Yes, read the psql reference page's section about "Prompting". regards, tom lane ---(end of broadcast)--- TIP 7

Re: [BUGS] BUG #1540: Enhancement request: 'ambiguous' column reference in psql

2005-03-13 Thread Tom Lane
"Richard Neill" <[EMAIL PROTECTED]> writes: > SELECT instrument,priceband,pounds FROM tbl_instruments,tbl_prices WHERE > tbl_instruments.priceband=tbl_prices.priceband; > ERROR: column reference "priceband" is ambiguous > I think that the first query ought to succeed, since although priceband is

Re: [BUGS] BUG #1537: alter table statement

2005-03-13 Thread Michael Fuhr
On Fri, Mar 11, 2005 at 11:12:07AM +, biju wrote: > PostgreSQL version: 7.2.2 This version is pretty old -- if you must use 7.2, then consider upgrading to 7.2.7. Better yet, try a newer release like 8.0.1. > i tried to execute alter table statement for a particular table. i did it > many w

Re: [BUGS] BUG #1540: Enhancement request: 'ambiguous' column reference

2005-03-13 Thread Neil Conway
Richard Neill wrote: I think that the first query ought to succeed, since although priceband is ambiguous (it could mean either tbl_prices.priceband or tbl_instruments.priceband), the information in the WHERE clause means that they are explicitly equal, and so it doesn't matter which one we use. We

Re: [BUGS] CC Date format code defaults to current centry

2005-03-13 Thread Bruce Momjian
Joe Brown wrote: > joe=> select to_date('19450323','CCYYMMDD'); > to_date > > 2045-03-23 > (1 row) > > joe=> select to_date('19450323','MMDD'); > to_date > > 1945-03-23 > (1 row) > > I thought the former would be "more" correct. But it seems I am mistaken.

[BUGS] BUG #1530: search on uuid indexed article returns no resultat

2005-03-13 Thread Avram
The following bug has been logged online: Bug reference: 1530 Logged by: Avram Email address: [EMAIL PROTECTED] PostgreSQL version: 7.4.6 testing Operating system: Debian kernel 2.4.18 testing (pg-uuid 0.01) Description:search on uuid indexed article returns no result

Re: [BUGS] could not read, could not write, could not fsync, Windows 2000, PostgreSQL 8.0.1

2005-03-13 Thread Qingqing Zhou
I encounter the similar problem in "make check" (win2k-mingw, 8.0.1). The regression test could randomly fail due to "could not write block (Invalid argument)" problem or could not "remove file" problem. Regards, Qingqing p.s. I believe this could be a potential serious problem, so I forward it t

[BUGS] CC Date format code defaults to current centry

2005-03-13 Thread Joe Brown
joe=> select to_date('19450323','CCYYMMDD'); to_date 2045-03-23 (1 row) joe=> select to_date('19450323','MMDD'); to_date 1945-03-23 (1 row) I thought the former would be "more" correct. But it seems I am mistaken. ---(end of broadcast)-

[BUGS] BUG #1532: typecast problem between arrays of an int8 derived datatype and varchar[]

2005-03-13 Thread Ezequiel Tolnay
The following bug has been logged online: Bug reference: 1532 Logged by: Ezequiel Tolnay Email address: [EMAIL PROTECTED] PostgreSQL version: 8.0.1 Operating system: Windows 2003 Server Description:typecast problem between arrays of an int8 derived datatype and varcha

R: [BUGS] Fault when return strings over 256 characters in PLpgSQL

2005-03-13 Thread Burn !
It could be a pgAdmin III presentation fault. I'm using PostgreSQL 8.0.0 on Windows 2k and I've got the same problem but only when inquiring via pgAdmin, using psql from command line all goes ok. I think that the resulting string are correct, that's why the function "position(\'.\' in userName);" d

Re: [BUGS] [HACKERS] We are not following the spec for HAVING without GROUP BY

2005-03-13 Thread Zeugswetter Andreas DAZ SD
> What that means is that neither the HAVING clause nor the targetlist > can use any ungrouped columns except within aggregate calls; that is, > > select col from tab having 2>1 Informix: select tabname from systables having 2 > 1; 294: The column (tabname) must be in the GROUP BY list.

[BUGS] BUG #1533: "*OLD*" relation not recognized in CREATE RULE

2005-03-13 Thread Henk van den Toorn
The following bug has been logged online: Bug reference: 1533 Logged by: Henk van den Toorn Email address: [EMAIL PROTECTED] PostgreSQL version: 7.4.3-7 Operating system: Freebsd 5.3 Description:"*OLD*" relation not recognized in CREATE RULE Details: When creating a

Re: [BUGS] [HACKERS] We are not following the spec for HAVING without GROUP

2005-03-13 Thread Kevin HaleBoyes
Tom Lane wrote: Would those of you with access to other DBMSes try this: create table tab (col integer); select 1 from tab having 1=0; select 1 from tab having 1=1; insert into tab values(1); insert into tab values(2); select 1 from tab having 1=0; select 1 from tab having 1=1; I claim that a SQL-c

[BUGS] BUG #1534: 2^32-1 commands limitation in one transcation

2005-03-13 Thread yingqun wang
The following bug has been logged online: Bug reference: 1534 Logged by: yingqun wang Email address: [EMAIL PROTECTED] PostgreSQL version: 8.0 Operating system: fedora Description:2^32-1 commands limitation in one transcation Details: My plpgsql function loop throug

Re: [BUGS] [HACKERS] We are not following the spec for HAVING without GROUP BY

2005-03-13 Thread Barry Lind
On Oracle 9.2 you get 0, 0, 0, and 2 rows. --Barry SQL> create table tab (col integer); Table created. SQL> select 1 from tab having 1=0; no rows selected SQL> select 1 from tab having 1=1; no rows selected SQL> insert into tab values (1); 1 row created. SQL> insert into tab values (2);

Re: [BUGS] [HACKERS] We are not following the spec for HAVING without GROUP BY

2005-03-13 Thread johnnnnnn
On Thu, Mar 10, 2005 at 12:44:50PM -0500, Tom Lane wrote: > Would those of you with access to other DBMSes try this: DB2/LINUX 8.1.6 > create table tab (col integer); > select 1 from tab having 1=0; 1 --- 0 record(s) selected. > select 1 from tab having 1=1; 1 -

Re: [BUGS] [HACKERS] We are not following the spec for HAVING without GROUP

2005-03-13 Thread Mark Kirkwood
Tom Lane wrote: Would those of you with access to other DBMSes try this: create table tab (col integer); select 1 from tab having 1=0; select 1 from tab having 1=1; insert into tab values(1); insert into tab values(2); select 1 from tab having 1=0; select 1 from tab having 1=1; I claim that a SQL-c

Re: [BUGS] [HACKERS] We are not following the spec for HAVING without GROUP

2005-03-13 Thread Heikki Linnakangas
On Thu, 10 Mar 2005, Tom Lane wrote: Would those of you with access to other DBMSes try this: create table tab (col integer); select 1 from tab having 1=0; select 1 from tab having 1=1; insert into tab values(1); insert into tab values(2); select 1 from tab having 1=0; select 1 from tab having 1=1;

[BUGS] BUG #1536: alter command

2005-03-13 Thread biju
The following bug has been logged online: Bug reference: 1536 Logged by: biju Email address: [EMAIL PROTECTED] PostgreSQL version: 7.2.2 Operating system: linux-gnu Description:alter command Details: i tried to run alter command , but it didnt work. can u help for

[BUGS] BUG #1541: Unusually long INSERT times after fresh clean/CREATE TABLES

2005-03-13 Thread John Engelhart
The following bug has been logged online: Bug reference: 1541 Logged by: John Engelhart Email address: [EMAIL PROTECTED] PostgreSQL version: 8.0.1 Operating system: FreeBSD 5.3-p5 Description:Unusually long INSERT times after fresh clean/CREATE TABLES Details: Recen

[BUGS] BUG #1538: Unable to reattach to shared memory

2005-03-13 Thread Ludwig Lim
The following bug has been logged online: Bug reference: 1538 Logged by: Ludwig Lim Email address: [EMAIL PROTECTED] PostgreSQL version: 8.0.1 Operating system: Windows XP SP.1 Description:Unable to reattach to shared memory Details: 2005-03-11 12:32:23 LOG: backgr

[BUGS] BUG #1537: alter table statement

2005-03-13 Thread biju
The following bug has been logged online: Bug reference: 1537 Logged by: biju Email address: [EMAIL PROTECTED] PostgreSQL version: 7.2.2 Operating system: linux-gnu Description:alter table statement Details: i tried to execute alter table statement for a particular

[BUGS] BUG #1539: Suggestion

2005-03-13 Thread Patrick Boulay
The following bug has been logged online: Bug reference: 1539 Logged by: Patrick Boulay Email address: [EMAIL PROTECTED] PostgreSQL version: 7.4.5 Operating system: Unix Solaris Description:Suggestion Details: Sometime I do transaction and I do a couple of commands

[BUGS] BUG #1535: ODBC bug in pgslqodbc-08_00_0101

2005-03-13 Thread Miguel Juan
The following bug has been logged online: Bug reference: 1535 Logged by: Miguel Juan Email address: [EMAIL PROTECTED] PostgreSQL version: 7.4.2 Operating system: W2000Pro Description:ODBC bug in pgslqodbc-08_00_0101 Details: Hy, I have installed the last version of

[BUGS] BUG #1540: Enhancement request: 'ambiguous' column reference in psql

2005-03-13 Thread Richard Neill
The following bug has been logged online: Bug reference: 1540 Logged by: Richard Neill Email address: [EMAIL PROTECTED] PostgreSQL version: 8.01 Operating system: Linux Description:Enhancement request: 'ambiguous' column reference in psql Details: Dear Postgresql te