[BUGS] Cluster fails

2000-05-10 Thread Mark Kirkwood

Your name :Mark Kirkwood
Your email address  :[EMAIL PROTECTED]


System Configuration
-
  Architecture (example: Intel Pentium) :Intel Pentuim

  Operating System (example: Linux 2.0.26 ELF)  :Linux 2.2.14-5.0 ELF
(Redhat 6.2)

  PostgreSQL version (example: PostgreSQL-6.5.1):7.0RC4

  Compiler used (example:  gcc 2.8.0)   :egcs-2.91.66


Please enter a FULL description of your problem:

command  "cluster indexname on tablename" fails with text
"ERROR : temp123456abc is an index relation".
tablename and indexname are missing from pg_class, but
tablename still exists in the data directory


Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
--

create table testit ( id integer);
create index testit_i on testit( id );
cluster testit_i on testit;

If you know how this problem might be fixed, list the solution below:
-




[BUGS] CLUSTER bug

2000-05-10 Thread Darren Steven

Sorry for a downer on an excellent piece of software.

--
Darren Steven
Applications Specialist
Networking Tasmania
Telstra Australia
Ph.1800 813 302




If PostgreSQL failed to compile on your computer or you found a bug that
is likely to be specific to one platform then please fill out this form
and e-mail it to [EMAIL PROTECTED]

To report any other bug, fill out the form below and e-mail it to
[EMAIL PROTECTED]

If you not only found the problem but solved it and generated a patch
then e-mail it to [EMAIL PROTECTED] instead.  Please use the
command "diff -c" to generate the patch.

You may also enter a bug report at http://www.postgresql.org/ instead of
e-mail-ing this form.


POSTGRESQL BUG REPORT TEMPLATE



Your name   :   Darren Steven
Your email address  :   [EMAIL PROTECTED]


System Configuration
-
  Architecture (example: Intel Pentium) : Intel PIII

  Operating System (example: Linux 2.0.26 ELF)  : Linux 2.2.14

  PostgreSQL version (example: PostgreSQL-6.5.1):   PostgreSQL-7.0

  Compiler used (example:  gcc 2.8.0)   : egcs-2.91.66 19990314/Linux 
(egcs-1.1.2 release)


Please enter a FULL description of your problem:


CLUSTER fails and appears to corrupt database. I don't know if this happened on other 
releases, found it by mistake while playing with 7.0

PS Great DB by the way.



Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible: 
--

Create a database, create a table. insert some data. create index on one of fields. 
CLUSTER indexname ON tablename;

With a large number of rows (so I can see it happeneing), I see the table being copied 
to a temp, and the renamed back to its original name. the problem is with the index :

dws=# create index testind on accesslog (alclient);
CREATE
dws=# cluster testind on accesslog;
ERROR:  temp_674e00 is an index relation 


temp_674e00 appears to be a copy of the index file.

psql now tells me the relation accesslog no longer exists

the same error also occurs on small tables.

If you know how this problem might be fixed, list the solution below:
-

Sorry. I've looked at cluster.c and if I fix it I'll post it.



[BUGS] regression tests 7.0: instructional copy typo.

2000-05-10 Thread Philip Hallstrom

This is incredibly minor, but I thought I'd send it anyway.  If you don't
want stuff like this let me know..

After running the regression test via "gmake runtest" for version 7.0, the
last bit of output says:


--
ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out

To run the optional big test(s) too, type 'make bigtest'
These big tests can take over an hour to complete
These actually are: numeric_big
--


The second line should say "gmake bigtest" instead of "make
bigtest" shouldn't it?  make didn't work anyway.. gmake did.

Considering that's the only glitch I've hit so far, not bad! :)

-philip




Re: [BUGS] CLUSTER bug

2000-05-10 Thread Bruce Momjian

Here is a reproducable failure for CLUSTER.  Please, someone, find out
why this is happening so we can get it off our TODO list.

I now get:

test=> cluster i_te on prauflage;
ERROR:  temp_4c92 is an index relation

---

It works. But why doesn't it work on my tables:

create table prauflage(
nr int4,
au int4,
pl text,
be text,
st int4,
vh bool,
ex int4,
primary key(nr,au));

prd=> create unique index i_te on prauflage(nr,au);
CREATE
prd=> cluster i_te on prauflage;
ERROR:  Cannot create unique index. Table contains non-unique values   

-- 
  Bruce Momjian|  http://www.op.net/~candle
  [EMAIL PROTECTED]   |  (610) 853-3000
  +  If your life is a hard drive, |  830 Blythe Avenue
  +  Christ can be your backup.|  Drexel Hill, Pennsylvania 19026



Re: [BUGS] CLUSTER bug

2000-05-10 Thread Bruce Momjian

We have gotten sporatic reports of problems with CLUSTER.  Perhaps this
will prompt someone to find the problem and FIX IT FOR 7.0.1.  :-)


