Create uuid method of [reprint] Han high database

  1. Use syssso log in, and execute the following statement

highgo=> select set_secure_level('off');

             set_secure_level              

-------------------------------------------

 Set surity level to 'off' successfully.

(Rows 1)

  1. Restart HGDB database. \ q exit psql, execute the command pg_ctl restart
  2. Use sysdba login, install plug-ins or execution cast, sql:

create extension "uuid-ossp";

ALTER FUNCTION public. uuid_generate_v4 () OWNER TO user1234;

  1. Use syssso logged, execution select set_secure_level ( 'table'), re-open the safety switch
  2. Restart HGDB database. pg_ctl restart
  3. Login for ordinary users select uuid_generate_v4 ();

Guess you like

Origin www.cnblogs.com/jinanxiaolaohu/p/11364211.html