aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-09-25 16:28:57 -0700
committerAndres Freund <andres@anarazel.de>2018-09-25 16:28:57 -0700
commit10763358c3f0df48d2ae39b49b0c93be149cceab (patch)
treeb11b6de79d01fc25ea2cc1ac1def72cabcc2b8c1 /src
parent29c94e03c7d05d2b29afa1de32795ce178531246 (diff)
downloadpostgresql-10763358c3f0df48d2ae39b49b0c93be149cceab.tar.gz
postgresql-10763358c3f0df48d2ae39b49b0c93be149cceab.zip
Remove absolete function TupleDescGetSlot().
TupleDescGetSlot() was kept around for backward compatibility for user-written SRFs. With the TupleTableSlot abstraction work, that code will need to be version specific anyway, so there's no point in keeping the function around any longer. Author: Ashutosh Bapat Reviewed-By: Andres Freund Discussion: https://postgr.es/m/20180220224318.gw4oe5jadhpmcdnm@alap3.anarazel.de
Diffstat (limited to 'src')
-rw-r--r--src/backend/executor/execTuples.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/backend/executor/execTuples.c b/src/backend/executor/execTuples.c
index 573677af725..716c04939cd 100644
--- a/src/backend/executor/execTuples.c
+++ b/src/backend/executor/execTuples.c
@@ -1126,28 +1126,6 @@ BlessTupleDesc(TupleDesc tupdesc)
}
/*
- * TupleDescGetSlot - Initialize a slot based on the supplied tupledesc
- *
- * Note: this is obsolete; it is sufficient to call BlessTupleDesc on
- * the tupdesc. We keep it around just for backwards compatibility with
- * existing user-written SRFs.
- */
-TupleTableSlot *
-TupleDescGetSlot(TupleDesc tupdesc)
-{
- TupleTableSlot *slot;
-
- /* The useful work is here */
- BlessTupleDesc(tupdesc);
-
- /* Make a standalone slot */
- slot = MakeSingleTupleTableSlot(tupdesc);
-
- /* Return the slot */
- return slot;
-}
-
-/*
* TupleDescGetAttInMetadata - Build an AttInMetadata structure based on the
* supplied TupleDesc. AttInMetadata can be used in conjunction with C strings
* to produce a properly formed tuple.