pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
copy command and indexes
4+ messages / 4 participants
[nested] [flat]

* copy command and indexes
@ 2000-06-13 19:53  Tim White <twhite@friendlyworks.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Tim White @ 2000-06-13 19:53 UTC (permalink / raw)
  To: pgsql-admin

When using the copy command to bulk load data, will it update the indexes,
or do you have to explicitly drop and recreate the indexes?

Thanks,

Tim




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: copy command and indexes
@ 2000-06-14 11:06  Mario Amado Alves <maa@di.fct.unl.pt>
  parent: Tim White <twhite@friendlyworks.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Mario Amado Alves @ 2000-06-14 11:06 UTC (permalink / raw)
  To: Tim White <twhite@friendlyworks.com>; +Cc: pgsql-admin

On my experience it is better to recreate the indexes.

My experience is trasferring data between several Postgres systems of
different versions---and you know how Postgres versions are
incompatible---, so I have to recreate the indexes (and sometimes the
classes).

In general I dont know if it is at all possible for copy to update the
indexes; I dont think so.

On Tue, 13 Jun 2000, Tim White wrote:

> When using the copy command to bulk load data, will it update the indexes,
> or do you have to explicitly drop and recreate the indexes?
> 
> Thanks,
> 
> Tim
> 

| |,| | | |RuaFranciscoTaborda24RcD 2815-249CharnecaCaparica 351+939354002
|M|A|R|I|O|
|A|M|A|D|O|DepartmentoDeInformaticaFCT/UNL 2825-114 Caparica 351+212958536
|A|L|V|E|S|                                                  fax 212948541
| | | | | |                 maa@di.fct.unl.pt                FCT 212948300




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: copy command and indexes
@ 2000-06-14 11:59  Anthony E. Greene <agreene@pobox.com>
  parent: Tim White <twhite@friendlyworks.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Anthony E. Greene @ 2000-06-14 11:59 UTC (permalink / raw)
  To: pgsql-admin

At 14:53 2000-06-13 -0500, Tim White wrote:
>When using the copy command to bulk load data, will it update the indexes,
>or do you have to explicitly drop and recreate the indexes?

Only data tables are loaded. Indexes and other data must be recreated.

 Tony
 --
 Anthony E. Greene <agreene@pobox.com>
 PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
 Linux: The choice of a GNU Generation.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: copy command and indexes
@ 2000-06-14 14:42  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Anthony E. Greene <agreene@pobox.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Bruce Momjian @ 2000-06-14 14:42 UTC (permalink / raw)
  To: Anthony E. Greene <agreene@pobox.com>; +Cc: pgsql-admin

> At 14:53 2000-06-13 -0500, Tim White wrote:
> >When using the copy command to bulk load data, will it update the indexes,
> >or do you have to explicitly drop and recreate the indexes?
> 
> Only data tables are loaded. Indexes and other data must be recreated.

Woh.  COPY updates all indexes.

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2000-06-14 14:42 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-06-13 19:53 copy command and indexes Tim White <twhite@friendlyworks.com>
2000-06-14 11:06 ` Mario Amado Alves <maa@di.fct.unl.pt>
2000-06-14 11:59 ` Anthony E. Greene <agreene@pobox.com>
2000-06-14 14:42   ` Bruce Momjian <pgman@candle.pha.pa.us>

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