Re: Current initdb broken.

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Keith Parks <emkxp01(at)mtcc(dot)demon(dot)co(dot)uk>, hackers(at)postgresql(dot)org
Subject: Re: Current initdb broken.
Date: 2000-06-10 18:03:15
Message-ID: 200006101803.OAA09236@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

[ Charset ISO-8859-1 unsupported, converting... ]
> Um, excuse me. Any changes to the format of pg_shadow will break
> pg_dumpall, therefore this needs to be hold back until next release.
>

Woo, hoo. We have triggers and constraints on COPY. We could do the
default values that way. Seems DEFAULT is not activated in COPY. I
knew there was some limitation in COPY.

test=> create table test(x int, y int default 5);
CREATE
test=> copy test from '/tmp/x';
COPY
test=> select * from test;
x | y
---+---
1 |
(1 row)

Can someone suggest a clean solution for COPY? Seems we have triggers
and constraints.

--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-06-10 18:08:44 Re: Proposal: TRUNCATE TABLE table RESTRICT
Previous Message Bruce Momjian 2000-06-10 17:37:53 Re: Current initdb broken.