New answers tagged postgresql-fdw
0
votes
Accepted
how to add a query to postgres and have it show up as a table
I discovered I'm looking for a view. And I think this'll basically work:
CREATE VIEW latest_observation AS
SELECT distinct ON (
SELECT ob.stream_id, ob.target_id
FROM obseration ob
...
0
votes
Accepted
Execute foreign functions using FDWs in Postgres
You can wrap the function in a view on the foreign side, then map a foreign table onto that view. This isn't very flexible as you can't specify the arguments to the function--either it must take no ...
Top 50 recent answers are included
Related Tags
postgresql-fdw × 37postgresql × 32
performance × 6
sharding × 6
query-performance × 4
postgresql-9.5 × 4
foreign-data × 4
postgresql-performance × 3
postgresql-9.3 × 3
postgresql-9.6 × 3
database-design × 2
foreign-key × 2
postgresql-11 × 2
replication × 1
optimization × 1
join × 1
execution-plan × 1
configuration × 1
import × 1
postgresql-9.4 × 1
postgresql-10 × 1
csv × 1
postgis × 1
sequence × 1
remote × 1