DDC-175: Drop and create database should use postgres user for pgsql connections #215

Closed
opened 2026-01-22 12:30:56 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 25, 2009).

Jira issue originally created by user russ:

When dropping or creating a postgres database, Doctrine attempts to use the "database name" linked to the connection, however this is impossible when creating a database, and since postgres requires the dbname parameter to be set - it should be set to "postgres".

Previous versions of Doctrine used a temp connection with a temp connection name "postgres" - the attached patch applies a similar logic.

Originally created by @doctrinebot on GitHub (Nov 25, 2009). Jira issue originally created by user russ: When dropping or creating a postgres database, Doctrine attempts to use the "database name" linked to the connection, however this is impossible when creating a database, and since postgres requires the dbname parameter to be set - it should be set to "postgres". Previous versions of Doctrine used a temp connection with a temp connection name "postgres" - the attached patch applies a similar logic.
admin added the Bug label 2026-01-22 12:30:56 +01:00
admin closed this issue 2026-01-22 12:30:57 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 25, 2009):

Comment created by @guilhermeblanco:

In r6807 this patch was applied.

Thanks for report and patch!

@doctrinebot commented on GitHub (Nov 25, 2009): Comment created by @guilhermeblanco: In r6807 this patch was applied. Thanks for report and patch!
Author
Owner

@doctrinebot commented on GitHub (Nov 25, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 25, 2009): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 1 attachments from Jira into https://gist.github.com/651378912d529b15aa43

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 1 attachments from Jira into https://gist.github.com/651378912d529b15aa43 - [10188_PostgresSqlSchemaManager-DCC-175.patch](https://gist.github.com/651378912d529b15aa43#file-10188_PostgresSqlSchemaManager-DCC-175-patch)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#215