Skip site navigation (1) Skip section navigation (2)

Re: moving database objects from one schema to other

From: akp geek <akpgeek(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, thom(at)linux(dot)com
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: moving database objects from one schema to other
Date: 2010-10-28 16:59:40
Message-ID: AANLkTimWxQrYgnqjHm79WwWUteYsGYuM9F7B2omG3OKO@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
Thanks a lot.

Regards

On Thu, Oct 28, 2010 at 12:23 PM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>wrote:

> 2010/10/28 akp geek <akpgeek(at)gmail(dot)com>:
> > Hi all -
> >               I would like to know if there is any other way of moving
> > objects from one schema to other schema? right now the way I am doing it
> is
> > , take the backup and importing whatever the database objects I wanted to
> > move, I am doing that using pg_restore. But I am finding it difficult for
> > functions, sequences
> > Thanks for your help
> > Regards
>
> hello
>
> use a statement: ALTER TABLE tablename SET SCHEMA new_schema
>
> Regards
>
> Pavel Stehule
>

In response to

pgsql-general by date

Next:From: Ivan Sergio BorgonovoDate: 2010-10-28 17:06:13
Subject: Re: exceptionally large UPDATE
Previous:From: Szymon GuzDate: 2010-10-28 16:39:36
Subject: Re: PostGIS return multiple points

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group