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
cd8b0fc5
Commit
cd8b0fc5
authored
Jun 08, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change PGETC to PGSYSCONFDIR and PGLOCALE to PGLOCALEDIR, per Peter.
parent
b2a17038
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
doc/src/sgml/libpq.sgml
doc/src/sgml/libpq.sgml
+5
-5
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+2
-2
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-misc.c
+2
-2
src/port/path.c
src/port/path.c
+6
-6
No files found.
doc/src/sgml/libpq.sgml
View file @
cd8b0fc5
<!--
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.15
6 2004/06/03 00:07:35
momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.15
7 2004/06/08 13:49:22
momjian Exp $
-->
<chapter id="libpq">
...
...
@@ -3585,18 +3585,18 @@ sets the default mode for the genetic query optimizer.
<listitem>
<para>
<indexterm>
<primary><envar>PG
ETC
</envar></primary>
<primary><envar>PG
SYSCONFDIR
</envar></primary>
</indexterm>
<envar>PG
ETC
</envar>
<envar>PG
SYSCONFDIR
</envar>
sets the directory containing the <filename>pg_service.conf</> file.
</para>
</listitem>
<listitem>
<para>
<indexterm>
<primary><envar>PGLOCALE</envar></primary>
<primary><envar>PGLOCALE
DIR
</envar></primary>
</indexterm>
<envar>PGLOCALE</envar>
<envar>PGLOCALE
DIR
</envar>
sets the directory containing the <literal>locale</> files.
</para>
</listitem>
...
...
src/interfaces/libpq/fe-connect.c
View file @
cd8b0fc5
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.27
2 2004/06/03 00:07:38
momjian Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.27
3 2004/06/08 13:49:23
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -2387,7 +2387,7 @@ parseServiceInfo(PQconninfoOption *options, PQExpBuffer errorMessage)
* location to find our config files.
*/
snprintf
(
serviceFile
,
MAXPGPATH
,
"%s/pg_service.conf"
,
getenv
(
"PG
ETC"
)
?
getenv
(
"PGETC
"
)
:
SYSCONFDIR
);
getenv
(
"PG
SYSCONFDIR"
)
?
getenv
(
"PGSYSCONFDIR
"
)
:
SYSCONFDIR
);
if
(
service
!=
NULL
)
{
...
...
src/interfaces/libpq/fe-misc.c
View file @
cd8b0fc5
...
...
@@ -23,7 +23,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.10
7 2004/06/03 00:07:38
momjian Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.10
8 2004/06/08 13:49:23
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1132,7 +1132,7 @@ libpq_gettext(const char *msgid)
{
already_bound
=
1
;
/* No relocatable lookup here because the binary could be anywhere */
bindtextdomain
(
"libpq"
,
getenv
(
"PGLOCALE
"
)
?
getenv
(
"PGLOCALE
"
)
:
LOCALEDIR
);
bindtextdomain
(
"libpq"
,
getenv
(
"PGLOCALE
DIR"
)
?
getenv
(
"PGLOCALEDIR
"
)
:
LOCALEDIR
);
}
return
dgettext
(
"libpq"
,
msgid
);
...
...
src/port/path.c
View file @
cd8b0fc5
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/path.c,v 1.1
7 2004/06/03 00:07:38
momjian Exp $
* $PostgreSQL: pgsql/src/port/path.c,v 1.1
8 2004/06/08 13:49:23
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -233,7 +233,7 @@ set_pglocale_pgservice(const char *argv0, const char *app)
{
char
path
[
MAXPGPATH
];
char
my_exec_path
[
MAXPGPATH
];
char
env_path
[
MAXPGPATH
+
strlen
(
"PGLOCALE
="
)];
/* longer than PGETC
*/
char
env_path
[
MAXPGPATH
+
strlen
(
"PGLOCALE
DIR="
)];
/* longer than PGSYSCONFDIR
*/
/* don't set LC_ALL in the backend */
if
(
strcmp
(
app
,
"postgres"
)
!=
0
)
...
...
@@ -247,20 +247,20 @@ set_pglocale_pgservice(const char *argv0, const char *app)
bindtextdomain
(
app
,
path
);
textdomain
(
app
);
if
(
!
getenv
(
"PGLOCALE"
))
if
(
!
getenv
(
"PGLOCALE
DIR
"
))
{
/* set for libpq to use */
sprintf
(
env_path
,
"PGLOCALE=%s"
,
path
);
sprintf
(
env_path
,
"PGLOCALE
DIR
=%s"
,
path
);
putenv
(
env_path
);
}
#endif
if
(
!
getenv
(
"PG
ETC
"
))
if
(
!
getenv
(
"PG
SYSCONFDIR
"
))
{
get_etc_path
(
my_exec_path
,
path
);
/* set for libpq to use */
sprintf
(
env_path
,
"PG
ETC
=%s"
,
path
);
sprintf
(
env_path
,
"PG
SYSCONFDIR
=%s"
,
path
);
putenv
(
env_path
);
}
}
...
...
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