From: David M. Richter <d.Richter@dkfz-heidelberg.de>
To: pgsql-sql@postgresql.org
Subject: table restruction
Date: Thu, 20 Sep 2001 12:34:08 +0200
Message-ID: <3BA9C620.4164B047@dkfz-heidelberg.de> (raw)
Hello!
I want to restructure a table called study.
this table has the following structure:
Table "study"
Attribute | Type | Modifier
------------------------+------------------------+----------
chilioid | character varying(80) |
instanceuid | character varying(64) |
id | character varying(64) |
studydate | date |
studytime | time |
modality | character varying(2) |
manufacturer | character varying(128) |
referingphysician | character varying(128) |
description | character varying(128) |
manufacturersmodelname | character varying(128) |
importtime | double precision |
chilisenderid | character varying(80) |
accessionnumber | character varying(64) |
institutionname | character varying(128) |
workflowstate | character varying(8) |
flags | character varying(8) |
performingphysician | character varying(128) |
reportingphysician | character varying(128) |
parentoid | character varying(80) |
So , what I have to do is to move the column parentoid between chilioid
and instanceoid. After that operation parentoid is the second column in
the table study.
Can I do any restructuring in the running database or should I dump the
database and create a new changed schema and then put the data from the
dump back?
So this would spent a lot of time, otherwise it works sure.
Is there any oppertunity to restructure the existing database without
using a dump?
Thanks in advance
David
Attachments:d.Richter.vcf (text/x-vcard, 497B) download
begin:vcard
url;quoted-printable:http://mbi.DKFZ-Heidelberg.de/=0D=0A
n:M. Richter;David
x-mozilla-html:FALSE
org:Deutsches Krebsforschungszentrum/German Cancer Research Center;Division Medizinische und Biologische Informatik
version:2.1
email;internet:d.richter@dkfz-heidelberg.de
adr;quoted-printable:;;Im Neuenheimer Feld 280 url: http://mbi.DKFZ-Heidelberg.de/=0D=0AD-69120 Heidelberg, Germany ;Heidelberg;Germany;;
x-mozilla-cpt:;-17024
fn:David M. Richter
end:vcard
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: d.Richter@dkfz-heidelberg.de
Subject: Re: table restruction
In-Reply-To: <3BA9C620.4164B047@dkfz-heidelberg.de>
* 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