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
07d35e42
Commit
07d35e42
authored
May 07, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change alternate database location patch to test for symlink() rather
than WIN32.
parent
6165a278
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
configure
configure
+3
-2
configure.in
configure.in
+2
-2
src/backend/commands/dbcommands.c
src/backend/commands/dbcommands.c
+4
-4
src/include/pg_config.h.in
src/include/pg_config.h.in
+3
-0
No files found.
configure
View file @
07d35e42
...
@@ -3577,7 +3577,7 @@ else
...
@@ -3577,7 +3577,7 @@ else
then
then
echo
'%%'
>
conftest.l
echo
'%%'
>
conftest.l
if
$pgac_candidate
-t
conftest.l 2>/dev/null |
grep
FLEX_SCANNER
>
/dev/null 2>&1
;
then
if
$pgac_candidate
-t
conftest.l 2>/dev/null |
grep
FLEX_SCANNER
>
/dev/null 2>&1
;
then
if
$pgac_candidate
--version
|
grep
'2\.5\.3$'
>
/dev/null 2>&1
;
then
if
$pgac_candidate
--version
|
grep
'
2\.5\.3$'
>
/dev/null 2>&1
;
then
pgac_broken_flex
=
$pgac_candidate
pgac_broken_flex
=
$pgac_candidate
continue
continue
fi
fi
...
@@ -10305,7 +10305,8 @@ test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
...
@@ -10305,7 +10305,8 @@ test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
for
ac_func
in
cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask sysconf utime utimes waitpid
for
ac_func
in
cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
do
do
as_ac_var
=
`
echo
"ac_cv_func_
$ac_func
"
|
$as_tr_sh
`
as_ac_var
=
`
echo
"ac_cv_func_
$ac_func
"
|
$as_tr_sh
`
echo
"
$as_me
:
$LINENO
: checking for
$ac_func
"
>
&5
echo
"
$as_me
:
$LINENO
: checking for
$ac_func
"
>
&5
...
...
configure.in
View file @
07d35e42
dnl Process this file with autoconf to produce a configure script.
dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.24
4 2003/04/24 21:16:42 tgl
Exp $
dnl $Header: /cvsroot/pgsql/configure.in,v 1.24
5 2003/05/07 03:47:08 momjian
Exp $
dnl
dnl
dnl Developers, please strive to achieve this order:
dnl Developers, please strive to achieve this order:
dnl
dnl
...
@@ -779,7 +779,7 @@ PGAC_FUNC_GETTIMEOFDAY_1ARG
...
@@ -779,7 +779,7 @@ PGAC_FUNC_GETTIMEOFDAY_1ARG
# SunOS doesn't handle negative byte comparisons properly with +/- return
# SunOS doesn't handle negative byte comparisons properly with +/- return
AC_FUNC_MEMCMP
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask sysconf utime utimes waitpid])
AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask sy
mlink sy
sconf utime utimes waitpid])
AC_CHECK_DECLS(fdatasync, [], [], [#include <unistd.h>])
AC_CHECK_DECLS(fdatasync, [], [], [#include <unistd.h>])
...
...
src/backend/commands/dbcommands.c
View file @
07d35e42
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.11
3 2003/05/04 04:42:52
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.11
4 2003/05/07 03:47:08
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -174,8 +174,8 @@ createdb(const CreatedbStmt *stmt)
...
@@ -174,8 +174,8 @@ createdb(const CreatedbStmt *stmt)
/* don't call this in a transaction block */
/* don't call this in a transaction block */
PreventTransactionChain
((
void
*
)
stmt
,
"CREATE DATABASE"
);
PreventTransactionChain
((
void
*
)
stmt
,
"CREATE DATABASE"
);
#if
def WIN32
#if
ndef HAVE_SYMLINK
if
(
dbpath
!=
NULL
)
/* platform has no symlinks */
if
(
dbpath
!=
NULL
)
elog
(
ERROR
,
"CREATE DATABASE: may not use an alternate location on this platform"
);
elog
(
ERROR
,
"CREATE DATABASE: may not use an alternate location on this platform"
);
#endif
#endif
...
@@ -301,7 +301,7 @@ createdb(const CreatedbStmt *stmt)
...
@@ -301,7 +301,7 @@ createdb(const CreatedbStmt *stmt)
/* Make the symlink, if needed */
/* Make the symlink, if needed */
if
(
alt_loc
)
if
(
alt_loc
)
{
{
#if
ndef WIN32
/* already throws error on WIN32
above */
#if
def HAVE_SYMLINK
/* already throws error
above */
if
(
symlink
(
alt_loc
,
nominal_loc
)
!=
0
)
if
(
symlink
(
alt_loc
,
nominal_loc
)
!=
0
)
#endif
#endif
elog
(
ERROR
,
"CREATE DATABASE: could not link '%s' to '%s': %m"
,
elog
(
ERROR
,
"CREATE DATABASE: could not link '%s' to '%s': %m"
,
...
...
src/include/pg_config.h.in
View file @
07d35e42
...
@@ -414,6 +414,9 @@
...
@@ -414,6 +414,9 @@
/* Define to 1 if you have the <SupportDefs.h> header file. */
/* Define to 1 if you have the <SupportDefs.h> header file. */
#undef HAVE_SUPPORTDEFS_H
#undef HAVE_SUPPORTDEFS_H
/* Define to 1 if you have the `symlink' function. */
#undef HAVE_SYMLINK
/* Define to 1 if you have the `sysconf' function. */
/* Define to 1 if you have the `sysconf' function. */
#undef HAVE_SYSCONF
#undef HAVE_SYSCONF
...
...
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