From: | Luiz Eduardo Cantanhede Neri <lecneri(at)gmail(dot)com> |
---|---|
To: | postgresql novice <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: installing dblink |
Date: | 2010-06-04 12:05:08 |
Message-ID: | AANLkTikqiXLipNurslkNlqPw22G0w6g4E4r8UqFEayxg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On psql you may try \c <database name> [username]
On Fri, Jun 4, 2010 at 9:04 AM, Luiz Eduardo Cantanhede Neri <
lecneri(at)gmail(dot)com> wrote:
> On psql you may try \c <database name> [username]
>
>
> On Tue, May 18, 2010 at 10:43 PM, Oni <drentha(at)gmail(dot)com> wrote:
>
>> Tried to do a "use database" within postgres.
>>
>> Read the doco which said to use dblink. However this produced the
>> following error: "No function matches the given name and argument
>> types. You might need to add explicit type casts."
>>
>> So installed
>> apt-get install postgresql-contrib-8.3
>>
>> But it still didnt work. Read some more:
>> find /usr/share/postgresql -name dblink.sql (/usr/share/postgresql/
>> 8.3/contrib/dblink.sql)
>> cd /usr/share/postgresql/8.3/contrib
>> psql -d database -f dblink.sql
>>
>> psql database
>> SELECT * FROM dblink('dbname=database', 'select name, title from
>> pages') AS t1(name text, title text);
>>
>> And hey presto it works... and it only took 3 hours.
>>
>>
>>
>> --
>> Sent via pgsql-novice mailing list (pgsql-novice(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-novice
>>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Luiz Eduardo Cantanhede Neri | 2010-06-04 12:07:28 | sum multiple tables gives wrong answer? |
Previous Message | Jasen Betts | 2010-06-04 10:20:12 | Re: Dragging and dropping tables between databases |