<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Writing extensions that use other extensions w/o a compile-time dependency is a little tricky, but not impossible, and very gratifying from a cleanliness point of view. Here is an example from ogr-fdw of looking up function Oids by name</div><div class=""><br class=""></div><div class=""><a href="https://github.com/pramsey/pgsql-ogr-fdw/blob/7c5699a20371eb1230e28cd1d3be12c76ee0035c/ogr_fdw.c#L1229-L1263" class="">https://github.com/pramsey/pgsql-ogr-fdw/blob/7c5699a20371eb1230e28cd1d3be12c76ee0035c/ogr_fdw.c#L1229-L1263</a></div><div class=""><br class=""></div><div class="">Also, to get the generic input/output functions for a type (which in the case of PostGIS can be used to generate/consume hexewkb or ewkb) you don’t even need to look up the function, as the in/out/send/recv functions are all part of the type definition.</div><div class=""><br class=""></div><div class=""><a href="https://github.com/pramsey/pgsql-ogr-fdw/blob/7c5699a20371eb1230e28cd1d3be12c76ee0035c/ogr_fdw.c#L1131-L1135" class="">https://github.com/pramsey/pgsql-ogr-fdw/blob/7c5699a20371eb1230e28cd1d3be12c76ee0035c/ogr_fdw.c#L1131-L1135</a></div><div class=""><br class=""></div><div class="">ATB,</div><div class=""><br class=""></div><div class="">P</div><br class=""><div><blockquote type="cite" class=""><div class=""><div class="">I wrote my function using postgre libs only by make few changes in<br class="">row_to_json functions (this is not agregate, only something like first<br class="">step), but I`m not able to find oid for relevant function to<br class="">geometry_out in this<br class=""></div></div></blockquote></div><br class=""></body></html>