lt_initdb

lt_initdb — initdb package, create a new LightDB database cluster

Synopsis

lt_initdb -p port [option...] [ --pgdata | -D ] directory

Description

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 first parameter must be a port number, and the later 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