How to set up Search_path in the Greenplum database

Source: Internet
Author: User
Tags psql port number

Failed to connect Greenplum with the report tool, there is no error in the report schema. The Search_path should be set up after judgment.

1) Connection Greenplum

C:\windows\system32>psql-h 1.2.345.678-p 5432-d tpc_1-u gpuser

2) View Search_path

tpc_1# show Search_path;

3) Modify Search_path

tpc_1=# ALTER DATABASE tpc_1 set Search_path to "$user", Public, "My_schema";

4) Exit

tpc_1=# \q

5) Connection Greenplum

C:\windows\system32>psql-h 1.2.345.678-p 5432-d tpc_1-u gpuser

6) View Search_path

tpc_1# show Search_path;

Note 1: If you have a capital letter with double quotes, such as "My_schema",

NOTE 2: After exiting to see the changes take effect.

Note 2:1.2.345.678 is the IP address, 5432 is the port number, Tpc_1 is the library name, Gpuser is the user name

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.