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

Commitead64f3

Browse files
Jan WieckJan Wieck
Jan Wieck
authored and
Jan Wieck
committed
New alloc set code using a memory block pool for small allocations.
Jan
1 parent7d2b387 commitead64f3

File tree

13 files changed

+1661
-309
lines changed

13 files changed

+1661
-309
lines changed

‎src/backend/catalog/pg_type.c

Lines changed: 6 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/catalog/pg_type.c,v 1.33 1999/02/03 21:15:56 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.34 1999/02/06 16:50:22 wieck Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -53,6 +53,7 @@ TypeGetWithOpenRelation(Relation pg_type_desc,
5353
{
5454
HeapScanDescscan;
5555
HeapTupletup;
56+
Oidtypoid;
5657

5758
staticScanKeyDatatypeKey[1]= {
5859
{0,Anum_pg_type_typname,F_NAMEEQ}
@@ -96,10 +97,12 @@ TypeGetWithOpenRelation(Relation pg_type_desc,
9697
*oid, which is the oid of the type.
9798
* ----------------
9899
*/
99-
heap_endscan(scan);
100100
*defined= (bool) ((Form_pg_type)GETSTRUCT(tup))->typisdefined;
101+
typoid=tup->t_data->t_oid;
101102

102-
returntup->t_data->t_oid;
103+
heap_endscan(scan);
104+
105+
returntypoid;
103106
}
104107

105108
/* ----------------------------------------------------------------

‎src/backend/executor/execMain.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
*
2828
* IDENTIFICATION
29-
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.70 1999/02/02 03:44:23momjian Exp $
29+
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.71 1999/02/06 16:50:23wieck Exp $
3030
*
3131
*-------------------------------------------------------------------------
3232
*/
@@ -1492,7 +1492,7 @@ ExecRelCheck(Relation rel, HeapTuple tuple)
14921492

14931493
res=ExecQual(qual,econtext);
14941494

1495-
pfree(qual);
1495+
freeObject(qual);
14961496

14971497
if (!res)
14981498
returncheck[i].ccname;

‎src/backend/nodes/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for nodes
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/nodes/Makefile,v 1.6 1998/04/0600:23:00 momjian Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/nodes/Makefile,v 1.7 1999/02/0616:50:24 wieck Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -14,8 +14,8 @@ include ../../Makefile.global
1414
CFLAGS += -I..
1515

1616
OBJS = nodeFuncs.o nodes.o list.o\
17-
copyfuncs.o equalfuncs.omakefuncs.ooutfuncs.oreadfuncs.o\
18-
print.o read.o
17+
copyfuncs.o equalfuncs.ofreefuncs.omakefuncs.ooutfuncs.o\
18+
readfuncs.oprint.o read.o
1919

2020
all: SUBSYS.o
2121

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp