Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4542581b
Commit
4542581b
authored
Oct 06, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjustment to test on unix domain socket variable for pg_hba.conf
default settings, rather than just Win32.
parent
c93872d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/backend/libpq/pg_hba.conf.sample
src/backend/libpq/pg_hba.conf.sample
+2
-2
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+6
-6
No files found.
src/backend/libpq/pg_hba.conf.sample
View file @
4542581b
...
...
@@ -60,8 +60,8 @@
# TYPE DATABASE USER CIDR-ADDRESS METHOD
@remove-line-for-
win32
@# "local" is for Unix domain socket connections only
@remove-line-for-
win32
@local all all @authmethod@
@remove-line-for-
nolocal
@# "local" is for Unix domain socket connections only
@remove-line-for-
nolocal
@local all all @authmethod@
# IPv4 local connections:
host all all 127.0.0.1/32 @authmethod@
# IPv6 local connections:
...
...
src/bin/initdb/initdb.c
View file @
4542581b
...
...
@@ -39,7 +39,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.5
5 2004/10/06 09:01:18
momjian Exp $
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.5
6 2004/10/06 09:13:10
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -147,7 +147,7 @@ char backend_exec[MAXPGPATH];
static
void
*
xmalloc
(
size_t
size
);
static
char
*
xstrdup
(
const
char
*
s
);
static
char
**
replace_token
(
char
**
lines
,
char
*
token
,
char
*
replacement
);
#if
def WIN32
#if
ndef HAVE_UNIX_SOCKETS
static
char
**
filter_lines_with_token
(
char
**
lines
,
char
*
token
);
#endif
static
char
**
readfile
(
char
*
path
);
...
...
@@ -318,7 +318,7 @@ replace_token(char **lines, char *token, char *replacement)
* a sort of poor man's grep -v
*
*/
#if
def WIN32
#if
ndef HAVE_UNIX_SOCKETS
static
char
**
filter_lines_with_token
(
char
**
lines
,
char
*
token
)
{
...
...
@@ -1124,10 +1124,10 @@ setup_config(void)
conflines
=
readfile
(
hba_file
);
#if
def WIN32
conflines
=
filter_lines_with_token
(
conflines
,
"@remove-line-for-
win32
@"
);
#if
ndef HAVE_UNIX_SOCKETS
conflines
=
filter_lines_with_token
(
conflines
,
"@remove-line-for-
nolocal
@"
);
#else
conflines
=
replace_token
(
conflines
,
"@remove-line-for-
win32
@"
,
""
);
conflines
=
replace_token
(
conflines
,
"@remove-line-for-
nolocal
@"
,
""
);
#endif
#ifndef HAVE_IPV6
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment