Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit53d8be3

Browse files
committed
Date/Time updates from Thomas...
1 parent71fd8d4 commit53d8be3

File tree

19 files changed

+3375
-1419
lines changed

19 files changed

+3375
-1419
lines changed

‎src/backend/access/rtree/rtproc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.5 1996/11/10 02:58:53 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.6 1997/03/14 23:17:41 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414

1515
#include<postgres.h>
1616

1717
#include<utils/builtins.h>
18-
#include<utils/geo-decls.h>
18+
#include<utils/geo_decls.h>
1919
#ifndefHAVE_MEMMOVE
2020
# include<regex/utils.h>
2121
#else

‎src/backend/access/rtree/rtree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.11 1997/01/10 09:47:28 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.12 1997/03/14 23:17:46 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -20,7 +20,7 @@
2020
#include<storage/lmgr.h>
2121
#include<access/rtree.h>
2222
#include<storage/bufmgr.h>
23-
#include<utils/geo-decls.h>
23+
#include<utils/geo_decls.h>
2424
#include<executor/executor.h>
2525
#include<access/heapam.h>
2626
#include<fmgr.h>

‎src/backend/access/transam/xact.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.7 1997/03/12 20:41:14 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.8 1997/03/14 23:18:16 scrappy Exp $
1111
*
1212
* NOTES
1313
*Transaction aborts can now occur two ways:
@@ -171,7 +171,14 @@ TransactionState CurrentTransactionState =
171171
&CurrentTransactionStateData;
172172

173173
/* ----------------
174-
*info returned when the system is desabled
174+
*info returned when the system is disabled
175+
*
176+
* Apparently a lot of this code is inherited from other prototype systems.
177+
* For DisabledStartTime, use a symbolic value to make the relationships clearer.
178+
* The old value of 1073741823 corresponds to a date in y2004, which is coming closer
179+
* every day. It appears that if we return a value guaranteed larger than
180+
* any real time associated with a transaction then comparisons in other
181+
* modules will still be correct. Let's use BIG_ABSTIME for this. tgl 2/14/97
175182
*
176183
*Note: I have no idea what the significance of the
177184
* 1073741823 in DisabledStartTime.. I just carried
@@ -183,7 +190,7 @@ TransactionId DisabledTransactionId = (TransactionId)-1;
183190

184191
CommandIdDisabledCommandId= (CommandId)-1;
185192

186-
AbsoluteTimeDisabledStartTime= (AbsoluteTime)1073741823;
193+
AbsoluteTimeDisabledStartTime= (AbsoluteTime)BIG_ABSTIME;/*1073741823; */
187194

188195
/* ----------------
189196
*overflow flag

‎src/backend/bootstrap/bootstrap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.16 1997/03/12 20:57:33 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.17 1997/03/14 23:18:32 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -89,7 +89,7 @@
8989

9090
#include"catalog/catname.h"
9191

92-
#include"utils/geo-decls.h"
92+
#include"utils/geo_decls.h"
9393
#include"utils/builtins.h"
9494

9595
#include"catalog/index.h"

‎src/backend/utils/adt/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for utils/adt
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.6 1997/03/12 21:27:03 scrappy Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.7 1997/03/14 23:19:50 scrappy Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -20,8 +20,9 @@ CFLAGS+=$(INCLUDE_OPT)
2020
OBJS = acl.o arrayfuncs.o arrayutils.o bool.o char.o chunk.o date.o\
2121
datum.o dt.o filename.o float.o geo_ops.o geo_selfuncs.o int.o\
2222
misc.o nabstime.o name.o not_in.o numutils.o oid.o\
23-
oidname.o oidint2.o oidint4.o oracle_compat.o regexp.o regproc.o selfuncs.o\
24-
tid.o varchar.o varlena.o sets.o datetimes.o like.o timestamp.o
23+
oidname.o oidint2.o oidint4.o oracle_compat.o regexp.o regproc.o\
24+
selfuncs.o\
25+
tid.o varchar.o varlena.o sets.o datetime.o like.o timestamp.o
2526

2627
all: SUBSYS.o
2728

‎src/backend/utils/adt/bool.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.2 1996/11/03 06:53:03 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.3 1997/03/14 23:19:52 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -24,12 +24,12 @@
2424
/*
2525
*boolin- converts "t" or "f" to 1 or 0
2626
*/
27-
int32
27+
bool
2828
boolin(char*b)
2929
{
3030
if (b==NULL)
3131
elog(WARN,"Bad input string for type bool");
32-
return((int32) (*b=='t')|| (*b=='T'));
32+
return((bool) (*b=='t')|| (*b=='T'));
3333
}
3434

3535
/*
@@ -49,13 +49,13 @@ boolout(long b)
4949
* PUBLIC ROUTINES *
5050
*****************************************************************************/
5151

52-
int32
52+
bool
5353
booleq(int8arg1,int8arg2)
5454
{
5555
return(arg1==arg2);
5656
}
5757

58-
int32
58+
bool
5959
boolne(int8arg1,int8arg2)
6060
{
6161
return(arg1!=arg2);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp