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
fcd1b0d8
Commit
fcd1b0d8
authored
Jul 18, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark a few functions as static or NOT_USED.
parent
84e60427
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
21 deletions
+22
-21
src/backend/commands/opclasscmds.c
src/backend/commands/opclasscmds.c
+3
-1
src/backend/rewrite/rewriteDefine.c
src/backend/rewrite/rewriteDefine.c
+3
-1
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.c
+6
-4
src/bin/pg_dump/pg_backup_archiver.h
src/bin/pg_dump/pg_backup_archiver.h
+1
-4
src/bin/pg_dump/pg_backup_db.c
src/bin/pg_dump/pg_backup_db.c
+2
-2
src/bin/pg_dump/pg_backup_db.h
src/bin/pg_dump/pg_backup_db.h
+1
-2
src/bin/psql/command.c
src/bin/psql/command.c
+4
-2
src/bin/psql/command.h
src/bin/psql/command.h
+1
-3
src/include/commands/defrem.h
src/include/commands/defrem.h
+1
-2
No files found.
src/backend/commands/opclasscmds.c
View file @
fcd1b0d8
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/opclasscmds.c,v 1.4
7 2006/07/14 14:52:18
momjian Exp $
* $PostgreSQL: pgsql/src/backend/commands/opclasscmds.c,v 1.4
8 2006/07/18 17:42:00
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -924,6 +924,7 @@ RenameOpClass(List *name, const char *access_method, const char *newname)
/*
* Change opclass owner by oid
*/
#ifdef NOT_USED
void
AlterOpClassOwner_oid
(
Oid
opcOid
,
Oid
newOwnerId
)
{
...
...
@@ -943,6 +944,7 @@ AlterOpClassOwner_oid(Oid opcOid, Oid newOwnerId)
heap_freetuple
(
tup
);
heap_close
(
rel
,
NoLock
);
}
#endif
/*
* Change opclass owner by name
...
...
src/backend/rewrite/rewriteDefine.c
View file @
fcd1b0d8
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/rewrite/rewriteDefine.c,v 1.11
0 2006/07/14 14:52:22
momjian Exp $
* $PostgreSQL: pgsql/src/backend/rewrite/rewriteDefine.c,v 1.11
1 2006/07/18 17:42:00
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -552,6 +552,7 @@ setRuleCheckAsUser_walker(Node *node, Oid *context)
*
* This is unused code at the moment.
*/
#ifdef NOT_USED
void
RenameRewriteRule
(
Oid
owningRel
,
const
char
*
oldName
,
const
char
*
newName
)
...
...
@@ -588,3 +589,4 @@ RenameRewriteRule(Oid owningRel, const char *oldName,
heap_freetuple
(
ruletup
);
heap_close
(
pg_rewrite_desc
,
RowExclusiveLock
);
}
#endif
src/bin/pg_dump/pg_backup_archiver.c
View file @
fcd1b0d8
...
...
@@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.13
3 2006/07/14 14:52:26
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.13
4 2006/07/18 17:42:00
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -69,6 +69,8 @@ static void _write_msg(const char *modulename, const char *fmt, va_list ap);
static
void
_die_horribly
(
ArchiveHandle
*
AH
,
const
char
*
modulename
,
const
char
*
fmt
,
va_list
ap
);
static
void
dumpTimestamp
(
ArchiveHandle
*
AH
,
const
char
*
msg
,
time_t
tim
);
static
OutputContext
SetOutput
(
ArchiveHandle
*
AH
,
char
*
filename
,
int
compression
);
static
void
ResetOutput
(
ArchiveHandle
*
AH
,
OutputContext
savedContext
);
/*
...
...
@@ -860,7 +862,7 @@ archprintf(Archive *AH, const char *fmt,...)
* Stuff below here should be 'private' to the archiver routines
*******************************/
OutputContext
static
OutputContext
SetOutput
(
ArchiveHandle
*
AH
,
char
*
filename
,
int
compression
)
{
OutputContext
sav
;
...
...
@@ -912,7 +914,7 @@ SetOutput(ArchiveHandle *AH, char *filename, int compression)
return
sav
;
}
void
static
void
ResetOutput
(
ArchiveHandle
*
AH
,
OutputContext
sav
)
{
int
res
;
...
...
@@ -985,7 +987,7 @@ ahlog(ArchiveHandle *AH, int level, const char *fmt,...)
/*
* Single place for logic which says 'We are restoring to a direct DB connection'.
*/
int
static
int
RestoringToDB
(
ArchiveHandle
*
AH
)
{
return
(
AH
->
ropt
&&
AH
->
ropt
->
useDB
&&
AH
->
connection
);
...
...
src/bin/pg_dump/pg_backup_archiver.h
View file @
fcd1b0d8
...
...
@@ -17,7 +17,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.h,v 1.7
1 2006/07/11 13:54:24
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.h,v 1.7
2 2006/07/18 17:42:00
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -353,9 +353,6 @@ extern void InitArchiveFmt_Tar(ArchiveHandle *AH);
extern
bool
isValidTarHeader
(
char
*
header
);
extern
OutputContext
SetOutput
(
ArchiveHandle
*
AH
,
char
*
filename
,
int
compression
);
extern
void
ResetOutput
(
ArchiveHandle
*
AH
,
OutputContext
savedContext
);
extern
int
RestoringToDB
(
ArchiveHandle
*
AH
);
extern
int
ReconnectToServer
(
ArchiveHandle
*
AH
,
const
char
*
dbname
,
const
char
*
newUser
);
int
ahwrite
(
const
void
*
ptr
,
size_t
size
,
size_t
nmemb
,
ArchiveHandle
*
AH
);
...
...
src/bin/pg_dump/pg_backup_db.c
View file @
fcd1b0d8
...
...
@@ -5,7 +5,7 @@
* Implements the basic DB functions used by the archiver.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.7
2 2006/07/14 14:52:26
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.7
3 2006/07/18 17:42:00
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -283,7 +283,7 @@ notice_processor(void *arg, const char *message)
/* Public interface */
/* Convenience function to send a query. Monitors result to handle COPY statements */
int
static
int
ExecuteSqlCommand
(
ArchiveHandle
*
AH
,
PQExpBuffer
qry
,
char
*
desc
)
{
PGconn
*
conn
=
AH
->
connection
;
...
...
src/bin/pg_dump/pg_backup_db.h
View file @
fcd1b0d8
...
...
@@ -2,7 +2,7 @@
* Definitions for pg_backup_db.c
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.h,v 1.1
2 2006/07/11 13:54:24
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.h,v 1.1
3 2006/07/18 17:42:01
momjian Exp $
*/
#ifndef PG_BACKUP_DB_H
...
...
@@ -10,7 +10,6 @@
#include "pg_backup_archiver.h"
extern
int
ExecuteSqlCommand
(
ArchiveHandle
*
AH
,
PQExpBuffer
qry
,
char
*
desc
);
extern
int
ExecuteSqlCommandBuf
(
ArchiveHandle
*
AH
,
void
*
qry
,
size_t
bufLen
);
extern
void
StartTransaction
(
ArchiveHandle
*
AH
);
...
...
src/bin/psql/command.c
View file @
fcd1b0d8
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.17
0 2006/06/11 23:06:00 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.17
1 2006/07/18 17:42:01 momjian
Exp $
*/
#include "postgres_fe.h"
#include "command.h"
...
...
@@ -55,6 +55,8 @@ static backslashResult exec_command(const char *cmd,
static
bool
do_edit
(
const
char
*
filename_arg
,
PQExpBuffer
query_buf
);
static
bool
do_connect
(
char
*
dbname
,
char
*
user
,
char
*
host
,
char
*
port
);
static
bool
do_shell
(
const
char
*
command
);
static
void
SyncVerbosityVariable
(
void
);
/*----------
...
...
@@ -1175,7 +1177,7 @@ UnsyncVariables(void)
/*
* Update connection state from VERBOSITY variable
*/
void
static
void
SyncVerbosityVariable
(
void
)
{
switch
(
SwitchVariable
(
pset
.
vars
,
"VERBOSITY"
,
...
...
src/bin/psql/command.h
View file @
fcd1b0d8
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/command.h,v 1.2
6 2006/07/14 14:52:26
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/command.h,v 1.2
7 2006/07/18 17:42:01
momjian Exp $
*/
#ifndef COMMAND_H
#define COMMAND_H
...
...
@@ -38,6 +38,4 @@ extern void SyncVariables(void);
extern
void
UnsyncVariables
(
void
);
extern
void
SyncVerbosityVariable
(
void
);
#endif
/* COMMAND_H */
src/include/commands/defrem.h
View file @
fcd1b0d8
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/commands/defrem.h,v 1.7
4 2006/07/03 22:45:40 tgl
Exp $
* $PostgreSQL: pgsql/src/include/commands/defrem.h,v 1.7
5 2006/07/18 17:42:01 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -82,7 +82,6 @@ extern void RemoveOpClass(RemoveOpClassStmt *stmt);
extern
void
RemoveOpClassById
(
Oid
opclassOid
);
extern
void
RenameOpClass
(
List
*
name
,
const
char
*
access_method
,
const
char
*
newname
);
extern
void
AlterOpClassOwner
(
List
*
name
,
const
char
*
access_method
,
Oid
newOwnerId
);
extern
void
AlterOpClassOwner_oid
(
Oid
opcOid
,
Oid
newOwnerId
);
/* support routines in commands/define.c */
...
...
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