Get rid of unused getint16() function to quiet compiler.
Also, small whitespace fixup.
This commit is contained in:
parent
841f656012
commit
d603c49b40
@ -52,7 +52,7 @@ typedef struct reorg_table
|
||||
const char *create_pktype; /* CREATE TYPE pk */
|
||||
const char *create_log; /* CREATE TABLE log */
|
||||
const char *create_trigger; /* CREATE TRIGGER z_reorg_trigger */
|
||||
const char *alter_table; /* ALTER TABLE ENABLE ALWAYS TRIGGER z_reorg_trigger */
|
||||
const char *alter_table; /* ALTER TABLE ENABLE ALWAYS TRIGGER z_reorg_trigger */
|
||||
const char *create_table; /* CREATE TABLE table AS SELECT */
|
||||
const char *drop_columns; /* ALTER TABLE DROP COLUMNs */
|
||||
const char *delete_log; /* DELETE FROM log */
|
||||
|
@ -597,14 +597,6 @@ getoid(HeapTuple tuple, TupleDesc desc, int column)
|
||||
return isnull ? InvalidOid : DatumGetObjectId(datum);
|
||||
}
|
||||
|
||||
static int16
|
||||
getint16(HeapTuple tuple, TupleDesc desc, int column)
|
||||
{
|
||||
bool isnull;
|
||||
Datum datum = SPI_getbinval(tuple, desc, column, &isnull);
|
||||
return isnull ? 0 : DatumGetInt16(datum);
|
||||
}
|
||||
|
||||
/**
|
||||
* @fn Datum reorg_swap(PG_FUNCTION_ARGS)
|
||||
* @brief Swapping relfilenode of tables and relation ids of toast tables
|
||||
|
Loading…
x
Reference in New Issue
Block a user