mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Make /contrib install/uninstall script consistent:
remove transactions use create or replace function make formatting consistent set search patch on first line Add documentation on modifying *.sql to set the search patch, and mention that major upgrades should still run the installation scripts. Some of these issues were spotted by Tom today.
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
-- Adjust this setting to control where the objects get created.
|
||||
BEGIN;
|
||||
SET search_path = public;
|
||||
|
||||
-- Register the function.
|
||||
@ -17,5 +16,3 @@ CREATE VIEW pg_buffercache AS
|
||||
-- Don't want these to be available at public.
|
||||
REVOKE ALL ON FUNCTION pg_buffercache_pages() FROM PUBLIC;
|
||||
REVOKE ALL ON pg_buffercache FROM PUBLIC;
|
||||
|
||||
COMMIT;
|
||||
|
@ -1,4 +1,4 @@
|
||||
-- Adjust this setting to control where the objects get created.
|
||||
-- Adjust this setting to control where the objects get dropped.
|
||||
SET search_path = public;
|
||||
|
||||
DROP VIEW pg_buffercache;
|
||||
|
Reference in New Issue
Block a user