parent
0f565c0743
commit
bc279c92f0
|
@ -574,7 +574,7 @@ StartReplication(StartReplicationCmd *cmd)
|
||||||
* to find the requested WAL segment in pg_xlog.
|
* to find the requested WAL segment in pg_xlog.
|
||||||
*
|
*
|
||||||
* XXX: we could be more strict here and only allow a startpoint
|
* XXX: we could be more strict here and only allow a startpoint
|
||||||
* that's older than the switchpoint, if it it's still in the same
|
* that's older than the switchpoint, if it's still in the same
|
||||||
* WAL segment.
|
* WAL segment.
|
||||||
*/
|
*/
|
||||||
if (!XLogRecPtrIsInvalid(switchpoint) &&
|
if (!XLogRecPtrIsInvalid(switchpoint) &&
|
||||||
|
|
|
@ -753,7 +753,7 @@ ReadEndOfStreamingResult(PGresult *res, XLogRecPtr *startpos, uint32 *timeline)
|
||||||
* initiating streaming with the START_STREAMING command.
|
* initiating streaming with the START_STREAMING command.
|
||||||
*
|
*
|
||||||
* If the COPY ends (not necessarily successfully) due a message from the
|
* If the COPY ends (not necessarily successfully) due a message from the
|
||||||
* server, returns a PGresult and sets sets *stoppos to the last byte written.
|
* server, returns a PGresult and sets *stoppos to the last byte written.
|
||||||
* On any other sort of error, returns NULL.
|
* On any other sort of error, returns NULL.
|
||||||
*/
|
*/
|
||||||
static PGresult *
|
static PGresult *
|
||||||
|
|
|
@ -419,7 +419,7 @@ dttofmtasc_replace(timestamp * ts, date dDate, int dow, struct tm * tm,
|
||||||
replace_val.str_val = months[tm->tm_mon];
|
replace_val.str_val = months[tm->tm_mon];
|
||||||
replace_type = PGTYPES_TYPE_STRING_CONSTANT;
|
replace_type = PGTYPES_TYPE_STRING_CONSTANT;
|
||||||
break;
|
break;
|
||||||
/* the full name name of the month */
|
/* the full name of the month */
|
||||||
/* XXX should be locale aware */
|
/* XXX should be locale aware */
|
||||||
case 'B':
|
case 'B':
|
||||||
replace_val.str_val = pgtypes_date_months[tm->tm_mon];
|
replace_val.str_val = pgtypes_date_months[tm->tm_mon];
|
||||||
|
|
Loading…
Reference in New Issue