Skip to content

Commit aa4c702

Browse files
committed
Update /contrib for "autocommit TO 'on'".
Create objects in public schema. Make spacing/capitalization consistent. Remove transaction block use for object creation. Remove unneeded function GRANTs.
1 parent fb9bc34 commit aa4c702

File tree

91 files changed

+3607
-2720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+3607
-2720
lines changed

contrib/adddepend/adddepend

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/perl
2-
# $Id: adddepend,v 1.1 2002/09/18 20:38:59 momjian Exp $
2+
# $Id: adddepend,v 1.2 2002/10/18 18:41:19 momjian Exp $
33

44
# Project exists to assist PostgreSQL users with their structural upgrade
55
# from 7.2 (or prior) to 7.3 (possibly later). Must be run against a 7.3
@@ -125,6 +125,20 @@ my $dbh = DBI->connect($dsn, $dbuser, $dbpass);
125125
# We want to control commits
126126
$dbh->{'AutoCommit'} = 0;
127127

128+
# turn on autocommit
129+
my $sql = qq{
130+
SET search_path = public;
131+
};
132+
my $sth = $dbh->prepare($sql);
133+
$sth->execute();
134+
135+
# turn on autocommit
136+
my $sql2 = qq{
137+
SET autocommit TO 'on';
138+
};
139+
my $sth2 = $dbh->prepare($sql2);
140+
$sth2->execute();
141+
128142
END {
129143
$dbh->disconnect() if $dbh;
130144
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy