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
42622785
Commit
42622785
authored
Feb 02, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename function to first_path_var_separator() to clarify it works with
path variables, not directory paths.
parent
bffb638d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
src/backend/utils/fmgr/dfmgr.c
src/backend/utils/fmgr/dfmgr.c
+1
-1
src/include/port.h
src/include/port.h
+1
-1
src/port/exec.c
src/port/exec.c
+1
-1
src/port/path.c
src/port/path.c
+2
-2
No files found.
src/backend/utils/fmgr/dfmgr.c
View file @
42622785
...
@@ -610,7 +610,7 @@ find_in_dynamic_libpath(const char *basename)
...
@@ -610,7 +610,7 @@ find_in_dynamic_libpath(const char *basename)
char
*
mangled
;
char
*
mangled
;
char
*
full
;
char
*
full
;
piece
=
first_path_separator
(
p
);
piece
=
first_path_
var_
separator
(
p
);
if
(
piece
==
p
)
if
(
piece
==
p
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_NAME
),
(
errcode
(
ERRCODE_INVALID_NAME
),
...
...
src/include/port.h
View file @
42622785
...
@@ -36,7 +36,7 @@ extern bool pg_set_block(pgsocket sock);
...
@@ -36,7 +36,7 @@ extern bool pg_set_block(pgsocket sock);
extern
char
*
first_dir_separator
(
const
char
*
filename
);
extern
char
*
first_dir_separator
(
const
char
*
filename
);
extern
char
*
last_dir_separator
(
const
char
*
filename
);
extern
char
*
last_dir_separator
(
const
char
*
filename
);
extern
char
*
first_path_separator
(
const
char
*
pathlist
);
extern
char
*
first_path_
var_
separator
(
const
char
*
pathlist
);
extern
void
join_path_components
(
char
*
ret_path
,
extern
void
join_path_components
(
char
*
ret_path
,
const
char
*
head
,
const
char
*
tail
);
const
char
*
head
,
const
char
*
tail
);
extern
void
canonicalize_path
(
char
*
path
);
extern
void
canonicalize_path
(
char
*
path
);
...
...
src/port/exec.c
View file @
42622785
...
@@ -168,7 +168,7 @@ find_my_exec(const char *argv0, char *retpath)
...
@@ -168,7 +168,7 @@ find_my_exec(const char *argv0, char *retpath)
else
else
startp
=
endp
+
1
;
startp
=
endp
+
1
;
endp
=
first_path_separator
(
startp
);
endp
=
first_path_
var_
separator
(
startp
);
if
(
!
endp
)
if
(
!
endp
)
endp
=
startp
+
strlen
(
startp
);
/* point to end */
endp
=
startp
+
strlen
(
startp
);
/* point to end */
...
...
src/port/path.c
View file @
42622785
...
@@ -98,13 +98,13 @@ first_dir_separator(const char *filename)
...
@@ -98,13 +98,13 @@ first_dir_separator(const char *filename)
}
}
/*
/*
* first_path_separator
* first_path_
var_
separator
*
*
* Find the location of the first path separator (i.e. ':' on
* Find the location of the first path separator (i.e. ':' on
* Unix, ';' on Windows), return NULL if not found.
* Unix, ';' on Windows), return NULL if not found.
*/
*/
char
*
char
*
first_path_separator
(
const
char
*
pathlist
)
first_path_
var_
separator
(
const
char
*
pathlist
)
{
{
const
char
*
p
;
const
char
*
p
;
...
...
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