Closed johydoski closed 4 years ago
@teoljungberg This looks prettier than https://github.com/teoljungberg/fx/pull/38 The difference is in joining with another table, but it does the same thing. I think it's will be better to apply these changes instead of #38
I can confirm this works for us on PG 11 and PG 10
Can we get some movement on this? The implementation seems pretty straightforward and tested. This would be a blocker for anyone needing postgis
with fx
Calling
pg_get_functiondef(some_oid)
on aggregates fails. Assuming this gem is not meant to support aggregate functions, aggregate functions are now excluded via omitting them from the query that pulls function definitions from PG. This is achieved by checking for the function's presence in tablepg_aggregate
.pg_aggregate
is present in all officially supported PG versions ( >= 9.4 ).