[pgsql-ayuda] BUG en postgresql 6.5.3

=?iso-8859-1?Q?Rub=E9n?= Marrero ruben@internegocios.com.mx
Sat, 10 Jun 2000 22:20:19 -0500


a ver si alguien lo puede reproducir:

si creas una tabla con con algun campo, que herede la estructura de
otra, no las puedes borrar más que la que hereda primero y la "padre"
después( lo cual es lógico), pero si por alguna razón no lo haces así,
como dice la documentación, las quieres borrar juntas, de plano se
niega, como que la tabla "hija" se semi-desaparece de tu base de datos.

[neo@nostromo otp]$ psql piloto
Welcome to the POSTGRESQL interactive sql monitor:
  Please read the file COPYRIGHT for copyright terms of POSTGRESQL
[PostgreSQL 6.5.3 on i686-pc-linux-gnu, compiled by gcc egcs-2.91.66]

   type \? for help on slash commands
   type \q to quit
   type \g or terminate with semicolon to execute query
 You are currently connected to the database: piloto

piloto=> create table a(uno int2, dos int2);
CREATE
piloto=> create table b(tres int2)inherits(a);
CREATE
piloto=> drop table a,b;
ERROR:  Relation '95388' inherits 'a'
piloto=> drop table a;
ERROR:  Relation '95388' inherits 'a'
piloto=> drop table b,a;
ERROR:  Relation '95388' inherits 'a'
piloto=> drop table b;
ERROR:  mdopen: couldn't open b: No existe el fichero o el directorio
piloto=> \d
Database    = piloto
 +------------------+----------------------------------+----------+
 |  Owner           |             Relation             |   Type   |
 +------------------+----------------------------------+----------+
 | neo              | a                                | table    |
 | neo              | b                                | table    |
 +------------------+----------------------------------+----------+
piloto=> insert into b(uno) values(123);
ERROR:  mdopen: couldn't open b: No existe el fichero o el directorio



Saludos..
-- 
                \||/
                |  -___oo
      /\  /\   / (__,,,,|
     ) /^\) ^\/ _)
     )   /^\/   _)            J. Ruben Marrero V.
     )   _ /  / _)
 /\  )/\/ ||  | )_)           ruben@internegocios.com.mx
<  >      |(,,) )__)
 ||      /    \)___)\
 | \____(      )___) )
 \______(_______;;; __;;;
--------- Pie de mensaje -------------------------------------------
Archivo historico: http://tlali.iztacala.unam.mx/maillist/pgsql-ayuda
Cancelar inscripcion:
mail to: majordomo@tlali.iztacala.unam.mx
text   : unsubscribe pgsql-ayuda