File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Expand file tree Collapse file tree 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);
3737 */
3838Oid get_rel_owner (Oid relid );
3939char * get_rel_name_or_relid (Oid relid );
40- Oid get_attribute_type (Oid relid , const char * attname , bool missing_ok );
4140RangeVar * makeRangeVarFromRelid (Oid relid );
4241
4342/*
Original file line number Diff line number Diff line change @@ -193,34 +193,6 @@ get_rel_name_or_relid(Oid relid)
193193 return relname ;
194194}
195195
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-
224196RangeVar *
225197makeRangeVarFromRelid (Oid relid )
226198{
You can’t perform that action at this time.
0 commit comments