Closed (fixed)
Project:
Drush
Version:
8.x-6.x-dev
Component:
SQL
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Feb 2012 at 12:33 UTC
Updated:
20 Jul 2013 at 03:11 UTC
Jump to comment: Most recent file
For postgresql 'drush sql-dump --structure-tables' will generate 2 invocations of pg_dump; but only the first one get the --clean option set. The result is that the structure-tables will not be updated and lot of error noise is shown when you try to apply the dump. Patch applied to fix this problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 0001-sql-dump-The-pg_dump-clean-option-was-missing-for-st.patch | 911 bytes | gaas |
| 0001-sql-dump-The-pg_dump-clean-option-was-missing-for-st.patch | 900 bytes | gaas |
Comments
Comment #1
moshe weitzman commentedComment #2
gaas commentedUpdated the patch so that it applies against the current 7.x-5.x branch.
Comment #3
steinmb commentedAh, this patch fixed that issue for me also. Looks to me like a safe one liner, RTBC.
Comment #4
moshe weitzman commented@Greg - does this one liner look ok?
Should go into 8.x-6.x first
Comment #5
greg.1.anderson commentedI'm okay with committing this, as it looks more correct with the consistent use of --clean than without.
However, I get the same set of errors from psql with and without this patch:
Where TABLE is some table specified by --structure-tables.
If you just want to go ahead and commit this based on #3, I'm fine with that.
Comment #6
moshe weitzman commentedCommitted to 6. This needs more testing before backporting to 5 as per Greg's last comment.