Unix Technical Forum

Postgre connect on Postgre

This is a discussion on Postgre connect on Postgre within the Pgsql General forums, part of the PostgreSQL category; --> Hi All How I can connect a postgre database on another postgre database, and manipulate the datas on both ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-27-2008, 07:08 AM
Anderson dos Santos Donda
 
Posts: n/a
Default Postgre connect on Postgre

Hi All


How I can connect a postgre database on another postgre database, and
manipulate the datas on both database?


Thanks!!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-27-2008, 07:08 AM
Anderson dos Santos Donda
 
Posts: n/a
Default Re: Postgre connect on Postgre

Thanks man!!

I'll study this module!!


On Tue, Aug 26, 2008 at 11:19 PM, Christophe <xof@thebuild.com> wrote:

>
> On Aug 26, 2008, at 7:10 PM, Anderson dos Santos Donda wrote:
>
>> How I can connect a postgre database on another postgre database, and
>> manipulate the datas on both database?
>>

>
> There is a module in contrib just for such a purpose:
>
> http://www.postgresql.org/docs/8.3/i...ve/dblink.html
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-27-2008, 07:08 AM
Adam Rich
 
Posts: n/a
Default time math - Bug or expected behavior?

I traced a bug in our application down to this basic operation:

set timezone to 'US/Eastern';

select '11/02/2008'::timestamptz, '12:10'::time,
'11/02/2008'::timestamptz + '12:10'::time;

I have a date and a time stored separately and I want to combine them,
and use them in some timezone-aware calculations. When I add the time
12:10 to the date 11/2/08, I expect the timestamp "11/2/08 12:10" but
instead, I get "11/2/08 11:10".

It's probably not coincidence that daylight saving time rolls back one hour
on the morning of 11/2. Still, I would have expected the above behavior
when adding an interval to a timestamp, but not a time. Is the time being
cast to an interval before the add? Is there a better way to combine a
date with a time and get a timestamptz ? (the values are stored in the database, and are not literals as in my example)





--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-05-2008, 12:01 PM
Asko Oja
 
Posts: n/a
Default Re: Postgre connect on Postgre

If you are using functions take a look at plProxy. We created it after
finding out that dblink wasn't good enough for us in oltp environments.
There are also some security issues related to dblink that should be given
serious consideration.

As for replication SkyTools and Londiste are alternatives to Slony. SkyTools
should provide less management headaches.

http://kaiv.wordpress.com/2007/09/02...proxy-part-ii/

regards
Asko


On Wed, Aug 27, 2008 at 8:09 AM, Tino Wildenhain <tino@wildenhain.de> wrote:

> Hi,
>
> Anderson dos Santos Donda wrote:
>
>> Thanks man!!
>>
>> I'll study this module!!
>>

>
> You should also be aware that sometimes instead of
> connecting two separate databases via dblink or similar,
> two schemas in one database can be used instead.
>
> It really depends on what you are really doing if
> there are even more solutions (like slony for example).
>
> Regards
> Tino
>
> PS: the database likes to be called Postgresql or Postgres :-)
>
> On Tue, Aug 26, 2008 at 11:19 PM, Christophe <xof@thebuild.com <mailto:
>> xof@thebuild.com>> wrote:
>>
>>
>> On Aug 26, 2008, at 7:10 PM, Anderson dos Santos Donda wrote:
>>
>> How I can connect a postgre database on another postgre
>> database, and manipulate the datas on both database?
>>
>>
>> There is a module in contrib just for such a purpose:
>>
>> http://www.postgresql.org/docs/8.3/i...ve/dblink.html
>>
>> -- Sent via pgsql-general mailing list (
>> pgsql-general@postgresql.org
>> <mailtogsql-general@postgresql.org>)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-general
>>
>>
>>

>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads for: Postgre connect on Postgre

Thread Thread Starter Forum Replies Last Post
postgre linkage with non-postgre db Petronenko D.S. pgsql Novice 9 04-17-2008 11:00 PM
postgre vs MySQL rrahul Pgsql General 81 04-10-2008 12:22 AM
Postgre and XML x asasaxax Pgsql General 7 04-10-2008 12:11 AM
New to Postgre Bob Pawley Pgsql General 2 04-08-2008 10:25 PM
Postgre 8.0 vs 7.3 Charl Gerber Pgsql General 2 04-08-2008 08:46 PM


All times are GMT. The time now is 09:51 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com