]> granicus.if.org Git - postgresql/commit
mdcreate():
authorVadim B. Mikheev <vadim4o@yahoo.com>
Tue, 6 May 1997 02:03:20 +0000 (02:03 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Tue, 6 May 1997 02:03:20 +0000 (02:03 +0000)
commit13f41aa90b382a43f3e4b10562a2860535e41db5
treecebefcdfba4f3255dde9a1fa1937713b46e6dd65
parentb45128f1c394808bca6c4ca345036f6b72a9b61a
mdcreate():
    fd = FileNameOpenFile(path, O_RDWR|O_CREAT|O_EXCL, 0600);

    /*
     *  If the file already exists and is empty, we pretend that the
     *  create succeeded.  During bootstrap processing, we skip that check,
     *  because pg_time, pg_variable, and pg_log get created before their
     *  .bki file entries are processed.
     *
>    *  As the result of this pretence it was possible to have in
>    *  pg_class > 1 records with the same relname. Actually, it
>    *  should be fixed in upper levels, too, but... -  vadim 05/06/97
>    */
src/backend/storage/smgr/md.c