Alexander Korotkov <a.korotkov@postgrespro.ru> writes: > On Tue, May 3, 2016 at 12:09 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> It doesn't really matter, though, because there simply isn't any need to >> refer to these functions from SQL.
> What if we'll want to reuse some on these functions in new opclass?
What context do you imagine that happening in? Surely no other extension would attempt to re-use them. If, say, hstore itself wanted to reuse these functions, that would be in a new version of hstore--n.n.sql, so there's no problem.
Then, if we want to reuse this function in hstore 1.4, we will need to write a migration script hstore--1.3--1.4.sql. How can we refer gin_extract_hstore() function from this script?