Skip to content

Postgresql schema not used by drush #1523 - #6577

Open
joejoseph00 wants to merge 2 commits into
drush-ops:14.xfrom
joejoseph00:14.x
Open

Postgresql schema not used by drush #1523#6577
joejoseph00 wants to merge 2 commits into
drush-ops:14.xfrom
joejoseph00:14.x

Conversation

@joejoseph00

Copy link
Copy Markdown

This works and makes sense to me.

@weitzman

weitzman commented Jul 5, 2026

Copy link
Copy Markdown
Member

Please describe the bug and the fix.

@joejoseph00

joejoseph00 commented Jul 5, 2026

Copy link
Copy Markdown
Author

Please describe the bug and the fix.

Before patching , drush sql-drop only works if your schema/database is called 'public' . Who does this? After patching, drush sql-drop functions as expected.

Install postgresql
Create schéma / database called mydrupal
Create user with privileges for mydrupal
Install drupal 11.3.12 on the mydrupal schema
Install drush

Run drush sql-drop
Nothing happens because drush thinks your schema is called 'public'

Solution: apply patch

Now run drush sql-drop

All tables are dropped as expected

@weitzman

weitzman commented Jul 7, 2026

Copy link
Copy Markdown
Member

Thanks. Needs thorough review by a postgres user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants