pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Campbell, Lance <lance@illinois.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Move tables to tablespace
Date: Mon, 20 Oct 2008 12:34:56 -0600
Message-ID: <dcc563d10810201134p543abbe2vce1471fccbb1b478@mail.gmail.com> (raw)
In-Reply-To: <B10E6810AC2A2F4EA7550D072CDE876001D209A6@SAB-FENWICK.sab.uiuc.edu>
References: <B10E6810AC2A2F4EA7550D072CDE876001D209A6@SAB-FENWICK.sab.uiuc.edu>

On Mon, Oct 20, 2008 at 8:10 AM, Campbell, Lance <lance@illinois.edu> wrote:
> I would like to have an SQL statement that would move all of the tables and
> indexes found within a particular schema to a particular tablespace.  Is
> there a way I can do this?

I think you'll have to write a script (either external or in plpgsql)
to do this.



view thread (3+ messages)  latest in thread

Message-ID: <dcc563d10810201134p543abbe2vce1471fccbb1b478@mail.gmail.com>
Permalink:  ../dcc563d10810201134p543abbe2vce1471fccbb1b478@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10810201134p543abbe2vce1471fccbb1b478@mail.gmail.com

 · 

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-admin@postgresql.org
  Cc: scott.marlowe@gmail.com, lance@illinois.edu
  Subject: Re: Move tables to tablespace
  In-Reply-To: <dcc563d10810201134p543abbe2vce1471fccbb1b478@mail.gmail.com>

* 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