~ubuntu-branches/ubuntu/trusty/postgresql-9.3/trusty-proposed

« back to all changes in this revision

Viewing changes to contrib/pg_stat_statements/pg_stat_statements.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2016-03-31 11:04:53 UTC
  • mfrom: (1.1.11) (18.1.4 trusty-security)
  • Revision ID: package-import@ubuntu.com-20160331110453-h6xfs9f11suj3mze
Tags: 9.3.12-0ubuntu0.14.04
* New upstream bug fix release. (LP: #1564268)
  - See http://www.postgresql.org/about/news/1656/ for details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
588
588
        /*
589
589
         * Rename file into place, so we atomically replace the old one.
590
590
         */
591
 
        if (rename(PGSS_DUMP_FILE ".tmp", PGSS_DUMP_FILE) != 0)
592
 
                ereport(LOG,
593
 
                                (errcode_for_file_access(),
594
 
                                 errmsg("could not rename pg_stat_statement file \"%s\": %m",
595
 
                                                PGSS_DUMP_FILE ".tmp")));
 
591
        (void) durable_rename(PGSS_DUMP_FILE ".tmp", PGSS_DUMP_FILE, LOG);
596
592
 
597
593
        return;
598
594