Re: [SQL] Tip: a function for creating a remote view using dblink

2004-02-17 Thread Josh Berkus
Mark, > I'm posting a function here in the hope others may find it useful > and/or correct my mistakes/make improvements :) Thanks! Way cool! > Is there any existing site (a wiki for example) for posting PostgreSQL > specific tips? > (Wasn't sure if pgsql-sql is the right place for this ki

Re: [SQL] Tip: a function for creating a remote view using dblink

2004-02-17 Thread Karsten Hilbert
> Hello, >I'm posting a function here in the hope others may find it useful > and/or correct my mistakes/make improvements :) > > This creates a view of a remote table, using dblink: ... > Is there any existing site (a wiki for example) for posting PostgreSQL > specific tips? The PG cookbook

[SQL] Tip: a function for creating a remote view using dblink

2004-02-16 Thread Mark Gibson
Hello, I'm posting a function here in the hope others may find it useful and/or correct my mistakes/make improvements :) This creates a view of a remote table, using dblink: CREATE OR REPLACE FUNCTION dblink_create_view(text, text, text) RETURNS VOID LANGUAGE plpgsql STRICT AS ' DECLARE connst