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

Commit9371325

Browse files
committed
Remove a bunch more no-longer-used stuff in libpq-be.h.
1 parent26e34c9 commit9371325

File tree

2 files changed

+9
-80
lines changed

2 files changed

+9
-80
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.260 2001/11/11 02:09:05 tgl Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.261 2001/11/12 05:43:24 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -1305,7 +1305,6 @@ ConnCreate(int serverFd)
13051305
* using the same salt...
13061306
*/
13071307
RandomSalt(port->cryptSalt,port->md5Salt);
1308-
port->pktInfo.state=Idle;
13091308
}
13101309

13111310
returnport;

‎src/include/libpq/libpq-be.h

Lines changed: 8 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
/*-------------------------------------------------------------------------
22
*
33
* libpq_be.h
4-
* This file contains definitions for structures and
5-
* externs for functions used by the POSTGRES backend.
4+
* This file contains definitions for structures and externs used
5+
* by the postmaster during client authentication.
6+
*
7+
* Note that this is backend-internal and is NOT exported to clients.
8+
* Structs that need to be client-visible are in pqcomm.h.
69
*
710
*
811
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
912
* Portions Copyright (c) 1994, Regents of the University of California
1013
*
11-
* $Id: libpq-be.h,v 1.26 2001/11/1204:19:15 tgl Exp $
14+
* $Id: libpq-be.h,v 1.27 2001/11/1205:43:25 tgl Exp $
1215
*
1316
*-------------------------------------------------------------------------
1417
*/
@@ -35,78 +38,6 @@ typedef struct PasswordPacketV0
3538
}PasswordPacketV0;
3639

3740

38-
/*
39-
* Password packet. The length of the password can be changed without
40-
* affecting anything.
41-
*/
42-
43-
typedefstructPasswordPacket
44-
{
45-
charpasswd[100];/* The password. */
46-
}PasswordPacket;
47-
48-
49-
/* Error message packet. */
50-
51-
typedefstructErrorMessagePacket
52-
{
53-
chardata[1+100];/* 'E' + the message. */
54-
}ErrorMessagePacket;
55-
56-
57-
/* Authentication request packet. */
58-
59-
typedefstructAuthRequestPacket
60-
{
61-
chardata[1+sizeof(AuthRequest)+4];/* 'R' + the request +
62-
* optional salt. */
63-
}AuthRequestPacket;
64-
65-
66-
/* These are used by the packet handling routines. */
67-
68-
typedefenum
69-
{
70-
Idle,
71-
ReadingPacketLength,
72-
ReadingPacket,
73-
WritingPacket
74-
}PacketState;
75-
76-
typedefint (*PacketDoneProc) (void*arg,PacketLenpktlen,void*pktdata);
77-
78-
typedefstructPacket
79-
{
80-
PacketStatestate;/* What's in progress. */
81-
PacketLenlen;/* Actual length */
82-
intnrtodo;/* Bytes still to transfer */
83-
char*ptr;/* Buffer pointer */
84-
PacketDoneProciodone;/* I/O complete callback */
85-
void*arg;/* Argument to callback */
86-
87-
/*
88-
* We declare the data buffer as a union of the allowed packet types,
89-
* mainly to ensure that enough space is allocated for the largest
90-
* one.
91-
*/
92-
93-
union
94-
{
95-
/* These are outgoing so have no packet length prepended. */
96-
97-
ErrorMessagePacketem;
98-
AuthRequestPacketar;
99-
100-
/* These are incoming and have a packet length prepended. */
101-
102-
StartupPacketsi;
103-
CancelRequestPacketcanc;
104-
PasswordPacketV0pwv0;
105-
PasswordPacketpw;
106-
}pkt;
107-
}Packet;
108-
109-
11041
/*
11142
* This is used by the postmaster in its communication with frontends.It is
11243
* contains all state information needed during this communication before the
@@ -116,9 +47,8 @@ typedef struct Packet
11647
typedefstructPort
11748
{
11849
intsock;/* File descriptor */
119-
PacketpktInfo;/* For the packet handlers */
120-
SockAddrladdr;/* local addr (us) */
121-
SockAddrraddr;/* remote addr (them) */
50+
SockAddrladdr;/* local addr (postmaster) */
51+
SockAddrraddr;/* remote addr (client) */
12252
charmd5Salt[4];/* Password salt */
12353
charcryptSalt[2];/* Password salt */
12454

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp