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
e09509bd
Commit
e09509bd
authored
Feb 07, 2012
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_dump: Add some const qualifiers
parent
d66b31c9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/bin/pg_dump/pg_backup.h
src/bin/pg_dump/pg_backup.h
+1
-1
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.c
+2
-2
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+1
-1
No files found.
src/bin/pg_dump/pg_backup.h
View file @
e09509bd
...
@@ -117,7 +117,7 @@ typedef struct _restoreOptions
...
@@ -117,7 +117,7 @@ typedef struct _restoreOptions
char
*
use_role
;
/* Issue SET ROLE to this */
char
*
use_role
;
/* Issue SET ROLE to this */
int
dataOnly
;
int
dataOnly
;
int
dropSchema
;
int
dropSchema
;
c
har
*
filename
;
c
onst
char
*
filename
;
int
schemaOnly
;
int
schemaOnly
;
int
dumpSections
;
int
dumpSections
;
int
verbose
;
int
verbose
;
...
...
src/bin/pg_dump/pg_backup_archiver.c
View file @
e09509bd
...
@@ -126,7 +126,7 @@ static void vdie_horribly(ArchiveHandle *AH, const char *modulename,
...
@@ -126,7 +126,7 @@ static void vdie_horribly(ArchiveHandle *AH, const char *modulename,
__attribute__
((
format
(
PG_PRINTF_ATTRIBUTE
,
3
,
0
),
noreturn
));
__attribute__
((
format
(
PG_PRINTF_ATTRIBUTE
,
3
,
0
),
noreturn
));
static
void
dumpTimestamp
(
ArchiveHandle
*
AH
,
const
char
*
msg
,
time_t
tim
);
static
void
dumpTimestamp
(
ArchiveHandle
*
AH
,
const
char
*
msg
,
time_t
tim
);
static
void
SetOutput
(
ArchiveHandle
*
AH
,
char
*
filename
,
int
compression
);
static
void
SetOutput
(
ArchiveHandle
*
AH
,
c
onst
c
har
*
filename
,
int
compression
);
static
OutputContext
SaveOutput
(
ArchiveHandle
*
AH
);
static
OutputContext
SaveOutput
(
ArchiveHandle
*
AH
);
static
void
RestoreOutput
(
ArchiveHandle
*
AH
,
OutputContext
savedContext
);
static
void
RestoreOutput
(
ArchiveHandle
*
AH
,
OutputContext
savedContext
);
...
@@ -1173,7 +1173,7 @@ archprintf(Archive *AH, const char *fmt,...)
...
@@ -1173,7 +1173,7 @@ archprintf(Archive *AH, const char *fmt,...)
*******************************/
*******************************/
static
void
static
void
SetOutput
(
ArchiveHandle
*
AH
,
char
*
filename
,
int
compression
)
SetOutput
(
ArchiveHandle
*
AH
,
c
onst
c
har
*
filename
,
int
compression
)
{
{
int
fn
;
int
fn
;
...
...
src/bin/pg_dump/pg_dump.c
View file @
e09509bd
...
@@ -767,7 +767,7 @@ main(int argc, char **argv)
...
@@ -767,7 +767,7 @@ main(int argc, char **argv)
if
(
plainText
)
if
(
plainText
)
{
{
ropt
=
NewRestoreOptions
();
ropt
=
NewRestoreOptions
();
ropt
->
filename
=
(
char
*
)
filename
;
ropt
->
filename
=
filename
;
ropt
->
dropSchema
=
outputClean
;
ropt
->
dropSchema
=
outputClean
;
ropt
->
aclsSkip
=
aclsSkip
;
ropt
->
aclsSkip
=
aclsSkip
;
ropt
->
superuser
=
outputSuperuser
;
ropt
->
superuser
=
outputSuperuser
;
...
...
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