Greenplum Management Mode

Source: Internet
Author: User

Greenplum management mode is the same as oracle schema. It is used to logically organize the storage containers of database objects. Different schemas do not share namespaces. Schema public is created by default after the database is created. each user has the permission to create an object in this schema. If no schema is specified, it is created here by default. You are advised to modify the default search path after creating the schema. Otherwise, you must specify the path for each login to use the created schema. Gtlions = # create schema gtlions authorization gtlions; CREATE SCHEMAgtlions = # alter role gtlions set search_path = gtlions; ALTER entity = # \ dn List of schemas Name | Owner entity + --------- gp_toolkit | gpadmin gtlions | gtlions information_schema | gpadmin entity | gpadmin pg_catalog | gpadmin pg_toast | gpadmin public | gpadmin (8 rows) gtlions = # show search_paht; ERROR: unrecognized configuration parameter "search_paht" gtlions = # show search_path; search_path ----------- gtlions (1 row) gtlions = # select current_schema (); current_schema -------------- gtlions (1 row) gtlions = # select * from pg_namespace; nspname | nspowner | nspacl authorization + ---------- + export gp_toolkit | 10 | {gpadmin = UC/gpadmin, = U/gpadmin} pg_toast | 10 | pg_bitmapindex | 10 | gtlions | 98690 | pg_aoseg | 10 | pg_catalog | 10 | {gpadmin = UC/gpadmin, = U/gpadmin} public | 10 | {gpadmin = UC/gpadmin, = UC/gpadmin} information_schema | 10 | {gpadmin = UC/gpadmin, = U/gpadmin} (8 rows)-EOF-

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.