Do this instead:
psql -U <your web2py user> - h localhost -d <your web2py database> <
your_dumpfile.sql
psql will ask you for a password. Use your web2py user's password.
Create the database first, but don't create any tables or anything else.
On Wednesday, October 8, 2014 12:18:50 PM UTC-4, Manuele wrote:
>
> Hi!
> Is there a way to restore a dump from an sql file that comes from a
> pg_dump command using in someway the database object defined in my model
> for example using the executesql method?
> I ask because I tried without success... it raises the sequent error in
> corrispondence of the line where data start after tables definition:
>
> ProgrammingError: ERRORE: errore di sintassi a o presso "2644"
> LINE 107: 2644 {"hide": false, "uuid": "1:0", "grp": 1, "state": 1, "e...
>
> Thanks a lot
>
> Manuele
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.