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

Commitda361ee

Browse files
committed
Add max oid display, rather than returning just a dash for the last entry.
1 parent4d56dbd commitda361ee

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

‎src/backend/parser/gram.c

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
*
238238
*
239239
* IDENTIFICATION
240-
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.54 1998/12/30 19:56:25 wieck Exp $
240+
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.55 1998/12/31 20:09:44 momjian Exp $
241241
*
242242
* HISTORY
243243
* AUTHORDATEMAJOR EVENT
@@ -4748,7 +4748,7 @@ static const short yycheck[] = { 3,
47484748
-1,212
47494749
};
47504750
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
4751-
#line 3 "/usr/share/bison.simple"
4751+
#line 3 "/usr/local/bison/bison.simple"
47524752

47534753
/* Skeleton output parser for bison,
47544754
Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
@@ -4801,16 +4801,6 @@ void *alloca ();
48014801
#endif/* not GNU C. */
48024802
#endif/* alloca not defined. */
48034803

4804-
#ifdef__cplusplus
4805-
extern"C" {
4806-
voidyyerror(char*);
4807-
intyylex();
4808-
};
4809-
#else
4810-
externvoidyyerror(char*);
4811-
externintyylex();
4812-
#endif
4813-
48144804
/* This is the parser code that is written into each bison parser
48154805
when the %semantic_parser declaration is not specified in the grammar.
48164806
It was written by Richard Stallman by simplifying the hairy parser
@@ -4907,13 +4897,9 @@ int yydebug;/* nonzero means print parse trace*/
49074897
#defineYYMAXDEPTH 10000
49084898
#endif
49094899

4910-
#ifndefYYPARSE_RETURN_TYPE
4911-
#defineYYPARSE_RETURN_TYPE int
4912-
#endif
4913-
49144900
/* Prevent warning if -Wstrict-prototypes. */
49154901
#ifdef__GNUC__
4916-
YYPARSE_RETURN_TYPEyyparse (void);
4902+
intyyparse (void);
49174903
#endif
49184904

49194905
#if__GNUC__>1/* GNU C and GNU C++ define this. */
@@ -4955,7 +4941,7 @@ __yy_memcpy (char *to, char *from, int count)
49554941
#endif
49564942
#endif
49574943

4958-
#line 196 "/usr/share/bison.simple"
4944+
#line 196 "/usr/local/bison/bison.simple"
49594945

49604946
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
49614947
into yyparse. The argument should have type void *.
@@ -4976,7 +4962,7 @@ __yy_memcpy (char *to, char *from, int count)
49764962
#defineYYPARSE_PARAM_DECL
49774963
#endif/* not YYPARSE_PARAM */
49784964

4979-
YYPARSE_RETURN_TYPE
4965+
int
49804966
yyparse(YYPARSE_PARAM_ARG)
49814967
YYPARSE_PARAM_DECL
49824968
{
@@ -10948,7 +10934,7 @@ case 958:
1094810934
break;}
1094910935
}
1095010936
/* the action file gets copied in in place of this dollarsign */
10951-
#line 498 "/usr/share/bison.simple"
10937+
#line 498 "/usr/local/bison/bison.simple"
1095210938

1095310939
yyvsp-=yylen;
1095410940
yyssp-=yylen;

‎src/include/catalog/unused_oids

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# unused_oids
33
#
4-
# $Header: /cvsroot/pgsql/src/include/catalog/unused_oids,v 1.1 1997/03/15 06:03:08 scrappy Exp $
4+
# $Header: /cvsroot/pgsql/src/include/catalog/unused_oids,v 1.2 1998/12/31 20:09:49 momjian Exp $
55
#
66
#finds blocks of oids that have not already been claimed by
77
#post_hackers for internal purposes. primarily useful for
@@ -37,5 +37,5 @@ BEGIN {
3737
last = $1;
3838
}
3939
END {
40-
print last + 1, "-";
40+
print last + 1, "-", 2^14-1; /* current BootstrapObjectIdData value */
4141
}'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp