[postgis-tickets] [PostGIS] #4206: "getrelid" removed in PostgreSQL v12devel

PostGIS trac at osgeo.org
Wed Oct 17 07:10:37 PDT 2018


#4206: "getrelid" removed in PostgreSQL v12devel
------------------------------------+---------------------------
  Reporter:  Laurenz Albe           |      Owner:  strk
      Type:  patch                  |     Status:  new
  Priority:  medium                 |  Milestone:  PostGIS 3.0.0
 Component:  build/upgrade/install  |    Version:  trunk
Resolution:                         |   Keywords:  getrelid
------------------------------------+---------------------------

Comment (by Laurenz Albe):

 I only checked back to PostgreSQL 9.1, but `getrelid` has always been a
 macro:

 {{{#!C
 /*
  *      getrelid
  *
  *      Given the range index of a relation, return the corresponding
  *      relation OID.  Note that InvalidOid will be returned if the
  *      RTE is for a non-relation-type RTE.
  */
 #define getrelid(rangeindex,rangetable) \
     (rt_fetch(rangeindex, rangetable)->relid)
 }}}

 So I think it is safe and actually an improvement to call `rt_fetch`
 directly.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4206#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list