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

Commit6981766

Browse files
committed
Final cleanup
1 parentba42b68 commit6981766

File tree

23 files changed

+70
-92
lines changed

23 files changed

+70
-92
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 5 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/tcop/postgres.c,v 1.123 1999/07/1604:59:53 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.124 1999/07/1605:23:18 momjian Exp $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -42,6 +42,7 @@
4242
#include<arpa/inet.h>
4343
#include<netdb.h>
4444
#ifdef__CYGWIN32__
45+
#include<getopt.h>
4546
#endif
4647

4748
#include"commands/async.h"
@@ -1495,7 +1496,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
14951496
if (!IsUnderPostmaster)
14961497
{
14971498
puts("\nPOSTGRES backend interactive interface ");
1498-
puts("$Revision: 1.123 $ $Date: 1999/07/1604:59:53 $\n");
1499+
puts("$Revision: 1.124 $ $Date: 1999/07/1605:23:18 $\n");
14991500
}
15001501

15011502
/* ----------------
@@ -1660,7 +1661,8 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
16601661
}
16611662

16621663
#ifndefHAVE_GETRUSAGE
1663-
#else/* HAVE_GETRUSAGE */
1664+
#include"rusagestub.h"
1665+
#else
16641666
#include<sys/resource.h>
16651667
#endif/* HAVE_GETRUSAGE */
16661668

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Copyright (c) 1994, Regents of the University of California
66
*
7-
* $Id: nabstime.c,v 1.59 1999/07/16 05:00:14 momjian Exp $
7+
* $Id: nabstime.c,v 1.60 1999/07/16 05:23:19 momjian Exp $
88
*
99
*/
1010
#include<stdio.h>
@@ -349,8 +349,6 @@ nabstimeout(AbsoluteTime time)
349349
break;
350350
default:
351351
abstime2tm(time,&tz,tm,tzn);
352-
#ifDATEDEBUG
353-
#endif
354352
EncodeDateTime(tm,fsec,&tz,&tzn,DateStyle,buf);
355353
break;
356354
}

‎src/backend/utils/cache/lsyscache.c

Lines changed: 3 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/utils/cache/lsyscache.c,v 1.29 1999/07/15 22:40:04 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.30 1999/07/16 05:23:19 momjian Exp $
1111
*
1212
* NOTES
1313
* Eventually, the index information should go through here, too.
@@ -16,11 +16,11 @@
1616
#include<string.h>
1717
#include"postgres.h"
1818

19-
#include"utils/syscache.h"
20-
#include"utils/lsyscache.h"
2119

2220
#include"catalog/pg_operator.h"
2321
#include"catalog/pg_type.h"
22+
#include"utils/lsyscache.h"
23+
#include"utils/syscache.h"
2424

2525
/*---------- AMOP CACHES ---------- */
2626

‎src/backend/utils/cache/relcache.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/utils/cache/relcache.c,v 1.65 1999/07/1603:14:18 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.66 1999/07/1605:23:20 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -46,8 +46,8 @@
4646
#include"catalog/index.h"
4747
#include"catalog/indexing.h"
4848
#include"catalog/pg_attrdef.h"
49-
#include"catalog/pg_proc.h"
5049
#include"catalog/pg_log.h"
50+
#include"catalog/pg_proc.h"
5151
#include"catalog/pg_relcheck.h"
5252
#include"catalog/pg_rewrite.h"
5353
#include"catalog/pg_type.h"

‎src/backend/utils/cache/syscache.c

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.29 1999/07/15 22:40:04 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.30 1999/07/16 05:23:21 momjian Exp $
1111
*
1212
* NOTES
1313
* These routines allow the parser/planner/executor to perform
@@ -17,31 +17,25 @@
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
20+
#include<string.h>
2021
#include"postgres.h"
2122

