!848 fix bug during upgrade

Merge pull request !848 from zhengxue/dev_1_1_0
This commit is contained in:
opengauss-bot 2021-03-27 16:34:58 +08:00 committed by Gitee
commit 7c4a8857c8
1 changed files with 4 additions and 0 deletions

View File

@ -1850,6 +1850,10 @@ CREATE VIEW pg_user_mappings AS
REVOKE ALL on pg_user_mapping FROM public;
--some function will use the new column that use
CREATE OR REPLACE VIEW PG_CATALOG.SYS_DUMMY AS (SELECT 'X'::TEXT AS DUMMY);
GRANT SELECT ON TABLE SYS_DUMMY TO PUBLIC;
-- these functions are added for supporting default format transformation
CREATE OR REPLACE FUNCTION to_char(NUMERIC)
RETURNS VARCHAR2