~ubuntu-branches/ubuntu/vivid/postgresql-9.4/vivid-proposed

« back to all changes in this revision

Viewing changes to src/backend/commands/tablespace.c

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2014-11-18 09:49:04 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20141118094904-f7f1jhitn5iadkgn
Tags: 9.4~rc1-1
* First 9.4 RC release.
* Update psql call in dump-reload instructions.
* Reenable 010_pg_basebackup.t tests, fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
491
491
                 * but we can't tell them apart from important data files that we
492
492
                 * mustn't delete.  So instead, we force a checkpoint which will clean
493
493
                 * out any lingering files, and try again.
 
494
                 *
 
495
                 * XXX On Windows, an unlinked file persists in the directory listing
 
496
                 * until no process retains an open handle for the file.  The DDL
 
497
                 * commands that schedule files for unlink send invalidation messages
 
498
                 * directing other PostgreSQL processes to close the files.  DROP
 
499
                 * TABLESPACE should not give up on the tablespace becoming empty
 
500
                 * until all relevant invalidation processing is complete.
494
501
                 */
495
502
                RequestCheckpoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_FORCE | CHECKPOINT_WAIT);
496
503
                if (!destroy_tablespace_directories(tablespaceoid, false))