Library Version 12.1.6.0

Db::get_pagesize()
Prev | Chapter 2. The Db Handle | Next

## Db::get_pagesize()

    #include <db_cxx.h>

    int
    Db::get_pagesize(u_int32_t *pagesizep);

The `Db::get_pagesize()` method returns the database's current page size, as set by the Db::set_pagesize() method. Note that if `Db::set_pagesize()` was not called by your application, then the default pagesize is selected based on the underlying filesystem I/O block size. If you call `Db::get_pagesize()` before you have opened the database, the value returned by this method is therefore the underlying filesystem I/O block size.

The `Db::get_pagesize()` method may be called only after the database has been opened.

The `Db::get_pagesize()` method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

### Parameters

#### pagesizep

The `Db::get_pagesize()` method returns the page size in pagesizep.

### Class

Db

### See Also

Database and Related Methods, Db::set_pagesize()

Prev | Up | Next
Db::get_partition_keys() | Home | Db::get_priority()