File tree 2 files changed +0
-29
lines changed
2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ List * list_reverse(List *l);
37
37
*/
38
38
Oid get_rel_owner (Oid relid );
39
39
char * get_rel_name_or_relid (Oid relid );
40
- Oid get_attribute_type (Oid relid , const char * attname , bool missing_ok );
41
40
RangeVar * makeRangeVarFromRelid (Oid relid );
42
41
43
42
/*
Original file line number Diff line number Diff line change @@ -193,34 +193,6 @@ get_rel_name_or_relid(Oid relid)
193
193
return relname ;
194
194
}
195
195
196
- /*
197
- * Get type of column by its name.
198
- */
199
- Oid
200
- get_attribute_type (Oid relid , const char * attname , bool missing_ok )
201
- {
202
- Oid result ;
203
- HeapTuple tp ;
204
-
205
- /* NOTE: for now it's the most efficient way */
206
- tp = SearchSysCacheAttName (relid , attname );
207
- if (HeapTupleIsValid (tp ))
208
- {
209
- Form_pg_attribute att_tup = (Form_pg_attribute ) GETSTRUCT (tp );
210
- result = att_tup -> atttypid ;
211
- ReleaseSysCache (tp );
212
-
213
- return result ;
214
- }
215
-
216
- if (!missing_ok )
217
- elog (ERROR , "cannot find type name for attribute \"%s\" "
218
- "of relation \"%s\"" ,
219
- attname , get_rel_name_or_relid (relid ));
220
-
221
- return InvalidOid ;
222
- }
223
-
224
196
RangeVar *
225
197
makeRangeVarFromRelid (Oid relid )
226
198
{
You can’t perform that action at this time.
0 commit comments