Skip to content

Commit

Permalink
Another PostgreSQL 8.1 portability fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Oct 20, 2005
1 parent 91c1e97 commit a6403d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/db.pl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ sub create_user {
"NOCREATEDB NOCREATEUSER", 0, $PGDEFDB);

if ($err) {
if ($err =~ /user( name)? "[^"]+" already exists/) {
if ($err =~ /(?:user|role)(?: name)? "[^"]+" already exists/) {
if (ask_yesno("User named \"$PG->{sys_user}\" already exists. "
. "Continue with this user? [yes] ", 1)) {
# Just use the existing user.
Expand Down

0 comments on commit a6403d5

Please sign in to comment.