Remove unused column_to_column_name method

pull/1028/head
Brian Cloutier 2016-12-09 17:14:06 +03:00
parent 4bea1f621a
commit c7efe04c5a
1 changed files with 0 additions and 25 deletions

View File

@ -33,7 +33,6 @@
/* exports for SQL callable functions */
PG_FUNCTION_INFO_V1(column_name_to_column);
PG_FUNCTION_INFO_V1(column_name_to_column_id);
PG_FUNCTION_INFO_V1(column_to_column_name);
/*
@ -91,30 +90,6 @@ column_name_to_column_id(PG_FUNCTION_ARGS)
}
/*
* column_to_column_name is an internal UDF to obtain the human-readable name
* of a column given a relation identifier and the column's internal textual
* (Var) representation. This function will raise an ERROR if no such column
* can be found or if the provided Var refers to a system column.
*/
Datum
column_to_column_name(PG_FUNCTION_ARGS)
{
Oid relationId = PG_GETARG_OID(0);
text *columnNodeText = PG_GETARG_TEXT_P(1);
char *columnNodeString = text_to_cstring(columnNodeText);
char *columnName = NULL;
text *columnText = NULL;
columnName = ColumnNameToColumn(relationId, columnNodeString);
columnText = cstring_to_text(columnName);
PG_RETURN_TEXT_P(columnText);
}
/*
* BuildDistributionKeyFromColumnName builds a simple distribution key consisting
* only out of a reference to the column of name columnName. Errors out if the