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
3974c4a7
Commit
3974c4a7
authored
Nov 28, 2019
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless "return;" lines
Discussion:
https://postgr.es/m/20191128144653.GA27883@alvherre.pgsql
parent
8a7e9e9d
Changes
40
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
0 additions
and
96 deletions
+0
-96
contrib/fuzzystrmatch/fuzzystrmatch.c
contrib/fuzzystrmatch/fuzzystrmatch.c
+0
-2
contrib/ltree/ltxtquery_io.c
contrib/ltree/ltxtquery_io.c
+0
-1
contrib/pg_standby/pg_standby.c
contrib/pg_standby/pg_standby.c
+0
-1
contrib/pgcrypto/mbuf.c
contrib/pgcrypto/mbuf.c
+0
-2
contrib/seg/seg.c
contrib/seg/seg.c
+0
-2
contrib/sepgsql/selinux.c
contrib/sepgsql/selinux.c
+0
-2
src/backend/access/gist/gist.c
src/backend/access/gist/gist.c
+0
-2
src/backend/access/rmgrdesc/genericdesc.c
src/backend/access/rmgrdesc/genericdesc.c
+0
-2
src/backend/access/transam/twophase.c
src/backend/access/transam/twophase.c
+0
-2
src/backend/access/transam/xact.c
src/backend/access/transam/xact.c
+0
-1
src/backend/executor/nodeTableFuncscan.c
src/backend/executor/nodeTableFuncscan.c
+0
-2
src/backend/jit/llvm/llvmjit.c
src/backend/jit/llvm/llvmjit.c
+0
-2
src/backend/libpq/hba.c
src/backend/libpq/hba.c
+0
-1
src/backend/replication/logical/launcher.c
src/backend/replication/logical/launcher.c
+0
-2
src/backend/replication/walsender.c
src/backend/replication/walsender.c
+0
-3
src/backend/rewrite/rowsecurity.c
src/backend/rewrite/rowsecurity.c
+0
-2
src/backend/utils/adt/datetime.c
src/backend/utils/adt/datetime.c
+0
-2
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/pg_ctl.c
+0
-2
src/bin/pg_dump/compress_io.c
src/bin/pg_dump/compress_io.c
+0
-4
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.c
+0
-5
src/bin/pg_dump/pg_backup_custom.c
src/bin/pg_dump/pg_backup_custom.c
+0
-7
src/bin/pg_dump/pg_backup_directory.c
src/bin/pg_dump/pg_backup_directory.c
+0
-7
src/bin/pg_dump/pg_backup_null.c
src/bin/pg_dump/pg_backup_null.c
+0
-3
src/bin/pg_dump/pg_backup_tar.c
src/bin/pg_dump/pg_backup_tar.c
+0
-3
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+0
-2
src/bin/pg_upgrade/parallel.c
src/bin/pg_upgrade/parallel.c
+0
-4
src/bin/pg_upgrade/relfilenode.c
src/bin/pg_upgrade/relfilenode.c
+0
-4
src/bin/pg_upgrade/tablespace.c
src/bin/pg_upgrade/tablespace.c
+0
-2
src/bin/psql/common.c
src/bin/psql/common.c
+0
-2
src/fe_utils/print.c
src/fe_utils/print.c
+0
-2
src/interfaces/ecpg/compatlib/informix.c
src/interfaces/ecpg/compatlib/informix.c
+0
-2
src/interfaces/ecpg/pgtypeslib/datetime.c
src/interfaces/ecpg/pgtypeslib/datetime.c
+0
-1
src/interfaces/ecpg/pgtypeslib/dt_common.c
src/interfaces/ecpg/pgtypeslib/dt_common.c
+0
-2
src/interfaces/ecpg/pgtypeslib/timestamp.c
src/interfaces/ecpg/pgtypeslib/timestamp.c
+0
-1
src/interfaces/libpq/fe-auth-scram.c
src/interfaces/libpq/fe-auth-scram.c
+0
-1
src/pl/plperl/plperl.c
src/pl/plperl/plperl.c
+0
-4
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_exec.c
+0
-2
src/port/win32error.c
src/port/win32error.c
+0
-1
src/test/examples/testlo.c
src/test/examples/testlo.c
+0
-2
src/test/examples/testlo64.c
src/test/examples/testlo64.c
+0
-2
No files found.
contrib/fuzzystrmatch/fuzzystrmatch.c
View file @
3974c4a7
...
...
@@ -698,8 +698,6 @@ _metaphone(char *word, /* IN */
}
/* END FOR */
End_Phoned_Word
;
return
;
}
/* END metaphone */
...
...
contrib/ltree/ltxtquery_io.c
View file @
3974c4a7
...
...
@@ -192,7 +192,6 @@ pushval_asis(QPRS_STATE *state, int type, char *strval, int lenval, uint16 flag)
*
(
state
->
curop
)
=
'\0'
;
state
->
curop
++
;
state
->
sumlen
+=
lenval
+
1
;
return
;
}
#define STACKDEPTH 32
...
...
contrib/pg_standby/pg_standby.c
View file @
3974c4a7
...
...
@@ -545,7 +545,6 @@ CheckForExternalTrigger(void)
fprintf
(
stderr
,
"WARNING: invalid content in
\"
%s
\"\n
"
,
triggerPath
);
fflush
(
stderr
);
return
;
}
/*
...
...
contrib/pgcrypto/mbuf.c
View file @
3974c4a7
...
...
@@ -94,8 +94,6 @@ prepare_room(MBuf *mbuf, int block_len)
mbuf
->
data_end
=
newbuf
+
(
mbuf
->
data_end
-
mbuf
->
data
);
mbuf
->
read_pos
=
newbuf
+
(
mbuf
->
read_pos
-
mbuf
->
data
);
mbuf
->
data
=
newbuf
;
return
;
}
int
...
...
contrib/seg/seg.c
View file @
3974c4a7
...
...
@@ -706,8 +706,6 @@ rt_seg_size(SEG *a, float *size)
*
size
=
0
.
0
;
else
*
size
=
(
float
)
Abs
(
a
->
upper
-
a
->
lower
);
return
;
}
Datum
...
...
contrib/sepgsql/selinux.c
View file @
3974c4a7
...
...
@@ -809,8 +809,6 @@ sepgsql_compute_avd(const char *scontext,
if
(
avd_ex
.
auditdeny
&
av_code_ex
)
avd
->
auditdeny
|=
av_code
;
}
return
;
}
/*
...
...
src/backend/access/gist/gist.c
View file @
3974c4a7
...
...
@@ -1088,8 +1088,6 @@ gistFindCorrectParent(Relation r, GISTInsertStack *child)
LockBuffer
(
child
->
parent
->
buffer
,
GIST_EXCLUSIVE
);
gistFindCorrectParent
(
r
,
child
);
}
return
;
}
/*
...
...
src/backend/access/rmgrdesc/genericdesc.c
View file @
3974c4a7
...
...
@@ -43,8 +43,6 @@ generic_desc(StringInfo buf, XLogReaderState *record)
else
appendStringInfo
(
buf
,
"offset %u, length %u"
,
offset
,
length
);
}
return
;
}
/*
...
...
src/backend/access/transam/twophase.c
View file @
3974c4a7
...
...
@@ -2436,6 +2436,4 @@ PrepareRedoRemove(TransactionId xid, bool giveWarning)
if
(
gxact
->
ondisk
)
RemoveTwoPhaseFile
(
xid
,
giveWarning
);
RemoveGXact
(
gxact
);
return
;
}
src/backend/access/transam/xact.c
View file @
3974c4a7
...
...
@@ -3428,7 +3428,6 @@ CheckTransactionBlock(bool isTopLevel, bool throwError, const char *stmtType)
/* translator: %s represents an SQL statement name */
errmsg
(
"%s can only be used in transaction blocks"
,
stmtType
)));
return
;
}
/*
...
...
src/backend/executor/nodeTableFuncscan.c
View file @
3974c4a7
...
...
@@ -335,8 +335,6 @@ tfuncFetchRows(TableFuncScanState *tstate, ExprContext *econtext)
MemoryContextSwitchTo
(
oldcxt
);
MemoryContextReset
(
tstate
->
perTableCxt
);
return
;
}
/*
...
...
src/backend/jit/llvm/llvmjit.c
View file @
3974c4a7
...
...
@@ -834,8 +834,6 @@ llvm_create_types(void)
* Leave the module alive, otherwise references to function would be
* dangling.
*/
return
;
}
/*
...
...
src/backend/libpq/hba.c
View file @
3974c4a7
...
...
@@ -2903,7 +2903,6 @@ check_ident_usermap(IdentLine *identLine, const char *usermap_name,
*
found_p
=
true
;
}
}
return
;
}
...
...
src/backend/replication/logical/launcher.c
View file @
3974c4a7
...
...
@@ -223,8 +223,6 @@ WaitForReplicationWorkerAttach(LogicalRepWorker *worker,
CHECK_FOR_INTERRUPTS
();
}
}
return
;
}
/*
...
...
src/backend/replication/walsender.c
View file @
3974c4a7
...
...
@@ -2301,7 +2301,6 @@ WalSndLoop(WalSndSendDataCallback send_data)
WAIT_EVENT_WAL_SENDER_MAIN
);
}
}
return
;
}
/* Initialize a per-walsender data structure for this walsender process */
...
...
@@ -2757,8 +2756,6 @@ retry:
(
uint32
)
(
sentPtr
>>
32
),
(
uint32
)
sentPtr
);
set_ps_display
(
activitymsg
,
false
);
}
return
;
}
/*
...
...
src/backend/rewrite/rowsecurity.c
View file @
3974c4a7
...
...
@@ -394,8 +394,6 @@ get_row_security_policies(Query *root, RangeTblEntry *rte, int rt_index,
* when necessary (eg: role changes)
*/
*
hasRowSecurity
=
true
;
return
;
}
/*
...
...
src/backend/utils/adt/datetime.c
View file @
3974c4a7
...
...
@@ -313,8 +313,6 @@ j2date(int jd, int *year, int *month, int *day)
quad
=
julian
*
2141
/
65536
;
*
day
=
julian
-
7834
*
quad
/
256
;
*
month
=
(
quad
+
10
)
%
MONTHS_PER_YEAR
+
1
;
return
;
}
/* j2date() */
...
...
src/bin/pg_ctl/pg_ctl.c
View file @
3974c4a7
...
...
@@ -422,8 +422,6 @@ free_readfile(char **optlines)
free
(
curr_line
);
free
(
optlines
);
return
;
}
/*
...
...
src/bin/pg_dump/compress_io.c
View file @
3974c4a7
...
...
@@ -192,7 +192,6 @@ WriteDataToArchive(ArchiveHandle *AH, CompressorState *cs,
WriteDataToArchiveNone
(
AH
,
cs
,
data
,
dLen
);
break
;
}
return
;
}
/*
...
...
@@ -308,8 +307,6 @@ WriteDataToArchiveZlib(ArchiveHandle *AH, CompressorState *cs,
cs
->
zp
->
next_in
=
(
void
*
)
unconstify
(
char
*
,
data
);
cs
->
zp
->
avail_in
=
dLen
;
DeflateCompressorZlib
(
AH
,
cs
,
false
);
return
;
}
static
void
...
...
@@ -407,7 +404,6 @@ WriteDataToArchiveNone(ArchiveHandle *AH, CompressorState *cs,
const
char
*
data
,
size_t
dLen
)
{
cs
->
writeF
(
AH
,
data
,
dLen
);
return
;
}
...
...
src/bin/pg_dump/pg_backup_archiver.c
View file @
3974c4a7
...
...
@@ -1045,8 +1045,6 @@ WriteData(Archive *AHX, const void *data, size_t dLen)
fatal
(
"internal error -- WriteData cannot be called outside the context of a DataDumper routine"
);
AH
->
WriteDataPtr
(
AH
,
data
,
dLen
);
return
;
}
/*
...
...
@@ -1461,7 +1459,6 @@ void
archputs
(
const
char
*
s
,
Archive
*
AH
)
{
WriteData
(
AH
,
s
,
strlen
(
s
));
return
;
}
/* Public */
...
...
@@ -1736,8 +1733,6 @@ ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH)
if
(
bytes_written
!=
size
*
nmemb
)
WRITE_ERROR_EXIT
;
return
;
}
/* on some error, we may decide to go on... */
...
...
src/bin/pg_dump/pg_backup_custom.c
View file @
3974c4a7
...
...
@@ -317,8 +317,6 @@ _WriteData(ArchiveHandle *AH, const void *data, size_t dLen)
if
(
dLen
>
0
)
/* WriteDataToArchive() internally throws write errors */
WriteDataToArchive
(
AH
,
cs
,
data
,
dLen
);
return
;
}
/*
...
...
@@ -644,8 +642,6 @@ _WriteBuf(ArchiveHandle *AH, const void *buf, size_t len)
if
(
fwrite
(
buf
,
1
,
len
,
AH
->
FH
)
!=
len
)
WRITE_ERROR_EXIT
;
ctx
->
filePos
+=
len
;
return
;
}
/*
...
...
@@ -663,8 +659,6 @@ _ReadBuf(ArchiveHandle *AH, void *buf, size_t len)
if
(
fread
(
buf
,
1
,
len
,
AH
->
FH
)
!=
len
)
READ_ERROR_EXIT
(
AH
->
FH
);
ctx
->
filePos
+=
len
;
return
;
}
/*
...
...
@@ -945,7 +939,6 @@ _CustomWriteFunc(ArchiveHandle *AH, const char *buf, size_t len)
WriteInt
(
AH
,
len
);
_WriteBuf
(
AH
,
buf
,
len
);
}
return
;
}
/*
...
...
src/bin/pg_dump/pg_backup_directory.c
View file @
3974c4a7
...
...
@@ -349,9 +349,6 @@ _WriteData(ArchiveHandle *AH, const void *data, size_t dLen)
if
(
dLen
>
0
&&
cfwrite
(
data
,
dLen
,
ctx
->
dataFH
)
!=
dLen
)
fatal
(
"could not write to output file: %s"
,
get_cfp_error
(
ctx
->
dataFH
));
return
;
}
/*
...
...
@@ -517,8 +514,6 @@ _WriteBuf(ArchiveHandle *AH, const void *buf, size_t len)
if
(
cfwrite
(
buf
,
len
,
ctx
->
dataFH
)
!=
len
)
fatal
(
"could not write to output file: %s"
,
get_cfp_error
(
ctx
->
dataFH
));
return
;
}
/*
...
...
@@ -537,8 +532,6 @@ _ReadBuf(ArchiveHandle *AH, void *buf, size_t len)
*/
if
(
cfread
(
buf
,
len
,
ctx
->
dataFH
)
!=
len
)
fatal
(
"could not read from input file: end of file"
);
return
;
}
/*
...
...
src/bin/pg_dump/pg_backup_null.c
View file @
3974c4a7
...
...
@@ -86,7 +86,6 @@ _WriteData(ArchiveHandle *AH, const void *data, size_t dLen)
{
/* Just send it to output, ahwrite() already errors on failure */
ahwrite
(
data
,
1
,
dLen
,
AH
);
return
;
}
/*
...
...
@@ -109,7 +108,6 @@ _WriteBlobData(ArchiveHandle *AH, const void *data, size_t dLen)
destroyPQExpBuffer
(
buf
);
}
return
;
}
static
void
...
...
@@ -221,7 +219,6 @@ static void
_WriteBuf
(
ArchiveHandle
*
AH
,
const
void
*
buf
,
size_t
len
)
{
/* Don't do anything */
return
;
}
static
void
...
...
src/bin/pg_dump/pg_backup_tar.c
View file @
3974c4a7
...
...
@@ -615,8 +615,6 @@ _WriteData(ArchiveHandle *AH, const void *data, size_t dLen)
if
(
tarWrite
(
data
,
dLen
,
tctx
->
TH
)
!=
dLen
)
WRITE_ERROR_EXIT
;
return
;
}
static
void
...
...
@@ -818,7 +816,6 @@ _ReadBuf(ArchiveHandle *AH, void *buf, size_t len)
fatal
(
"could not read from input file: end of file"
);
ctx
->
filePos
+=
len
;
return
;
}
static
void
...
...
src/bin/pg_dump/pg_dump.c
View file @
3974c4a7
...
...
@@ -15416,8 +15416,6 @@ dumpTable(Archive *fout, TableInfo *tbinfo)
}
free
(
namecopy
);
return
;
}
/*
...
...
src/bin/pg_upgrade/parallel.c
View file @
3974c4a7
...
...
@@ -148,8 +148,6 @@ parallel_exec_prog(const char *log_file, const char *opt_log_file,
thread_handles
[
parallel_jobs
-
1
]
=
child
;
#endif
}
return
;
}
...
...
@@ -263,8 +261,6 @@ parallel_transfer_all_new_dbs(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
thread_handles
[
parallel_jobs
-
1
]
=
child
;
#endif
}
return
;
}
...
...
src/bin/pg_upgrade/relfilenode.c
View file @
3974c4a7
...
...
@@ -73,8 +73,6 @@ transfer_all_new_tablespaces(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
end_progress_output
();
check_ok
();
return
;
}
...
...
@@ -128,8 +126,6 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
/* We allocate something even for n_maps == 0 */
pg_free
(
mappings
);
}
return
;
}
/*
...
...
src/bin/pg_upgrade/tablespace.c
View file @
3974c4a7
...
...
@@ -100,8 +100,6 @@ get_tablespace_paths(void)
PQclear
(
res
);
PQfinish
(
conn
);
return
;
}
...
...
src/bin/psql/common.c
View file @
3974c4a7
...
...
@@ -2399,8 +2399,6 @@ expand_tilde(char **filename)
}
}
#endif
return
;
}
/*
...
...
src/fe_utils/print.c
View file @
3974c4a7
...
...
@@ -3619,8 +3619,6 @@ refresh_utf8format(const printTableOpt *opt)
popt
->
wrap_left
=
unicode_style
.
wrap_left
;
popt
->
wrap_right
=
unicode_style
.
wrap_right
;
popt
->
wrap_right_border
=
unicode_style
.
wrap_right_border
;
return
;
}
/*
...
...
src/interfaces/ecpg/compatlib/informix.c
View file @
3974c4a7
...
...
@@ -529,7 +529,6 @@ void
rtoday
(
date
*
d
)
{
PGTYPESdate_today
(
d
);
return
;
}
int
...
...
@@ -959,7 +958,6 @@ rupshift(char *str)
for
(;
*
str
!=
'\0'
;
str
++
)
if
(
islower
((
unsigned
char
)
*
str
))
*
str
=
toupper
((
unsigned
char
)
*
str
);
return
;
}
int
...
...
src/interfaces/ecpg/pgtypeslib/datetime.c
View file @
3974c4a7
...
...
@@ -152,7 +152,6 @@ PGTYPESdate_today(date * d)
GetCurrentDateTime
(
&
ts
);
if
(
errno
==
0
)
*
d
=
date2j
(
ts
.
tm_year
,
ts
.
tm_mon
,
ts
.
tm_mday
)
-
date2j
(
2000
,
1
,
1
);
return
;
}
#define PGTYPES_DATE_NUM_MAX_DIGITS 20
/* should suffice for most
...
...
src/interfaces/ecpg/pgtypeslib/dt_common.c
View file @
3974c4a7
...
...
@@ -624,8 +624,6 @@ j2date(int jd, int *year, int *month, int *day)
quad
=
julian
*
2141
/
65536
;
*
day
=
julian
-
7834
*
quad
/
256
;
*
month
=
(
quad
+
10
)
%
12
+
1
;
return
;
}
/* j2date() */
/* DecodeSpecial()
...
...
src/interfaces/ecpg/pgtypeslib/timestamp.c
View file @
3974c4a7
...
...
@@ -297,7 +297,6 @@ PGTYPEStimestamp_current(timestamp * ts)
GetCurrentDateTime
(
&
tm
);
if
(
errno
==
0
)
tm2timestamp
(
&
tm
,
0
,
NULL
,
ts
);
return
;
}
static
int
...
...
src/interfaces/libpq/fe-auth-scram.c
View file @
3974c4a7
...
...
@@ -279,7 +279,6 @@ pg_fe_scram_exchange(void *opaq, char *input, int inputlen,
error:
*
done
=
true
;
*
success
=
false
;
return
;
}
/*
...
...
src/pl/plperl/plperl.c
View file @
3974c4a7
...
...
@@ -2147,8 +2147,6 @@ plperl_create_sub(plperl_proc_desc *prodesc, const char *s, Oid fn_oid)
prodesc
->
proname
)));
prodesc
->
reference
=
subref
;
return
;
}
...
...
@@ -2388,8 +2386,6 @@ plperl_call_perl_event_trigger_func(plperl_proc_desc *desc,
PUTBACK
;
FREETMPS
;
LEAVE
;
return
;
}
static
Datum
...
...
src/pl/plpgsql/src/pl_exec.c
View file @
3974c4a7
...
...
@@ -1189,8 +1189,6 @@ plpgsql_exec_event_trigger(PLpgSQL_function *func, EventTriggerData *trigdata)
* Pop the error context stack
*/
error_context_stack
=
plerrcontext
.
previous
;
return
;
}
/*
...
...
src/port/win32error.c
View file @
3974c4a7
...
...
@@ -205,5 +205,4 @@ _dosmaperr(unsigned long e)
#endif
errno
=
EINVAL
;
return
;
}
src/test/examples/testlo.c
View file @
3974c4a7
...
...
@@ -187,8 +187,6 @@ exportFile(PGconn *conn, Oid lobjId, char *filename)
lo_close
(
conn
,
lobj_fd
);
close
(
fd
);
return
;
}
static
void
...
...
src/test/examples/testlo64.c
View file @
3974c4a7
...
...
@@ -209,8 +209,6 @@ exportFile(PGconn *conn, Oid lobjId, char *filename)
lo_close
(
conn
,
lobj_fd
);
close
(
fd
);
return
;
}
static
void
...
...
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