Re: [SQL] Compare two Data bases Structure

2011-02-24 Thread Piotr Czekalski

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



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


Re: [SQL] Compare two Data bases Structure

2011-02-24 Thread Vibhor Kumar

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

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


Re: [SQL] Compare two Data bases Structure

2011-02-24 Thread Isaac Dover
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


Re: [SQL] Compare two Data bases Structure

2011-02-24 Thread Isaac Dover
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 <
manuel8aalf...@gmail.com> wrote:

>
> How can I do that ? I dont know how to use the query !! ?
>
>
> 2011/2/24 Isaac Dover 
>
>> 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
>>
>
>