pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Compare two Data bases Structure
6+ messages / 5 participants
[nested] [flat]

* Compare two Data bases Structure
@ 2011-02-24 00:03 manuel antonio ochoa <manuel8aalfaro@gmail.com>
  2011-02-24 00:09 ` Re: Compare two Data bases Structure Plugge, Joe R. <JRPlugge@west.com>
  2011-02-24 09:18 ` Re: Compare two Data bases Structure Piotr Czekalski <pczekalski@techbaza.pl>
  2011-02-24 10:02 ` Re: Compare two Data bases Structure Vibhor Kumar <vibhor.aim@gmail.com>
  2011-02-24 13:48 ` Re: Compare two Data bases Structure Isaac Dover <isaacdover@gmail.com>
  0 siblings, 4 replies; 6+ messages in thread

From: manuel antonio ochoa @ 2011-02-24 00:03 UTC (permalink / raw)
  To: pgsql-sql

How Can I do to compare two structures of data bases ?

DBA  != DBB I need wich functions and wich tables are not equals

thnks

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Compare two Data bases Structure
  2011-02-24 00:03 Compare two Data bases Structure manuel antonio ochoa <manuel8aalfaro@gmail.com>
@ 2011-02-24 00:09 ` Plugge, Joe R. <JRPlugge@west.com>
  3 siblings, 0 replies; 6+ messages in thread

From: Plugge, Joe R. @ 2011-02-24 00:09 UTC (permalink / raw)
  To: manuel antonio ochoa <manuel8aalfaro@gmail.com>; pgsql-sql

Check out DB Solo ...

http://www.dbsolo.com/


Does both DDL compare as well as data compare.


________________________________
From: pgsql-sql-owner@postgresql.org [pgsql-sql-owner@postgresql.org] On Behalf Of manuel antonio ochoa [manuel8aalfaro@gmail.com]
Sent: Wednesday, February 23, 2011 6:03 PM
To: pgsql-sql@postgresql.org
Subject: [SQL] Compare two Data bases Structure

How Can I do to compare two structures of data bases ?

DBA  != DBB I need wich functions and wich tables are not equals

thnks





^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Compare two Data bases Structure
  2011-02-24 00:03 Compare two Data bases Structure manuel antonio ochoa <manuel8aalfaro@gmail.com>
@ 2011-02-24 09:18 ` Piotr Czekalski <pczekalski@techbaza.pl>
  3 siblings, 0 replies; 6+ messages in thread

From: Piotr Czekalski @ 2011-02-24 09:18 UTC (permalink / raw)
  To: pgsql-sql

W dniu 2011-02-24 01:03, manuel antonio ochoa pisze:
> How Can I do to compare two structures of data bases ?
>
> DBA  != DBB I need wich functions and wich tables are not equals
>
> thnks
>
>
I'd advise SQL Power Architect - very handy tool with graphical DB 
design capability.
Will compare your databases and even generate suitable SQL script on 
demand, updating older database to look as a new one (or oposite).
This tool is also able to compare project vs database or database vs 
generation script.
Supports not only PostgreSQL but many other databases.

It is Java based solution.

http://www.sqlpower.ca

Regards,

Piotr

P.S. AFAIK release 0.9.15 was free of charge for personal use.

-- 

--------------------------------------------------------------
"TECHBAZA.PL" Sp. z o.o.
Technologie WEB, eDB&  eCommerce
OddziaƂ Gliwice
ul. Chorzowska 50
44-100 Gliwice
tel. (+4832) 7186081
fax. (+4832) 7003289





^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Compare two Data bases Structure
  2011-02-24 00:03 Compare two Data bases Structure manuel antonio ochoa <manuel8aalfaro@gmail.com>
@ 2011-02-24 10:02 ` Vibhor Kumar <vibhor.aim@gmail.com>
  3 siblings, 0 replies; 6+ messages in thread

From: Vibhor Kumar @ 2011-02-24 10:02 UTC (permalink / raw)
  To: manuel antonio ochoa <manuel8aalfaro@gmail.com>; +Cc: pgsql-sql


On Feb 24, 2011, at 5:33 AM, manuel antonio ochoa wrote:

> How Can I do to compare two structures of data bases ? 
> 
> DBA  != DBB I need wich functions and wich tables are not equals 
> 
> thnks

You can try with apgdiff. 
http://apgdiff.startnet.biz/

Thanks & Regards,
Vibhor



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Compare two Data bases Structure
  2011-02-24 00:03 Compare two Data bases Structure manuel antonio ochoa <manuel8aalfaro@gmail.com>
@ 2011-02-24 13:48 ` Isaac Dover <isaacdover@gmail.com>
  2011-02-24 22:51   ` Re: Compare two Data bases Structure Isaac Dover <isaacdover@gmail.com>
  3 siblings, 1 reply; 6+ messages in thread

From: Isaac Dover @ 2011-02-24 13:48 UTC (permalink / raw)
  To: pgsql-sql

As an alternative to the other tools - I've had luck using a simple query
that uses information schema.
> How Can I do to compare two structures of data bases ?
>
> DBA != DBB I need wich functions and wich tables are not equals
>
> thnks

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Compare two Data bases Structure
  2011-02-24 00:03 Compare two Data bases Structure manuel antonio ochoa <manuel8aalfaro@gmail.com>
  2011-02-24 13:48 ` Re: Compare two Data bases Structure Isaac Dover <isaacdover@gmail.com>
@ 2011-02-24 22:51   ` Isaac Dover <isaacdover@gmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Isaac Dover @ 2011-02-24 22:51 UTC (permalink / raw)
  To: pgsql-sql

Select from information_schema.columns and full outer join it again on the
table and column names, then just look for nulls on either side. You'll need
to alias the left and right views differently. I'm assuming that the dbs are
next to each other in the same installation. Once the base query is working,
you can filter further on the column types. It's pretty simple as long as
you understand joins.

On Thu, Feb 24, 2011 at 10:30 AM, manuel antonio ochoa <
manuel8aalfaro@gmail.com> wrote:

>
> How can I do that ? I dont know how to use the query !! ?
>
>
> 2011/2/24 Isaac Dover <isaacdover@gmail.com>
>
>> As an alternative to the other tools - I've had luck using a simple query
>> that uses information schema.
>> > How Can I do to compare two structures of data bases ?
>> >
>> > DBA != DBB I need wich functions and wich tables are not equals
>> >
>> > thnks
>>
>
>

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2011-02-24 22:51 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-02-24 00:03 Compare two Data bases Structure manuel antonio ochoa <manuel8aalfaro@gmail.com>
2011-02-24 00:09 ` Plugge, Joe R. <JRPlugge@west.com>
2011-02-24 09:18 ` Piotr Czekalski <pczekalski@techbaza.pl>
2011-02-24 10:02 ` Vibhor Kumar <vibhor.aim@gmail.com>
2011-02-24 13:48 ` Isaac Dover <isaacdover@gmail.com>
2011-02-24 22:51   ` Isaac Dover <isaacdover@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox