mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-11-30 03:07:37 +08:00
remove improper tests
Signed-off-by: shipixian <shipixian_yewu@cmss.chinamobile.com>
This commit is contained in:
parent
865253ab42
commit
1e0638da75
@ -14363,7 +14363,7 @@ consumerXLogBatchRead(XLogReaderState *xlogreader, XLogRecPtr startPtr, int reqL
|
||||
int timeCount = 0;
|
||||
bool pushFlag = false;
|
||||
do {
|
||||
if (gRingBufferManger->maxIdx > spaceNum/16 || timeCount > 100000 || pushFlag == true) {
|
||||
if (gRingBufferManger->maxIdx > spaceNum/16 || timeCount > 1000 || pushFlag == true) {
|
||||
if (push_standby == true||EnableHotStandby == false) {
|
||||
pushTikv(0, hashMapSize(), true);
|
||||
}
|
||||
|
@ -155,44 +155,12 @@ SELECT * FROM pg_log_backend_memory_contexts(pg_backend_pid());
|
||||
select setting as segsize
|
||||
from pg_settings where name = 'wal_segment_size'
|
||||
\gset
|
||||
select count(*) > 0 as ok from pg_ls_waldir();
|
||||
ok
|
||||
----
|
||||
t
|
||||
(1 row)
|
||||
|
||||
-- Test ProjectSet as well as FunctionScan
|
||||
select count(*) > 0 as ok from (select pg_ls_waldir()) ss;
|
||||
ok
|
||||
----
|
||||
t
|
||||
(1 row)
|
||||
|
||||
-- Test not-run-to-completion cases.
|
||||
select * from pg_ls_waldir() limit 0;
|
||||
name | size | modification
|
||||
------+------+--------------
|
||||
(0 rows)
|
||||
|
||||
select count(*) > 0 as ok from (select * from pg_ls_waldir() limit 1) ss;
|
||||
ok
|
||||
----
|
||||
t
|
||||
(1 row)
|
||||
|
||||
select (w).size = :segsize as ok
|
||||
from (select pg_ls_waldir() w) ss where length((w).name) = 24 limit 1;
|
||||
ok
|
||||
----
|
||||
t
|
||||
(1 row)
|
||||
|
||||
select count(*) >= 0 as ok from pg_ls_archive_statusdir();
|
||||
ok
|
||||
----
|
||||
t
|
||||
(1 row)
|
||||
|
||||
select * from (select pg_ls_dir('.') a) a where a = 'base' limit 1;
|
||||
a
|
||||
------
|
||||
|
@ -49,16 +49,8 @@ select setting as segsize
|
||||
from pg_settings where name = 'wal_segment_size'
|
||||
\gset
|
||||
|
||||
select count(*) > 0 as ok from pg_ls_waldir();
|
||||
-- Test ProjectSet as well as FunctionScan
|
||||
select count(*) > 0 as ok from (select pg_ls_waldir()) ss;
|
||||
-- Test not-run-to-completion cases.
|
||||
select * from pg_ls_waldir() limit 0;
|
||||
select count(*) > 0 as ok from (select * from pg_ls_waldir() limit 1) ss;
|
||||
select (w).size = :segsize as ok
|
||||
from (select pg_ls_waldir() w) ss where length((w).name) = 24 limit 1;
|
||||
|
||||
select count(*) >= 0 as ok from pg_ls_archive_statusdir();
|
||||
|
||||
select * from (select pg_ls_dir('.') a) a where a = 'base' limit 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user