Branch: Tag:

2008-07-26

2008-07-26 08:04:32 by Stephen R. van den Berg <srb@cuci.nl>

PGsql tuned buffer size to minimal

Rev: lib/modules/Sql.pmod/pgsql.pike:1.9
Rev: src/modules/_PGsql/PGsql.cmod:1.8

91:    // may be tuned by the application   private int timeout=4096; // Queries running longer than this number of    // seconds are canceled automatically - private int portalbuffersize=64*1024; // Approximate buffer per portal + private int portalbuffersize=32*1024; // Approximate buffer per portal   private int reconnected; // Number of times the connection was reset   #ifndef USEPGsql   private int flushed;
1186:    string portalname;    portalsinflight--;    if(_portal && (portalname=_portal->_portalname)) { -  int inflight=_portal->_inflight; +     _portal->_portalname = UNDEFINED;    _portal = UNDEFINED;   #ifdef DEBUGMORE
1194:   #endif    if(!sizeof(portalname))    unnamedportalinuse--; -  if(/*sizeof(portalname)||inflight*/ 1) { +     PD("Close portal %s\n",portalname);    SENDCMD(({"C",plugint32(4+1+sizeof(portalname)+1),    "P",portalname,"\0"}),1);    _closesent=1;    }   } - } +       final private string trbackendst(int c) {    switch(c) {