Skip to content
This repository has been archived by the owner on Jun 4, 2020. It is now read-only.

postgres local checkout from remote prostgres #7

Closed
andrei4002 opened this issue Feb 24, 2015 · 6 comments
Closed

postgres local checkout from remote prostgres #7

andrei4002 opened this issue Feb 24, 2015 · 6 comments

Comments

@andrei4002
Copy link

is it possible to checkout from a remote postgres schema, to a local working postgres schema ?

@vmora
Copy link
Contributor

vmora commented Feb 24, 2015

I don't think so because the code uses the same connection info for the checkout.

@vmora
Copy link
Contributor

vmora commented Apr 7, 2017

This is related to #47

@vmora vmora changed the title postgres checkout postgres local checkout from remote prostgres Apr 7, 2017
@ar-jan
Copy link

ar-jan commented Jun 7, 2017

It would be a great feature to have on the roadmap. For example, the local PostgreSQL server might be more powerful. Or for when you need to take a laptop into the field.

@gignacnic
Copy link
Contributor

If you do want to have a local PostgreSQL on a laptop that you want to bring into the field, it can be done by going into this workaround after doing a PG checkout on the main source DB:
1- Dump the 3 schemas (schema source, schema truck, schema just been checkout);
2- Restore of dump 1) into another local instance PG (laptop yo bring to the field)
3- Modified this local PG checkout data with QGIS versioning plugin in QGIS (on your laptop)
4- Dump only one schema checkout that has been modified in 3) (on your laptop)
5- Restore only the schema dump checkout in 4) in the main intial PG source DB
6- Commit changes of this new restore checkout into the trunk in QGIS with the plugin

@ar-jan
Copy link

ar-jan commented Jun 8, 2017

Thanks for describing these steps @gignacnic!

@SebastienPeillet
Copy link

Project migrated to : https://gitlab.com/Oslandia/qgis/qgis-versioning

@delhomer delhomer closed this as completed Jun 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants