Unix Technical Forum

transfer database from Linux to Windows

This is a discussion on transfer database from Linux to Windows within the pgsql Novice forums, part of the PostgreSQL category; --> Dear all, How to copy all tables and views from Linux PostgreSQL to Windows? The database under Linux is ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 10:24 PM
Oleg
 
Posts: n/a
Default transfer database from Linux to Windows

Dear all,
How to copy all tables and views from Linux PostgreSQL to Windows? The
database under Linux is PostGIS enabled. By default pg_dump saves all
PostGIS's CREATE FUNCTION commands that are pointed to the Linux's *.so
files.
In order to properly create database under Windows I would like to do
following:
1. Create database under windows
2 create all functions pointing to *.dll using provided sql file
3 Backup all tables and views with their rools
4 Restore backup under Windows

Are those steps correct?
How do I perform steps 3 and 4?
Thanks a lot in advance
Oleg


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 10:24 PM
Jaime Casanova
 
Posts: n/a
Default Re: transfer database from Linux to Windows

On 12/20/05, Oleg <evdakov@iwk.uka.de> wrote:
> Dear all,
> How to copy all tables and views from Linux PostgreSQL to Windows? The
> database under Linux is PostGIS enabled. By default pg_dump saves all
> PostGIS's CREATE FUNCTION commands that are pointed to the Linux's *.so
> files.


when you install postgres with the pgInstaller you can choose to
enable postgis by default...

just running the sql generated by pg_dump should work...


--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

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


All times are GMT. The time now is 04:18 PM.


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