mirror of
https://github.com/postgres/postgres.git
synced 2025-08-12 15:23:02 +03:00
Re-run pgindent, fixing a problem where comment lines after a blank
comment line where output as too long, and update typedefs for /lib directory. Also fix case where identifiers were used as variable names in the backend, but as typedefs in ecpg (favor the backend for indenting). Backpatch to 8.1.X.
This commit is contained in:
contrib
dblink
intarray
pgbench
pgcrypto
tablefunc
tsearch2
src
backend
access
common
gist
hash
heap
index
nbtree
transam
bootstrap
catalog
aclchk.cdependency.cheap.cindex.cnamespace.cpg_aggregate.cpg_constraint.cpg_depend.cpg_proc.cpg_shdepend.c
commands
aggregatecmds.canalyze.casync.ccluster.ccomment.cconversioncmds.ccopy.cdbcommands.cexplain.cindexcmds.copclasscmds.cschemacmds.csequence.ctablecmds.ctrigger.ctypecmds.cuser.cvacuum.cvacuumlazy.cvariable.cview.c
executor
execAmi.cexecGrouping.cexecJunk.cexecMain.cexecQual.cexecTuples.cexecUtils.cfunctions.cnodeAgg.cnodeBitmapIndexscan.cnodeHash.cnodeHashjoin.cnodeIndexscan.cnodeMergejoin.cnodeNestloop.cnodeSubplan.cnodeUnique.cspi.c
libpq
main
nodes
optimizer
geqo
path
plan
prep
util
parser
analyze.ckeywords.cparse_clause.cparse_coerce.cparse_expr.cparse_func.cparse_oper.cparse_relation.cparse_target.c
port
postmaster
regex
rewrite
storage
buffer
file
ipc
lmgr
page
smgr
tcop
utils
adt
arrayfuncs.carrayutils.cdatetime.cformatting.cgeo_selfuncs.cnumeric.coid.cpg_lzcompress.cregexp.cri_triggers.cruleutils.cselfuncs.ctimestamp.cvarlena.c
cache
error
fmgr
hash
init
mb
conversion_procs
misc
mmgr
resowner
sort
time
bin
initdb
pg_ctl
pg_dump
psql
include
interfaces
ecpg
libpq
pl
port
test
examples
timezone
@@ -23,7 +23,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.122 2005/10/15 02:49:48 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.123 2005/11/22 18:17:33 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -566,8 +566,8 @@ pqReadData(PGconn *conn)
|
||||
|
||||
/*
|
||||
* If the buffer is fairly full, enlarge it. We need to be able to enlarge
|
||||
* the buffer in case a single message exceeds the initial buffer size.
|
||||
* We enlarge before filling the buffer entirely so as to avoid asking the
|
||||
* the buffer in case a single message exceeds the initial buffer size. We
|
||||
* enlarge before filling the buffer entirely so as to avoid asking the
|
||||
* kernel for a partial packet. The magic constant here should be large
|
||||
* enough for a TCP packet or Unix pipe bufferload. 8K is the usual pipe
|
||||
* buffer size, so...
|
||||
@@ -623,9 +623,9 @@ retry3:
|
||||
* buffer space. Without this, the block-and-restart behavior of
|
||||
* libpq's higher levels leads to O(N^2) performance on long messages.
|
||||
*
|
||||
* Since we left-justified the data above, conn->inEnd gives the amount
|
||||
* of data already read in the current message. We consider the
|
||||
* message "long" once we have acquired 32k ...
|
||||
* Since we left-justified the data above, conn->inEnd gives the
|
||||
* amount of data already read in the current message. We consider
|
||||
* the message "long" once we have acquired 32k ...
|
||||
*/
|
||||
if (conn->inEnd > 32768 &&
|
||||
(conn->inBufSize - conn->inEnd) >= 8192)
|
||||
@@ -648,10 +648,10 @@ retry3:
|
||||
* since in normal practice we should not be trying to read data unless
|
||||
* the file selected for reading already.
|
||||
*
|
||||
* In SSL mode it's even worse: SSL_read() could say WANT_READ and then data
|
||||
* could arrive before we make the pqReadReady() test. So we must play
|
||||
* dumb and assume there is more data, relying on the SSL layer to detect
|
||||
* true EOF.
|
||||
* In SSL mode it's even worse: SSL_read() could say WANT_READ and then
|
||||
* data could arrive before we make the pqReadReady() test. So we must
|
||||
* play dumb and assume there is more data, relying on the SSL layer to
|
||||
* detect true EOF.
|
||||
*/
|
||||
|
||||
#ifdef USE_SSL
|
||||
|
Reference in New Issue
Block a user