Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
4a73eb5a
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4a73eb5a
编写于
4月 30, 2004
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor adjustments to enable public-domain timezone library to be called
from our code.
上级
d248a67a
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
58 addition
and
13 deletion
+58
-13
src/include/c.h
src/include/c.h
+5
-1
src/include/port.h
src/include/port.h
+35
-1
src/interfaces/ecpg/compatlib/Makefile
src/interfaces/ecpg/compatlib/Makefile
+3
-2
src/interfaces/ecpg/ecpglib/Makefile
src/interfaces/ecpg/ecpglib/Makefile
+3
-2
src/interfaces/ecpg/pgtypeslib/Makefile
src/interfaces/ecpg/pgtypeslib/Makefile
+5
-2
src/interfaces/ecpg/preproc/Makefile
src/interfaces/ecpg/preproc/Makefile
+3
-2
src/interfaces/ecpg/test/Makefile
src/interfaces/ecpg/test/Makefile
+3
-2
src/timezone/README
src/timezone/README
+1
-1
未找到文件。
src/include/c.h
浏览文件 @
4a73eb5a
...
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/c.h,v 1.16
0 2004/03/10 21:12:46
momjian Exp $
* $PostgreSQL: pgsql/src/include/c.h,v 1.16
1 2004/04/30 04:14:05
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -310,12 +310,16 @@ typedef unsigned long int uint64;
#endif
/* Global variable holding time zone information. */
#ifdef USE_PGTZ
#define TIMEZONE_GLOBAL pg_timezone
#else
#ifndef HAVE_UNDERSCORE_TIMEZONE
#define TIMEZONE_GLOBAL timezone
#else
#define TIMEZONE_GLOBAL _timezone
#define tzname _tzname
/* should be in time.h? */
#endif
#endif
/* sig_atomic_t is required by ANSI C, but may be missing on old platforms */
#ifndef HAVE_SIG_ATOMIC_T
...
...
src/include/port.h
浏览文件 @
4a73eb5a
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/port.h,v 1.2
5 2004/04/19 17:42:59
momjian Exp $
* $PostgreSQL: pgsql/src/include/port.h,v 1.2
6 2004/04/30 04:14:05
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -177,3 +177,37 @@ extern int pqGethostbyname(const char *name,
#define WIFSIGNALED(w) (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f))
#define WTERMSIG(w) ((w) & 0x7f)
#endif
/*
* Internal timezone library
*/
#ifdef USE_PGTZ
#ifndef FRONTEND
#undef localtime
#undef gmtime
#undef asctime
#undef ctime
#undef difftime
#undef mktime
#undef tzset
#define localtime(timep) pg_localtime(timep)
#define gmtime(timep) pg_gmtime(timep)
#define asctime(timep) pg_asctime(timep)
#define ctime(timep) pg_ctime(timep)
#define difftime(t1,t2) pg_difftime(t1,t2)
#define mktime(tm) pg_mktime(tm)
#define tzset pg_tzset
extern
struct
tm
*
pg_localtime
(
const
time_t
*
);
extern
struct
tm
*
gg_gmtime
(
const
time_t
*
);
extern
char
*
pg_asctime
(
const
struct
tm
*
);
extern
char
*
pg_ctime
(
const
time_t
*
);
extern
double
pg_difftime
(
const
time_t
,
const
time_t
);
extern
time_t
pg_mktime
(
struct
tm
*
);
extern
void
pg_tzset
(
void
);
extern
time_t
pg_timezone
;
#endif
#endif
src/interfaces/ecpg/compatlib/Makefile
浏览文件 @
4a73eb5a
...
...
@@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.1
6 2004/04/25 20:57:32
momjian Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.1
7 2004/04/30 04:14:05
momjian Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -16,7 +16,8 @@ NAME= ecpg_compat
SO_MAJOR_VERSION
=
1
SO_MINOR_VERSION
=
1
override CPPFLAGS
:
= -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
override CPPFLAGS
:
= -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir)
\
-I$(top_srcdir)/src/include/utils $(CPPFLAGS)
override
CFLAGS
+=
$(PTHREAD_CFLAGS)
SHLIB_LINK
=
-L
../ecpglib
-lecpg
-L
../pgtypeslib
-lpgtypes
$(libpq)
\
$(
filter
-lintl
-lssl
-lcrypto
-lkrb5
-lcrypt
-lm
,
$(LIBS)
)
$(PTHREAD_LIBS)
...
...
src/interfaces/ecpg/ecpglib/Makefile
浏览文件 @
4a73eb5a
...
...
@@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.1
6 2004/04/25 20:57:32
momjian Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.1
7 2004/04/30 04:14:05
momjian Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -16,7 +16,8 @@ NAME= ecpg
SO_MAJOR_VERSION
=
4
SO_MINOR_VERSION
=
2
override CPPFLAGS
:
= -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) $(CPPFLAGS)
override CPPFLAGS
:
= -I$(top_srcdir)/src/interfaces/ecpg/include
\
-I$(libpq_srcdir) $(CPPFLAGS)
override
CFLAGS
+=
$(PTHREAD_CFLAGS)
OBJS
=
execute.o typename.o descriptor.o data.o error.o prepare.o memory.o
\
...
...
src/interfaces/ecpg/pgtypeslib/Makefile
浏览文件 @
4a73eb5a
...
...
@@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.1
7 2004/04/23 18:15:54
momjian Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.1
8 2004/04/30 04:14:06
momjian Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -16,7 +16,10 @@ NAME= pgtypes
SO_MAJOR_VERSION
=
1
SO_MINOR_VERSION
=
2
override CPPFLAGS
:
= -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS) $(PTHREAD_CFLAGS)
override CPPFLAGS
:
= -I$(top_srcdir)/src/interfaces/ecpg/include
\
-I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS)
\
$(PTHREAD_CFLAGS) -DFRONTEND
SHLIB_LINK
+=
-lm
OBJS
=
numeric.o datetime.o common.o dt_common.o timestamp.o interval.o
\
...
...
src/interfaces/ecpg/preproc/Makefile
浏览文件 @
4a73eb5a
# $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.10
2 2004/04/26 17:40:48
momjian Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.10
3 2004/04/30 04:14:06
momjian Exp $
subdir
=
src/interfaces/ecpg/preproc
top_builddir
=
../../../..
...
...
@@ -12,7 +12,8 @@ override CPPFLAGS := -I$(srcdir)/../include -I$(srcdir) $(CPPFLAGS) \
-DMAJOR_VERSION=$(MAJOR_VERSION)
\
-DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL)
\
-DINCLUDEDIR=
\"
$(includedir)
\"
\
-DPKGINCLUDEDIR=
\"
$(pkgincludedir)
\"
-DPKGINCLUDEDIR=
\"
$(pkgincludedir)
\"
\
-DFRONTEND
ifeq
($(GCC), yes)
override
CFLAGS
+=
-Wno-error
...
...
src/interfaces/ecpg/test/Makefile
浏览文件 @
4a73eb5a
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.4
6 2004/04/25 20:57:32
momjian Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.4
7 2004/04/30 04:14:06
momjian Exp $
subdir
=
src/interfaces/ecpg/test
top_builddir
=
../../../..
...
...
@@ -9,7 +9,8 @@ override CFLAGS += $(PTHREAD_CFLAGS)
ECPG
=
../preproc/ecpg
-I
$(srcdir)
/../include
TESTS
=
test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test dt_test test_informix
TESTS
=
test1 test2 test3 test4 perftest dyntest dyntest2 test_notice
\
test_code100 test_init testdynalloc num_test dt_test test_informix
ifeq
($(enable_thread_safety), yes)
TESTS
+=
test_thread test_thread_implicit
endif
...
...
src/timezone/README
浏览文件 @
4a73eb5a
This is a PostgreSQL adapted version of the timezone library
from:
ftp://elsie.nci.nih.gov/pub/tz*.tar.gz
ftp://elsie.nci.nih.gov/pub/tz*.tar.gz
The interface is used when USE_PGTZ is defined at the top level. This
will cause the following functions to be redefined:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录