# getRedoLogGCStat {#getredologgcstat}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`getRedoLogGCStat()`

## Arguments {#arguments}

None

## Details {#details}

Get the status of garbage collection of the redo log. Return a table containing the following columns:

-   physicalName: physical name of the table in the format of */&lt;databaseName&gt;/&lt;physicalName&gt;*.

-   txnCount: the number of transactions that have not been garbage-collected.

-   numOfTxnPendingGC: the number of transactions that can be garbage-collected.

-   minTidPendingGC: the minimum tid \(transaction ID\) of the transactions that can be garbage-collected.

-   numOfTxnPendingFlush: the number of transactions that can be flushed to disk from the cache engine.

-   minTidPendingFlush: the minimum tid of the transactions that can be flushed to disk from the cache engine.


## Examples {#examples}

```
getRedoLogGCStat()
```

|physicalName|txnCount|numOfTxnPendingGC|minTidPendingGC|numOfTxnPendingFlush|minTidPendingFlush|
|------------|--------|-----------------|---------------|--------------------|------------------|
|/test/pt\_2|2|0||2|1031|
|/listdb/pt\_2|1|1|1033|0||

