Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
4cb1fb6f
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,发现更多精彩内容 >>
提交
4cb1fb6f
编写于
12月 16, 1999
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update for QNX.
上级
8d49a660
变更
17
展开全部
隐藏空白更改
内联
并排
Showing
17 changed file
with
10306 addition
and
1384 deletion
+10306
-1384
doc/README.qnx4
doc/README.qnx4
+60
-26
src/backend/bootstrap/Makefile
src/backend/bootstrap/Makefile
+8
-5
src/backend/port/dynloader/ID
src/backend/port/dynloader/ID
+0
-0
src/backend/port/dynloader/tags
src/backend/port/dynloader/tags
+130
-1340
src/backend/port/qnx4/Makefile
src/backend/port/qnx4/Makefile
+1
-1
src/backend/port/qnx4/ipc.h
src/backend/port/qnx4/ipc.h
+1
-1
src/backend/port/qnx4/isnan.c
src/backend/port/qnx4/isnan.c
+1
-1
src/backend/port/qnx4/rint.c
src/backend/port/qnx4/rint.c
+1
-1
src/backend/port/qnx4/sem.c
src/backend/port/qnx4/sem.c
+1
-1
src/backend/port/qnx4/sem.h
src/backend/port/qnx4/sem.h
+1
-1
src/backend/port/qnx4/shm.c
src/backend/port/qnx4/shm.c
+1
-1
src/backend/port/qnx4/shm.h
src/backend/port/qnx4/shm.h
+1
-1
src/backend/port/qnx4/tags
src/backend/port/qnx4/tags
+10096
-0
src/backend/port/qnx4/tstrint.c
src/backend/port/qnx4/tstrint.c
+1
-1
src/backend/port/qnx4/tstsem.c
src/backend/port/qnx4/tstsem.c
+1
-1
src/backend/port/qnx4/tstshm.c
src/backend/port/qnx4/tstshm.c
+1
-1
src/test/regress/regress.sh
src/test/regress/regress.sh
+1
-2
未找到文件。
doc/README.qnx4
浏览文件 @
4cb1fb6f
PostgresSQL on QNX 4
--------------------
PosgresSQL 6.5.2 could be ported to QNX 4.25.
This port is an important step because PostgreSQL is now the only free
relational database with full SQL and ODBC support available for QNX 4.
The only commercial databases available are Empress RDBMS and Velocis
Database Server (not supported for Digital Unix).
The most e
xpensive topics where
the emulation of System V semaphore sets,
The most e
ffort required
the emulation of System V semaphore sets,
shared memory and IPC and of some IEEE floating-point functionality. For
the Watcom compiler spinlocks have been implemented using POSIX semaphores.
A lot of make files had to be changed because $(LD) doesn't support the
-r option on QNX 4.
It is recomended to use the GNU C compiler instead of the Watcom compiler
because the Watcom compiler doesn't support a int8 datatype (long or
...
...
@@ -24,7 +20,7 @@ have to be made which are not described here.
QNX 4 does not offer native support of shared libraries. Therefore the related
functionality cannot be used. Shared library support could probably be
implemented.
implemented
in future
.
QNX 4 does not support UNIX domain sockets. Connections can only be made
with TCP/IP sockets. Therefore postmaster must always be started with the
...
...
@@ -36,6 +32,7 @@ Prerequisites:
The following prerequisites have been used:
QNX 4.25
Watcom C 10.6
GNU make
flex-2.5.4a.tar.gz (flex)
egcs111-qnx4-r20.tar[.gz] (GNU C)
...
...
@@ -77,25 +74,17 @@ modifications of the code the following links should be made:
ln -s /usr/local/bin/perl /usr/local/bin/perl5
ln -s /usr/include/errno.h /usr/include/sys/errno.h
ln -s /usr/include/ioctl.h /usr/include/sys/ioctl.h
ln -s /usr/src/pgsql/src/backend/port/qnx4/ipc.h /usr/include/sys/ipc.h
ln -s /usr/src/pgsql/src/backend/port/qnx4/sem.h /usr/include/sys/sem.h
ln -s /usr/src/pgsql/src/backend/port/qnx4/shm.h /usr/include/sys/shm.h
The sources can be unpacked by
cd /usr/src
gunzip -c postgresql-6.5.2.tar.gz | tar xvf -
mv postgresql-6.5.2 pgsql
gunzip -c postgresql-6.5.2-qnx4-gcc-patch.tar.gz | tar xvf -
Furthermore the header files ipc.h, sem.h and shm.h must be installed.
They are not available on QNX 4. stl_alloc.h must be modified
(extern "C++" { ... }).
su
cd /usr
gunzip -c qnx4-gcc-header-patch.tar.gz | tar xvf -
exit
Possibly the file
For ecgs-2.91.60 the file
/usr/local/lib/gcc-lib/i386-pc-qnx4/egcs-2.91.60/include/g++/stl_alloc.h
must be copied to the right path in your environment.
If this ist the case the path has to be adopted in src/Makefile.custom too
(CXXFLAGS).
had to be patched (extern "C++" { ... } // extern "C++").
See attached patch.
If you use another ecpg version the include/g++ path in Makefile.qnx4
(CXXFLAGS) has to be adopted.
If all prerequisites are available postgres can be built and installed by
cd pgsql/src
...
...
@@ -109,6 +98,23 @@ exit
All other steps can be carried out as stated in the INSTALL file.
Make problems:
--------------
Sometimes the Watcom library manager wlib crashes with SIGSEGV on some
object files. This is a general problem and not PostgreSQL related.
Currently bootstrap.o causes such a crash. The workaround is not to include
the object file into the SUBSYS.o but link it directly. For further information
see backend/Makefile and backend/bootstrap/Makefile.
libpgsql.a currently cannot be generated because of the same problem. But this
doesn't matter since shared libraries are not supported.
Currently yacc fails on interfaces/ecpg/preproc/preproc.y because of
exceeded maximum table size. You can generate the preproc.h and preproc.c
files on another platform and use them. This is only a problem when you use
the current source tree since preproc.h and preporc.c are included in official
distributions.
Regression tests:
-----------------
...
...
@@ -122,7 +128,7 @@ int8, float4:
Exponent expression "e+nnn" instead of "e+nn". Can be ignored.
float8:
Exponent expression "e+nnn" instead of "e+nn" and some slight d
eviation
Exponent expression "e+nnn" instead of "e+nn" and some slight d
ifference
in the last digit.
Can be ignored.
...
...
@@ -143,7 +149,8 @@ Subject of further investigation.
numeric, numeric_big:
ERROR: Cannot create unique index. Table contains non-unique values
Subject of further investigation.
Subject of further investigation. Probably because of the missing indices
these tests take a long time.
The reached state of this port should be sufficient for lot of applications.
...
...
@@ -151,4 +158,31 @@ Have fun!
Andreas Kardos
kardos@repas-aeg.de
1999-12-09
1999-12-16
---------------------------------------------------------------------------
*** ./stl_alloc.h.orig Sat Feb 28 05:17:28 1998
--- ./stl_alloc.h Tue Nov 23 04:14:09 1999
***************
*** 120,125 ****
--- 120,126 ----
#pragma set woff 1174
#endif
+ extern "C++" {
// Malloc-based allocator. Typically slower than default alloc below.
// Typically thread-safe and more storage efficient.
#ifdef __STL_STATIC_TEMPLATE_MEMBER_BUG
***************
*** 682,687 ****
--- 683,689 ----
# endif
#endif /* ! __USE_MALLOC */
+ } // extern "C++"
#if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)
#pragma reset woff 1174
src/backend/bootstrap/Makefile
浏览文件 @
4cb1fb6f
...
...
@@ -4,7 +4,7 @@
# Makefile for the bootstrap module
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.1
8 1999/12/16 01:25:01
momjian Exp $
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.1
9 1999/12/16 16:52:46
momjian Exp $
#
#
# We must build bootparse.c and bootscanner.c with yacc and lex and sed,
...
...
@@ -32,17 +32,20 @@ endif
BOOTYACCS
=
bootstrap_tokens.h bootparse.c
ifneq
($(PORTNAME), qnx4)
OBJS
=
bootparse.o bootscanner.o bootstrap.o
else
# wlink crashes with bootstrap.o
OBJS
=
bootparse.o bootscanner.o
ifeq
($(PORTNAME), qnx4)
# wlink c
urrently c
rashes with bootstrap.o
OBJS
1
=
bootparse.o bootscanner.o
endif
all
:
SUBSYS.o
SUBSYS.o
:
$(OBJS)
ifneq
($(PORTNAME), qnx4)
$(LD)
$(LDREL)
$(LDOUT)
SUBSYS.o
$(OBJS)
else
$(LD)
$(LDREL)
$(LDOUT)
SUBSYS.o
$(OBJS1)
endif
# bootstrap.o's dependency on bootstrap_tokens.h is computed by the
# make depend, but we state it here explicitly anyway because
...
...
src/backend/port/dynloader/ID
浏览文件 @
4cb1fb6f
无法预览此类型文件
src/backend/port/dynloader/tags
浏览文件 @
4cb1fb6f
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
src/backend/port/qnx/Makefile
→
src/backend/port/qnx
4
/Makefile
浏览文件 @
4cb1fb6f
...
...
@@ -4,7 +4,7 @@
# Makefile for port/sparc
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/port/qnx
/Attic/Makefile,v 1.1 1999/12/16 01:25:06
momjian Exp $
# $Header: /cvsroot/pgsql/src/backend/port/qnx
4/Attic/Makefile,v 1.1 1999/12/16 16:52:52
momjian Exp $
#
#-------------------------------------------------------------------------
...
...
src/backend/port/qnx/ipc.h
→
src/backend/port/qnx
4
/ipc.h
浏览文件 @
4cb1fb6f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/qnx
/Attic/ipc.h,v 1.1 1999/12/16 01:25:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/qnx
4/Attic/ipc.h,v 1.1 1999/12/16 16:52:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/backend/port/qnx/isnan.c
→
src/backend/port/qnx
4
/isnan.c
浏览文件 @
4cb1fb6f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/qnx
/Attic/isnan.c,v 1.1 1999/12/16 01:25:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/qnx
4/Attic/isnan.c,v 1.1 1999/12/16 16:52:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/backend/port/qnx/rint.c
→
src/backend/port/qnx
4
/rint.c
浏览文件 @
4cb1fb6f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/qnx
/Attic/rint.c,v 1.1 1999/12/16 01:25:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/qnx
4/Attic/rint.c,v 1.1 1999/12/16 16:52:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/backend/port/qnx/sem.c
→
src/backend/port/qnx
4
/sem.c
浏览文件 @
4cb1fb6f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/qnx
/Attic/sem.c,v 1.1 1999/12/16 01:25:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/qnx
4/Attic/sem.c,v 1.1 1999/12/16 16:52:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/backend/port/qnx/sem.h
→
src/backend/port/qnx
4
/sem.h
浏览文件 @
4cb1fb6f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/qnx
/Attic/sem.h,v 1.1 1999/12/16 01:25:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/qnx
4/Attic/sem.h,v 1.1 1999/12/16 16:52:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/backend/port/qnx/shm.c
→
src/backend/port/qnx
4
/shm.c
浏览文件 @
4cb1fb6f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/qnx
/Attic/shm.c,v 1.1 1999/12/16 01:25:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/qnx
4/Attic/shm.c,v 1.1 1999/12/16 16:52:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/backend/port/qnx/shm.h
→
src/backend/port/qnx
4
/shm.h
浏览文件 @
4cb1fb6f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/qnx
/Attic/shm.h,v 1.1 1999/12/16 01:25:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/qnx
4/Attic/shm.h,v 1.1 1999/12/16 16:52:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/backend/port/qnx4/tags
0 → 100644
浏览文件 @
4cb1fb6f
此差异已折叠。
点击以展开。
src/backend/port/qnx/tstrint.c
→
src/backend/port/qnx
4
/tstrint.c
浏览文件 @
4cb1fb6f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/qnx
/Attic/tstrint.c,v 1.1 1999/12/16 01:25:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/qnx
4/Attic/tstrint.c,v 1.1 1999/12/16 16:52:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/backend/port/qnx/tstsem.c
→
src/backend/port/qnx
4
/tstsem.c
浏览文件 @
4cb1fb6f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/qnx
/Attic/tstsem.c,v 1.1 1999/12/16 01:25:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/qnx
4/Attic/tstsem.c,v 1.1 1999/12/16 16:52:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/backend/port/qnx/tstshm.c
→
src/backend/port/qnx
4
/tstshm.c
浏览文件 @
4cb1fb6f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/qnx
/Attic/tstshm.c,v 1.1 1999/12/16 01:25:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/port/qnx
4/Attic/tstshm.c,v 1.1 1999/12/16 16:52:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/test/regress/regress.sh
浏览文件 @
4cb1fb6f
#!/bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.3
4 1999/12/16 01:25:2
3 momjian Exp $
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.3
5 1999/12/16 16:52:5
3 momjian Exp $
#
if
[
$#
-eq
0
]
then
...
...
@@ -110,7 +110,6 @@ do
echo
"----------------------"
;
\
echo
""
)
>>
regression.diffs
echo
failed
echo
"diff
${
DIFFOPT
}
-C3
${
EXPECTED
}
results/
${
i
}
.out"
else
echo
ok
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录