Re: [GENERAL] dblink does not resolve DNS, but works with IP

2013-05-15 Thread Mike Christensen
Ah, gotcha! I guess whatever sample I was originally copying from used hostaddr for some reason.. Thanks for the clarification, Tom! On Wed, May 15, 2013 at 6:08 AM, Tom Lane wrote: > Mike Christensen writes: > > Though I'm a bit curious why there's a host and hostaddr. Why can't it > > jus

Re: [GENERAL] dblink does not resolve DNS, but works with IP

2013-05-15 Thread Tom Lane
Mike Christensen writes: > Though I'm a bit curious why there's a host and hostaddr. Why can't it > just resolve whatever you give it? Well, it will ... if you use the "host" parameter. The whole point of "hostaddr" is that for that parameter, it will not try a DNS lookup. You'd only use that i

Re: [GENERAL] dblink does not resolve DNS, but works with IP

2013-05-14 Thread Mike Christensen
Though I'm a bit curious why there's a host and hostaddr. Why can't it just resolve whatever you give it? On Tue, May 14, 2013 at 9:31 PM, Mike Christensen wrote: > Excellent! Thanks so much. > > > On Tue, May 14, 2013 at 9:25 PM, Adrian Klaver wrote: > >> On 05/14/2013 09:17 PM, Mike Christen

Re: [GENERAL] dblink does not resolve DNS, but works with IP

2013-05-14 Thread Mike Christensen
Excellent! Thanks so much. On Tue, May 14, 2013 at 9:25 PM, Adrian Klaver wrote: > On 05/14/2013 09:17 PM, Mike Christensen wrote: > >> If I have this: >> >> CREATE OR REPLACE VIEW Link.Foo AS >>select * from dblink( >> 'hostaddr=123.123.123.123 dbname=KitchenPC user=Website >> passwor

Re: [GENERAL] dblink does not resolve DNS, but works with IP

2013-05-14 Thread Adrian Klaver
On 05/14/2013 09:17 PM, Mike Christensen wrote: If I have this: CREATE OR REPLACE VIEW Link.Foo AS select * from dblink( 'hostaddr=123.123.123.123 dbname=KitchenPC user=Website password=secret', 'select * from Foo') as ... Then it works. However, if I do: CREATE OR REPLACE VIEW L

[GENERAL] dblink does not resolve DNS, but works with IP

2013-05-14 Thread Mike Christensen
If I have this: CREATE OR REPLACE VIEW Link.Foo AS select * from dblink( 'hostaddr=123.123.123.123 dbname=KitchenPC user=Website password=secret', 'select * from Foo') as ... Then it works. However, if I do: CREATE OR REPLACE VIEW Link.Foo AS select * from dblink( 'hostaddr=db.d