> Sorry for a downer on an excellent piece of software.
> 
> --
> Darren Steven
> Applications Specialist
> Networking Tasmania
> Telstra Australia
> Ph.1800 813 302
> 
> 

> If PostgreSQL failed to compile on your computer or you found a bug that
> is likely to be specific to one platform then please fill out this form
> and e-mail it to [EMAIL PROTECTED]
> 
> To report any other bug, fill out the form below and e-mail it to
> [EMAIL PROTECTED]
> 
> If you not only found the problem but solved it and generated a patch
> then e-mail it to [EMAIL PROTECTED] instead.  Please use the
> command "diff -c" to generate the patch.
> 
> You may also enter a bug report at http://www.postgresql.org/ instead of
> e-mail-ing this form.
> 
> 
> POSTGRESQL BUG REPORT TEMPLATE
> 
> 
> 
> Your name :   Darren Steven
> Your email address:   [EMAIL PROTECTED]
> 
> 
> System Configuration
> -
>   Architecture (example: Intel Pentium)   : Intel PIII
> 
>   Operating System (example: Linux 2.0.26 ELF): Linux 2.2.14
> 
>   PostgreSQL version (example: PostgreSQL-6.5.1):   PostgreSQL-7.0
> 
>   Compiler used (example:  gcc 2.8.0) : egcs-2.91.66 19990314/Linux 
>(egcs-1.1.2 release)
> 
> 
> Please enter a FULL description of your problem:
> 
> 
> CLUSTER fails and appears to corrupt database. I don't know if this happened on 
>other releases, found it by mistake while playing with 7.0
> 
> PS Great DB by the way.
> 
> 
> 
> Please describe a way to repeat the problem.   Please try to provide a
> concise reproducible example, if at all possible: 
> --
> 
> Create a database, create a table. insert some data. create index on one of fields. 
>CLUSTER indexname ON tablename;
> 
> With a large number of rows (so I can see it happeneing), I see the table being 
>copied to a temp, and the renamed back to its original name. the problem is with the 
>index :
> 
> dws=# create index testind on accesslog (alclient);
> CREATE
> dws=# cluster testind on accesslog;
> ERROR:  temp_674e00 is an index relation 
> 
> 
> temp_674e00 appears to be a copy of the index file.
> 
> psql now tells me the relation accesslog no longer exists
> 
> the same error also occurs on small tables.
> 
> If you know how this problem might be fixed, list the solution below:
> -
> 
> Sorry. I've looked at cluster.c and if I fix it I'll post it.


-- 
  Bruce Momjian|  http://www.op.net/~candle
  [EMAIL PROTECTED]   |  (610) 853-3000
  +  If your life is a hard drive, |  830 Blythe Avenue
  +  Christ can be your backup.|  Drexel Hill, Pennsylvania 19026



Re: [BUGS] Error in pgaccess (parse error at or near """) on createnew user with password

2000-05-10 Thread Peter Eisentraut

Tom Lane writes:

> > The password must be single-quoted nowadays. Put that on the 7.0.1 list
> 
> I'd say single quotes is correct behavior for the password, actually.
> Double quotes are only appropriate in a position where an SQL name is
> wanted.  The underlying syntax is really
>   CREATE USER  WITH PASSWORD 

Yes, that's why we made that change. I was more referring to the pgaccess
"list". Sorry.


-- 
Peter Eisentraut  Sernanders väg 10:115
[EMAIL PROTECTED]   75262 Uppsala
http://yi.org/peter-e/Sweden





Re: [BUGS] Error in pgaccess (parse error at or near """) on createnew user with password

2000-05-10 Thread Bruce Momjian

[Charset ISO-8859-1 unsupported, filtering to ASCII...]
> Tom Lane writes:
> 
> > > The password must be single-quoted nowadays. Put that on the 7.0.1 list
> > 
> > I'd say single quotes is correct behavior for the password, actually.
> > Double quotes are only appropriate in a position where an SQL name is
> > wanted.  The underlying syntax is really
> > CREATE USER  WITH PASSWORD 
> 
> Yes, that's why we made that change. I was more referring to the pgaccess
> "list". Sorry.

Peter, is this a pgaccess bug?  If so, can you contact the author?

-- 
  Bruce Momjian|  http://www.op.net/~candle
  [EMAIL PROTECTED]   |  (610) 853-3000
  +  If your life is a hard drive, |  830 Blythe Avenue
  +  Christ can be your backup.|  Drexel Hill, Pennsylvania 19026



Re: [BUGS] CLUSTER bug

2000-05-10 Thread Tom Lane

Bruce Momjian <[EMAIL PROTECTED]> writes:
> We have gotten sporatic reports of problems with CLUSTER.  Perhaps this
> will prompt someone to find the problem and FIX IT FOR 7.0.1.  :-)

The "sporadic" aspect probably had something to do with referencing
already-freed storage, which looks like a bug that'd been there awhile.
However, CLUSTER was definitely broken completely by changes elsewhere
in 7.0.  Anyone feel like adding a regression test for it?

regards, tom lane