This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION remote_db(_table anyelement) | |
RETURNS SETOF anyelement | |
AS $func$ | |
DECLARE | |
_host text := 'ngrok.com' | |
_port text := '53813' | |
_user text := 'postgres' | |
_password text := 'postgres' | |
_db_name text := 'backup-28-08' | |
_server text := format('host=%s port=%s user=%s password=%s dbname=%s', _host, _port, _user, _password, _db_name); |