Header And Logo

PostgreSQL
| The world's most advanced open source database.

plpy_elog.h

Go to the documentation of this file.
00001 /*
00002  * src/pl/plpython/plpy_elog.h
00003  */
00004 
00005 #ifndef PLPY_ELOG_H
00006 #define PLPY_ELOG_H
00007 
00008 /* global exception classes */
00009 extern PyObject *PLy_exc_error;
00010 extern PyObject *PLy_exc_fatal;
00011 extern PyObject *PLy_exc_spi_error;
00012 
00013 extern void
00014 PLy_elog(int elevel, const char *fmt,...)
00015 __attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3)));
00016 
00017 extern void
00018 PLy_exception_set(PyObject *exc, const char *fmt,...)
00019 __attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3)));
00020 
00021 extern void
00022 PLy_exception_set_plural(PyObject *exc, const char *fmt_singular, const char *fmt_plural,
00023                          unsigned long n,...)
00024 __attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 5)))
00025 __attribute__((format(PG_PRINTF_ATTRIBUTE, 3, 5)));
00026 
00027 #endif   /* PLPY_ELOG_H */