Re: moving database objects from one schema to other

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: akp geek <akpgeek(at)gmail(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:23:01
Message-ID: AANLkTim0q1XGQOrzetpf9aDpEs+HWEVa_k7GkNS9t7q_@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Szymon Guz 2010-10-28 16:39:36 Re: PostGIS return multiple points
Previous Message Thom Brown 2010-10-28 16:15:58 Re: moving database objects from one schema to other