X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7A20E5E3F15 for ; Sun, 15 Aug 2004 02:03:09 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 81623-06 for ; Sun, 15 Aug 2004 05:02:59 +0000 (GMT) Received: from linuxworld.com.au (unknown [203.34.46.50]) by svr1.postgresql.org (Postfix) with ESMTP id 061DD5E37CE for ; Sun, 15 Aug 2004 02:02:56 -0300 (ADT) Received: from localhost (swm@localhost) by linuxworld.com.au (8.11.6/8.11.4) with ESMTP id i7F52S501515; Sun, 15 Aug 2004 15:02:30 +1000 Date: Sun, 15 Aug 2004 15:02:28 +1000 (EST) From: Gavin Sherry To: Bruce Momjian Cc: Christopher Kings-Lynne , Tom Lane , pgsql-hackers@postgresql.org Subject: Re: 8.0 beta status In-Reply-To: <200408150317.i7F3H0g25718@candle.pha.pa.us> Message-ID: References: <200408150317.i7F3H0g25718@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/890 X-Sequence-Number: 57859 On Sat, 14 Aug 2004, Bruce Momjian wrote: > Christopher Kings-Lynne wrote: > > > Yeah, those are all bug fixes and okay for post-beta I think. But which > > > two tablespace failures are you thinking of exactly? The last couple > > > weeks have been a bit of a blur for me... > > > > http://groups.google.com.au/groups?q=tablespaces+group:comp.databases.postgresql.hackers&hl=en&lr=&ie=UTF-8&group=comp.databases.postgresql.hackers&scoring=d&selm=Pine.LNX.4.58.0407281411470.17889%40linuxworld.com.au&rnum=4 > > I am confused. You had: > > template1=# create tablespace blah location '/home/swm/tbl/tspc1/'; > CREATE TABLESPACE > template1=# create table foo (i int) tablespace blah; > CREATE TABLE > template1=# create database foo tablespace blah; > ERROR: could not initialize database directory > DETAIL: Directory "/home/swm/tbl/data/pg_tblspc/17227/17230" already > exists. > > but with CVS head I see: > > $ psql -a test create tablespace blah location '/bjm/tmp'; > CREATE TABLESPACE > create table foo (i int) tablespace blah; > CREATE TABLE > create database foo tablespace blah; > CREATE DATABASE You need to create a condition where by the new database would have to merge a table into its default database. If you did the above in the template1 database, you would get the same effect. I sent a (partial) fix for this, which included some documentation improvements. However, I posed a question. *digs* [PATCHES] CREATE DATABASE with tablespace fix was the subject. Gavin