Bug #951: Creating table fails if inherited table has no columns. - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject Bug #951: Creating table fails if inherited table has no columns.
Date
Msg-id 20030421141831.2DDC3475A8D@postgresql.org
Whole thread Raw
Responses Re: Bug #951: Creating table fails if inherited table has no columns.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Daniel Migowski (Mig-O@artis.uni-oldenburg.de) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
Creating table fails if inherited table has no columns.

Long Description
Creating a table that inherits from another table with no colums an internal error is thrown. This is repeatable.
See the example for the error message.

Daniel Migowski


Version: 7.3.2r-7 (Debian package)
OS: Linux becks 2.4.19 #5 SMP Thu Mar 20 22:59:40 CET 2003 i686 unknown unknown GNU/Linux


Sample Code
TestDB=# create table mother ( );
CREATE TABLE
TestDB=# create table father ( father_id int4 );
CREATE TABLE
TestDB=# create table daughter ( ) inherits ( mother );
ERROR:  MemoryContextAlloc: invalid request size 0
TestDB=# create table son ( ) inherits ( father );
CREATE TABLE


No file was uploaded with this report

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: ALTER TABLE problems
Next
From: Tom Lane
Date:
Subject: Re: Bug #951: Creating table fails if inherited table has no columns.