2223
#include"access/heapam.h"
2324
#include"catalog/catname.h"
24-
#include"utils/catcache.h"
25-
#include<string.h>
26-
27-
28-
/* ----------------
29-
*hardwired attribute information comes from system catalog files.
30-
* ----------------
31-
*/
25+
#include"catalog/pg_aggregate.h"
3226
#include"catalog/pg_amop.h"
3327
#include"catalog/pg_group.h"
3428
#include"catalog/pg_index.h"
3529
#include"catalog/pg_inherits.h"
3630
#include"catalog/pg_language.h"
31+
#include"catalog/pg_listener.h"
3732
#include"catalog/pg_opclass.h"
3833
#include"catalog/pg_operator.h"
3934
#include"catalog/pg_proc.h"
40-
#include"catalog/pg_type.h"
4135
#include"catalog/pg_rewrite.h"
42-
#include"catalog/pg_aggregate.h"
4336
#include"catalog/pg_shadow.h"
44-
#include"catalog/pg_listener.h"
37+
#include"catalog/pg_type.h"
38+
#include"utils/catcache.h"
4539

4640
externboolAMI_OVERRIDE;/* XXX style */
4741

‎src/backend/utils/cache/temprel.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/utils/cache/Attic/temprel.c,v 1.8 1999/07/15 22:40:04 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.9 1999/07/16 05:23:21 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -26,10 +26,10 @@
2626
#include<string.h>
2727

2828
#include"postgres.h"
29-
#include"utils/temprel.h"
3029
#include"access/heapam.h"
3130
#include"catalog/heap.h"
3231
#include"catalog/index.h"
32+
#include"utils/temprel.h"
3333

3434
GlobalMemoryCacheCxt;
3535

‎src/backend/utils/error/elog.c

Lines changed: 3 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/utils/error/elog.c,v 1.45 1999/05/25 16:12:24 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.46 1999/07/16 05:23:22 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -24,14 +24,14 @@
2424
#include<unistd.h>
2525
#include<signal.h>
2626

27+
#include"postgres.h"
2728
#ifdefUSE_SYSLOG
2829
#include<syslog.h>
2930
#endif
3031

31-
#include"postgres.h"
32-
#include"miscadmin.h"
3332
#include"libpq/libpq.h"
3433
#include"libpq/pqformat.h"
34+
#include"miscadmin.h"
3535
#include"storage/proc.h"
3636
#include"tcop/tcopprot.h"
3737
#include"utils/trace.h"

‎src/backend/utils/error/exc.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/utils/error/Attic/exc.c,v 1.26 1999/07/1603:14:22 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.27 1999/07/1605:23:22 momjian Exp $
1111
*
1212
* NOTE
1313
* XXX this code needs improvement--check for state violations and
@@ -21,8 +21,8 @@
2121

2222
#include"postgres.h"
2323

24-
#include"utils/exc.h"
2524
#include"storage/ipc.h"
25+
#include"utils/exc.h"
2626

2727
staticvoidExcUnCaught(Exception*excP,ExcDetaildetail,ExcDatadata,
2828
ExcMessagemessage);

‎src/backend/utils/fmgr/dfmgr.c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.28 1999/07/15 22:40:06 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.29 1999/07/16 05:23:23 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -18,17 +18,12 @@
1818

1919
#include"postgres.h"
2020

21-
#include"utils/builtins.h"
2221
#include"access/heapam.h"
23-
24-
#include"dynloader.h"
25-
26-
#ifdef__ultrix
27-
#endif
28-
2922
#include"catalog/catname.h"
30-
#include"utils/syscache.h"
3123
#include"catalog/pg_proc.h"
24+
#include"dynloader.h"
25+
#include"utils/builtins.h"
26+
#include"utils/syscache.h"
3227

3328
staticDynamicFileList*file_list= (DynamicFileList*)NULL;
3429
staticDynamicFileList*file_tail= (DynamicFileList*)NULL;

‎src/backend/utils/fmgr/fmgr.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.30 1999/07/15 22:40:07 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.31 1999/07/16 05:23:23 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -17,16 +17,12 @@
1717

1818
#include"postgres.h"
1919

