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
179b8e57
Commit
179b8e57
authored
Oct 17, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Locate the file pg_service.conf in the directory configured as --syconfdir
(i.e., /usr/local/pgsql/etc by default).
parent
adeedf90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+2
-2
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+8
-2
No files found.
src/interfaces/libpq/Makefile
View file @
179b8e57
...
...
@@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.4
2 2000/10/12 07:38:13 ishii
Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.4
3 2000/10/17 17:43:13 petere
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -17,7 +17,7 @@ NAME= pq
SO_MAJOR_VERSION
=
2
SO_MINOR_VERSION
=
1
CFLAGS
+=
-DFRONTEND
-I
$(srcdir)
override
CFLAGS
+=
-DFRONTEND
-I
$(srcdir)
-DSYSCONFDIR
=
'"
$(sysconfdir)
"'
OBJS
=
fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o
\
pqexpbuffer.o dllist.o pqsignal.o
$(SNPRINTF)
$(INET_ATON)
...
...
src/interfaces/libpq/fe-connect.c
View file @
179b8e57
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.1
39 2000/10/17 01:00:58 momjian
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.1
40 2000/10/17 17:43:13 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -2095,9 +2095,15 @@ pqPacketSend(PGconn *conn, const char *buf, size_t len)
return
STATUS_OK
;
}
#ifndef SYSCONFDIR
# error "You must compile this file with SYSCONFDIR defined."
#endif
int
parseServiceInfo
(
PQconninfoOption
*
options
,
PQExpBuffer
errorMessage
)
{
char
*
service
=
conninfo_getval
(
options
,
"service"
);
char
*
serviceFile
=
"/etc
/pg_service.conf"
;
char
*
serviceFile
=
SYSCONFDIR
"
/pg_service.conf"
;
int
MAXBUFSIZE
=
256
;
int
group_found
=
0
;
int
linenr
=
0
,
i
;
...
...
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