Skip to content

Commit 1076335

Browse files
committed
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
1 parent 29c94e0 commit 1076335

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/backend/executor/execTuples.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,28 +1125,6 @@ BlessTupleDesc(TupleDesc tupdesc)
11251125
return tupdesc; /* just for notational convenience */
11261126
}
11271127

1128-
/*
1129-
* TupleDescGetSlot - Initialize a slot based on the supplied tupledesc
1130-
*
1131-
* Note: this is obsolete; it is sufficient to call BlessTupleDesc on
1132-
* the tupdesc. We keep it around just for backwards compatibility with
1133-
* existing user-written SRFs.
1134-
*/
1135-
TupleTableSlot *
1136-
TupleDescGetSlot(TupleDesc tupdesc)
1137-
{
1138-
TupleTableSlot *slot;
1139-
1140-
/* The useful work is here */
1141-
BlessTupleDesc(tupdesc);
1142-
1143-
/* Make a standalone slot */
1144-
slot = MakeSingleTupleTableSlot(tupdesc);
1145-
1146-
/* Return the slot */
1147-
return slot;
1148-
}
1149-
11501128
/*
11511129
* TupleDescGetAttInMetadata - Build an AttInMetadata structure based on the
11521130
* supplied TupleDesc. AttInMetadata can be used in conjunction with C strings

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy