Smruti Biswal created HIVE-28195:
------------------------------------

             Summary: Add option to use custom schema for Hive metastore tables 
in PostgreSQL
                 Key: HIVE-28195
                 URL: https://issues.apache.org/jira/browse/HIVE-28195
             Project: Hive
          Issue Type: Improvement
          Components: Database/Schema
    Affects Versions: 4.0.0
            Reporter: Smruti Biswal


As per the design, hive metastore tables get created under public schema, this 
restricts users to reuse one database but different schemas for different 
applications. 

We have *SET search_path = public, pg_catalog* set in 
[https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/sql/postgres/hive-schema-4.0.0.postgres.sql#L12C1-L12C38]

Can we change this to the default value in Postgres i.e. *SET search_path = 
"$user", public* ? So, the tables get created under the schema based on the 
Hive DB user.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to