mirror of
https://github.com/postgres/postgres.git
synced 2025-10-15 05:46:52 +03:00
Fixed everything in and surrounding createdb and dropdb to make it more
error-proof. Rearranged some old code and removed dead sections.
This commit is contained in:
@@ -6,23 +6,14 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: dbcommands.h,v 1.11 1999/12/10 03:56:06 momjian Exp $
|
||||
* $Id: dbcommands.h,v 1.12 2000/01/13 18:26:16 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef DBCOMMANDS_H
|
||||
#define DBCOMMANDS_H
|
||||
|
||||
#include <signal.h>
|
||||
#include "tcop/dest.h"
|
||||
|
||||
/*
|
||||
* Originally from tmp/daemon.h. The functions declared in daemon.h does not
|
||||
* exist; hence removed. -- AY 7/29/94
|
||||
*/
|
||||
#define SIGKILLDAEMON1 SIGTERM
|
||||
|
||||
extern void createdb(char *dbname, char *dbpath, int encoding, CommandDest);
|
||||
extern void dropdb(char *dbname, CommandDest);
|
||||
extern void createdb(const char *dbname, const char *dbpath, int encoding);
|
||||
extern void dropdb(const char *dbname);
|
||||
|
||||
#endif /* DBCOMMANDS_H */
|
||||
|
Reference in New Issue
Block a user