Need suggestion to restructure a database....

Поиск
Список
Период
Сортировка
От P Kapat
Тема Need suggestion to restructure a database....
Дата
Msg-id daef5be80812311228t71ec2f37ibf719e86cf004d85@mail.gmail.com
обсуждение исходный текст
Ответы Re: Need suggestion to restructure a database....  ("George Pavlov" <gpavlov@mynewplace.com>)
Список pgsql-novice
Setup: Postgres 8.1.11 on RedHat EL 5 with only one (password
protected) user: me and this machine does not have a web server. So,
the security issues can be a little bit relaxed!!

I have a bunch of tables which are divided to 4 groups based on some
criteria. So, I was using four different databases. I now have
realized that this is the wrong approach and one should use four
schemas instead. So, I want to mend. Need suggestions, preferably with
codes (either pgsql / linux / pgAdmin3 GUI instructions):

I have created four schemas inside the main db, say scha, schb, schc,
schd. The main db is named maindb, and the four dbs that I am using
currently are dba, dbb, dbc, dbd. maindb already has a public schema
with some tables and views and functions.

How do I transfer the tables,views,indexes,sequences,.... from dba to
scha (b,c,d will follow)?

--
Regards
PK
--------------------------------------
http://counter.li.org  #402424

В списке pgsql-novice по дате отправления:

Предыдущее
От: "P Kapat"
Дата:
Сообщение: How does "createlang" interact with different schemas?
Следующее
От: "George Pavlov"
Дата:
Сообщение: Re: Need suggestion to restructure a database....