20-
/* these 2 files are generated by Gen_fmgrtab.sh; contain the declarations */
21-
#include"utils/fmgrtab.h"
22-
23-
#include"catalog/pg_proc.h"
2420
#include"catalog/pg_language.h"
25-
#include"utils/syscache.h"
26-
27-
#include"utils/builtins.h"
28-
21+
#include"catalog/pg_proc.h"
2922
#include"commands/trigger.h"
23+
#include"utils/builtins.h"
24+
#include"utils/fmgrtab.h"
25+
#include"utils/syscache.h"
3026

3127

3228
/*

‎src/backend/utils/hash/dynahash.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.25 1999/07/1523:03:29 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.26 1999/07/16 05:23:24 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -45,8 +45,6 @@
4545
#include"postgres.h"
4646
#include"utils/dynahash.h"
4747
#include"utils/hsearch.h"
48-
#ifndefFRONTEND
49-
#endif/* !FRONTEND */
5048
#include"utils/memutils.h"
5149

5250
/*

‎src/backend/utils/init/globals.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.34 1999/07/1603:14:25 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.35 1999/07/1605:23:25 momjian Exp $
1111
*
1212
* NOTES
1313
* Globals used all over the place should be declared here and not
@@ -24,12 +24,12 @@
2424
#include<unistd.h>
2525

2626
#include"postgres.h"
27-
#include"miscadmin.h"
2827

28+
#include"catalog/catname.h"
29+
#include"libpq/pqcomm.h"
30+
#include"miscadmin.h"
2931
#include"storage/backendid.h"
3032
#include"storage/lmgr.h"
31-
#include"libpq/pqcomm.h"
32-
#include"catalog/catname.h"
3333

3434
ProtocolVersionFrontendProtocol=PG_PROTOCOL_LATEST;
3535

‎src/backend/utils/init/miscinit.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/utils/init/miscinit.c,v 1.32 1999/07/1603:14:26 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.33 1999/07/1605:23:26 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -24,10 +24,10 @@
2424
#include"postgres.h"
2525

2626

27-
#include"miscadmin.h"
2827

2928
#include"catalog/catname.h"
3029
#include"catalog/pg_shadow.h"
30+
#include"miscadmin.h"
3131
#include"utils/syscache.h"
3232

3333

‎src/backend/utils/init/postinit.c

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.44 1999/07/1603:14:26 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.45 1999/07/1605:23:26 momjian Exp $
1111
*
1212
* NOTES
1313
*InitPostgres() is the function called from PostgresMain
@@ -35,28 +35,21 @@
3535
#include<unistd.h>
3636

3737
#include"postgres.h"
38-
#include"version.h"
39-
40-
#include"storage/backendid.h"
41-
#include"storage/smgr.h"
42-
#include"storage/proc.h"
43-
#include"utils/relcache.h"
4438

4539
#include"access/heapam.h"
46-
#include"utils/syscache.h"
40+
#include"catalog/catname.h"
41+
#include"libpq/libpq.h"
42+
#include"miscadmin.h"
43+
#include"storage/backendid.h"
4744
#include"storage/bufpage.h"
45+
#include"storage/proc.h"
4846
#include"storage/sinval.h"
49-
50-
#include"miscadmin.h"
51-
#include"utils/portal.h"
52-
47+
#include"storage/smgr.h"
5348
#include"utils/inval.h"
54-
55-
#include"catalog/catname.h"
56-
#ifdefMULTIBYTE
57-
#endif
58-
59-
#include"libpq/libpq.h"
49+
#include"utils/portal.h"
50+
#include"utils/relcache.h"
51+
#include"utils/syscache.h"
52+
#include"version.h"
6053

6154
staticvoidVerifySystemDatabase(void);
6255
staticvoidVerifyMyDatabase(void);

‎src/backend/utils/misc/database.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/misc/Attic/database.c,v 1.26 1999/07/15 22:40:11 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/misc/Attic/database.c,v 1.27 1999/07/16 05:23:26 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -25,6 +25,7 @@
2525
#include"utils/syscache.h"
2626

2727
#ifdefMULTIBYTE
28+
#include"mb/pg_wchar.h"
2829
#endif
2930

3031
#ifdefNOT_USED

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp