⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 common.h

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻 H
字号:
/* * psql - the PostgreSQL interactive terminal * * Copyright (c) 2000-2005, PostgreSQL Global Development Group * * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.45 2005/10/15 02:49:40 momjian Exp $ */#ifndef COMMON_H#define COMMON_H#include "postgres_fe.h"#include <signal.h>#include "pqsignal.h"#include "libpq-fe.h"#ifdef USE_ASSERT_CHECKING#include <assert.h>#define psql_assert(p) assert(p)#else#define psql_assert(p)#endif#define atooid(x)  ((Oid) strtoul((x), NULL, 10))/* * Safer versions of some standard C library functions. If an * out-of-memory condition occurs, these functions will bail out * safely; therefore, their return value is guaranteed to be non-NULL. */extern char *pg_strdup(const char *string);extern void *pg_malloc(size_t size);extern void *pg_malloc_zero(size_t size);extern void *pg_calloc(size_t nmemb, size_t size);extern bool setQFout(const char *fname);extern voidpsql_error(const char *fmt,...)/* This lets gcc check the format string for consistency. */__attribute__((format(printf, 1, 2)));extern void NoticeProcessor(void *arg, const char *message);extern volatile bool cancel_pressed;extern void ResetCancelConn(void);#ifndef WIN32extern void handle_sigint(SIGNAL_ARGS);#elseextern void setup_win32_locks(void);extern void setup_cancel_handler(void);#endifextern PGresult *PSQLexec(const char *query, bool start_xact);extern bool SendQuery(const char *query);extern bool is_superuser(void);extern const char *session_username(void);extern char *expand_tilde(char **filename);#endif   /* COMMON_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -