In PostgresSQL
a) Temp tables are automatically deleted upon end of session
b) Same temp table name hides existing table for current session
It is not necessary to consider 'postgres' during dropping of table.
I guess similar logic for Oracle but I could not verify.
It seems that no one use Oracle for MediaWiki.
Bug: T113445
Change-Id: I37b5483a6e9abe5cda0d4dfc103c287641f277a7
self::changePrefix( $this->newTablePrefix );
$newTableName = $this->db->tableName( $tbl, 'raw' );
self::changePrefix( $this->newTablePrefix );
$newTableName = $this->db->tableName( $tbl, 'raw' );
+ // Postgres: Temp tables are automatically deleted upon end of session
+ // Same Temp table name hides existing table for current session
if ( $this->dropCurrentTables
if ( $this->dropCurrentTables
- && !in_array( $this->db->getType(), [ 'postgres', 'oracle' ] )
+ && !in_array( $this->db->getType(), [ 'oracle' ] )
) {
if ( $oldTableName === $newTableName ) {
// Last ditch check to avoid data loss
) {
if ( $oldTableName === $newTableName ) {
// Last ditch check to avoid data loss