查看schema信息:

[pgsql@localhost bin]$ ./psql
psql (9.1.2)
Type "help" for help.

pgsql=# create schema gaosche;
CREATE SCHEMA
pgsql=# select catalog_name,schema_name from information_schema.schemata ;
 catalog_name |    schema_name     
--------------+--------------------
 pgsql        | pg_toast
 pgsql        | pg_temp_1
 pgsql        | pg_toast_temp_1
 pgsql        | pg_catalog
 pgsql        | public
 pgsql        | information_schema
 pgsql        | gaosche
(7 rows)

pgsql=# select * from pg_namespace;
      nspname       | nspowner |           nspacl           
--------------------+----------+----------------------------
 pg_toast           |       10 | 
 pg_temp_1          |       10 | 
 pg_toast_temp_1    |       10 | 
 pg_catalog         |       10 | {pgsql=UC/pgsql,=U/pgsql}
 public             |       10 | {pgsql=UC/pgsql,=UC/pgsql}
 information_schema |       10 | {pgsql=UC/pgsql,=U/pgsql}
 gaosche            |       10 | 
(7 rows)

pgsql=# 

故此,可以任务,schema,就是namespace。

 

相关文章:

  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-12-20
  • 2022-01-13
  • 2022-12-23
  • 2021-09-06
  • 2022-02-28
猜你喜欢
  • 2021-06-12
  • 2021-07-19
  • 2021-08-13
  • 2021-05-27
  • 2021-08-28
  • 2021-07-05
  • 2021-08-20
相关资源
相似解决方案