pgadmin 으로 보다 보니 database > schema > table 순서로 냐오는게 있어서 찾는중
기본은 public schema인데 이게 머하는거지?
DB는 하나 이상의 'named schemaf'를 포함함.
일단은.. 귀찮으면 기본으로 제공되는 public 하나만 쓰고 테이블 별로 권한을 주고 싶으면
schema를 생성해서 테이블별로 사용자 권한을 주면 될 듯.
A database contains one or more named schemas, which in turn contain tables. Schemas also contain other kinds of named objects, including data types, functions, and operators.
There are several reasons why one might want to use schemas: To allow many users to use one database without interfering with each other. To organize database objects into logical groups to make them more manageable. Third-party applications can be put into separate schemas so they do not collide with the names of other objects.
database.schema.table
Thus, the following are equivalent:
CREATE TABLE products ( ... ); and:
CREATE TABLE public.products ( ... );
|
[링크 : https://www.postgresql.org/docs/9.1/ddl-schemas.html]
스키마는 테이블들의 named collection 이다.
A schema is a named collection of tables. A schema can also contain views, indexes, sequences, data types, operators, and functions. |
[링크 : https://www.tutorialspoint.com/postgresql/postgresql_schema.htm]
[링크 : http://www.postgresqlforbeginners.com/2010/12/schema.html]
[링크 : https://ktdsoss.tistory.com/184]
[링크 : https://blog.naver.com/seuis398/70097173659]