lt_initdb — initdb package, create a new LightDB database cluster
lt_initdb
[option
...] [ --pgdata
| -D
] directory
lt_initdb
initdb package, creates a new
LightDB database cluster. A database
cluster is a collection of databases that are managed by a single
server instance.
The contents of "[OPTION]... [DATADIR]" is the same as initdb, you can view the initdb section.
It is recommended to use lt_initdb, otherwise some functions are unavailable.
If you are run initdb directly, you can using like:
$PGHOME/scripts/5_lightdb_modify_para.sh $PGHOME $PGDATA OLTP/OLAP shared_buffers(MB) effective_cache_size(MB) $PGPORT $PGHOME/scripts/6_lightdb_start.sh $PGHOME $PGDATA (if not started) $PGHOME/scripts/8_lightdb_create_extension.sh $PGHOME $PGPORT
The default wal segment size that lt_initdb used is 512MB, you can change it with the command line option --wal-segsize. For example, you can set it to 256MB using "lt_initdb -p 5432 -D data --wal-segsize=256".