agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Paul M. Aoki <aoki@cs.berkeley.edu>
To: yutaka-i@is.aist-nara.ac.jp
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: Tell me about.
Date: Wed, 25 Jan 95 01:43:06 -0800
Message-ID: <199501250943.BAA29151@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <9501181609.AA23492@dec324.aist-nara.ac.jp>

Drunkard Terry <yutaka-i@is.aist-nara.ac.jp> writes:
> 1: When I use "append" command as such situation below..
> 	monitor -TN -c "append ***** " dbname
> 	or
> 	monitor -TN -c " ***** " dbname
> 	Any method for inserting the filename or script in ***** ?

i would use the copy command here, since that (1) does all of the
insertions in a single transaction and (2) is used with an input file.

> 2: How to add/delete the attribute from the class?
> 	If can't, I have only way [remodify the class] ?
> 	so,how to copy the data in attribute ? > question 3		

you can add attributes using "addattr".  you can't remove attributes.
you can dump the data out and load it back into a new class, of
course, but then the oids of each row won't be the same.

> 3: When I add the new attribute in the class,
> 	Any method for copy the old attribute data 
> 	to the new"same"attribute ?
> 	The data in old attribute(name,salary) move in
> 	new "same name" attribute, HOW?

if i understand the question, then this is what always happens when
using "addattr" (old rows keep their old attribute values and have
null values in the new attributes).
--
  Paul M. Aoki          |  University of California at Berkeley
  aoki@CS.Berkeley.EDU  |  Dept. of EECS, Computer Science Division (#1776) 
                        |  Berkeley, CA 94720-1776

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
              URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/



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: postgres@postgres.berkeley.edu
  Cc: aoki@cs.berkeley.edu, yutaka-i@is.aist-nara.ac.jp
  Subject: Re: Tell me about.
  In-Reply-To: <199501250943.BAA29151@faerie.CS.Berkeley.EDU>

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

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