mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +03:00
Merge the last few variable.c configuration variables into the generic
GUC support. It's now possible to set datestyle, timezone, and client_encoding from postgresql.conf and per-database or per-user settings. Also, implement rollback of SET commands that occur in a transaction that later fails. Create a SET LOCAL var = value syntax that sets the variable only for the duration of the current transaction. All per previous discussions in pghackers.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
*
|
||||
* PostgreSQL locale utilities
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/include/utils/pg_locale.h,v 1.12 2002/04/03 05:39:33 petere Exp $
|
||||
* $Id: pg_locale.h,v 1.13 2002/05/17 01:19:19 tgl Exp $
|
||||
*
|
||||
* Copyright (c) 2002, PostgreSQL Global Development Group
|
||||
*
|
||||
@@ -12,26 +12,23 @@
|
||||
#ifndef _PG_LOCALE_
|
||||
#define _PG_LOCALE_
|
||||
|
||||
#include "postgres.h"
|
||||
#include <locale.h>
|
||||
|
||||
extern char * locale_messages;
|
||||
extern char * locale_monetary;
|
||||
extern char * locale_numeric;
|
||||
extern char * locale_time;
|
||||
extern char *locale_messages;
|
||||
extern char *locale_monetary;
|
||||
extern char *locale_numeric;
|
||||
extern char *locale_time;
|
||||
|
||||
bool locale_messages_check(const char *proposed);
|
||||
bool locale_monetary_check(const char *proposed);
|
||||
bool locale_numeric_check(const char *proposed);
|
||||
bool locale_time_check(const char *proposed);
|
||||
extern const char *locale_messages_assign(const char *value,
|
||||
bool doit, bool interactive);
|
||||
extern const char *locale_monetary_assign(const char *value,
|
||||
bool doit, bool interactive);
|
||||
extern const char *locale_numeric_assign(const char *value,
|
||||
bool doit, bool interactive);
|
||||
extern const char *locale_time_assign(const char *value,
|
||||
bool doit, bool interactive);
|
||||
|
||||
void locale_messages_assign(const char *value);
|
||||
void locale_monetary_assign(const char *value);
|
||||
void locale_numeric_assign(const char *value);
|
||||
void locale_time_assign(const char *value);
|
||||
|
||||
bool chklocale(int category, const char *proposed);
|
||||
bool lc_collate_is_c(void);
|
||||
extern bool lc_collate_is_c(void);
|
||||
|
||||
/*
|
||||
* Return the POSIX lconv struct (contains number/money formatting
|
||||
|
||||
Reference in New Issue
Block a user