Thread: Adding attisdropped

Adding attisdropped

From
"Christopher Kings-Lynne"
Date:
Hi,

I've attached the changes I've made to pg_attribute.h - I can't see what's
wrong but whenever I do an initdb it fails:

initdb -D /home/chriskl/local/data
The files belonging to this database system will be owned by user "chriskl".
This user must also own the server process.

The database cluster will be initialized with locale C.

creating directory /home/chriskl/local/data... ok
creating directory /home/chriskl/local/data/base... ok
creating directory /home/chriskl/local/data/global... ok
creating directory /home/chriskl/local/data/pg_xlog... ok
creating directory /home/chriskl/local/data/pg_clog... ok
creating template1 database in /home/chriskl/local/data/base/1...
initdb failed.
Removing /home/chriskl/local/data.

Chris

Attachment

Re: Adding attisdropped

From
Tom Lane
Date:
"Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:
> I've attached the changes I've made to pg_attribute.h - I can't see what's
> wrong but whenever I do an initdb it fails:

Did you change the relnatts entry in pg_class.h for pg_attribute?

More generally, run initdb with -d or -v or whatever its debug-output
switch is, and look at the last few lines to see the actual error.
(Caution: this may produce megabytes of output.)
        regards, tom lane




Re: Adding attisdropped

From
Bruce Momjian
Date:
Seems we may not need isdropped, so I will hold on evaluating this.

---------------------------------------------------------------------------

Christopher Kings-Lynne wrote:
> Hi,
> 
> I've attached the changes I've made to pg_attribute.h - I can't see what's
> wrong but whenever I do an initdb it fails:
> 
> initdb -D /home/chriskl/local/data
> The files belonging to this database system will be owned by user "chriskl".
> This user must also own the server process.
> 
> The database cluster will be initialized with locale C.
> 
> creating directory /home/chriskl/local/data... ok
> creating directory /home/chriskl/local/data/base... ok
> creating directory /home/chriskl/local/data/global... ok
> creating directory /home/chriskl/local/data/pg_xlog... ok
> creating directory /home/chriskl/local/data/pg_clog... ok
> creating template1 database in /home/chriskl/local/data/base/1...
> initdb failed.
> Removing /home/chriskl/local/data.
> 
> Chris

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026