pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: postgresql <pgsql@symcom.com>
To: PgSQL-SQL <pgsql-sql@postgresql.org>
Subject: changing a definition in a dump file?
Date: Fri, 18 Jan 2002 11:42:31 -0500
Message-ID: <200201181627.g0IGRTV91993@postgresql.org> (raw)

Hi all,
I think I inadvertently sent this to pg-admin...

Is it possible to change the definitions in the dump file to alter a 
table.

this is from my  pgdump file:

CREATE TABLE "fc_client_info" (
   "acode" character varying(12),
   "cname" character varying(32)
);

If I change the file to read:

CREATE TABLE "fc_client_info" (
   "acode" character varying(12),
   "cname" character varying(128)
);

Can I drop the database and read in the altered pgdump file to effect the 
change?

Thanks for your time.

Ted





view thread (2+ messages)  latest in thread

Message-ID: <200201181627.g0IGRTV91993@postgresql.org>
Permalink:  ../200201181627.g0IGRTV91993@postgresql.org/
Also on:    postgresql.org/message-id/200201181627.g0IGRTV91993@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pgsql@symcom.com
  Subject: Re: changing a definition in a dump file?
  In-Reply-To: <200201181627.g0IGRTV91993@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox