pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: archiver <archiver@db.geocrawler.com>
To: pgsql-sql@hub.org
Subject: Simple Question??
Date: Sat, 27 Feb 1999 16:50:40 -0600
Message-ID: <03ba01be62a3$9a00fd60$0b8c5aa5@timnt.weather.net> (raw)

Here's a question that maybe you can answer easily...

If I am using a sequence (seq_a) in table_a

...then "create table_b as select * from table_a"

...does table_b start using that sequence (seq_a), starting at the point
where table_a left off??

I have a 1GB table that I want to optimize by reordering it, and I will want
the new table to use the same sequence to generate the primary key. I will
then drop the original table and rename the table_b to table_a.

Any clues?

Tim Perdue
tim@perdue.net




view thread (15+ messages)  latest in thread

Message-ID: <03ba01be62a3$9a00fd60$0b8c5aa5@timnt.weather.net>
Permalink:  ../03ba01be62a3$9a00fd60$0b8c5aa5@timnt.weather.net/
Also on:    postgresql.org/message-id/03ba01be62a3$9a00fd60$0b8c5aa5@timnt.weather.net

 · 

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: archiver@db.geocrawler.com, pgsql-sql@hub.org
  Subject: Re: Simple Question??
  In-Reply-To: <03ba01be62a3$9a00fd60$0b8c5aa5@timnt.weather.net>

* 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