One database serveral schemas and group roles

Поиск
Список
Период
Сортировка
От
Тема One database serveral schemas and group roles
Дата
Msg-id 200704051203.l35C3NRl013779@mail03.o2online.de
обсуждение исходный текст
Список pgsql-general
Hallo List,

I am bit stuck as a postgresql newbie with the definition of schemas. I am setting up a geodatabase with postgis under
windowsplattform - wapp strategy - and I would like to have several schemas within one database. Schema names should
correspondeto the name of a group roles each having several single users.  

1. Is it possible to work with group roles and schemas in this context ?

2. What is the typical workflow when someone sets up a database with different schema in (one) database ?

3.  Is the following workflow suitable ?
3.1    createdb -U postgres -T postgis_template mygeodatabase
3.2    pg_dump --file=mygeodatabase.sql --format=p --schema=public --schema-only -U postgres
3.3    Open mygeodatabase.sql in editor search and replace schema 'public' with 'newschema'
3.4    Import new schema to mygeodatabase with psql -d mygeodatabase -f c:\my\path\mygeodatabase.sql -U postgres (or
newuser) 

and then how to import new data to newschema.mygeodatabase ?

Are they further issues to keep in mind (e. g. set search_path to newuser) ?

I think there must be better ways to create new schema and to import data in my geodatabase.

How does it suits to postgis ? See example...
select AddGeometryColumn (<schema_name>, <table_name>, <column_name>, <srid>, <geometrytype>, <dimension>);

Thanks a lot for corresponding
Joe



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

Предыдущее
От: Jaime Silvela
Дата:
Сообщение: Help!! Crash recovery
Следующее
От: "Schwenker, Stephen"
Дата:
Сообщение: 8.2.3 AutoVacuum not running