https://github.com/byceps/byceps
Tip revision: 2f307b8cbe1b3b51b8d28fe40a3aafd8e178b0af authored by Jochen Kupperschmidt on 16 February 2026, 03:05:23 UTC
Adjust test to new `hidden` argument to `page_service.update_page`
Adjust test to new `hidden` argument to `page_service.update_page`
Tip revision: 2f307b8
postgresql.rst
Prepare PostgreSQL
==================
There should already be a system user, likely ``postgres``.
Become root:
.. code-block:: console
$ su
<enter root password>
Switch to the ``postgres`` user:
.. code-block:: console
# su postgres
Create a database user named ``byceps``:
.. code-block:: console
postgres@host$ createuser --echo --pwprompt byceps
You should be prompted to enter a password. Do that.
In your :doc:`BYCEPS configuration file <byceps-config-file>`, replace
the example password in the value of :confval:`database.password` with
the one you just entered.
Create a schema, also named ``byceps``:
.. code-block:: console
postgres@host$ createdb --encoding=UTF8 --template=template0 --owner byceps byceps
To run the tests (optional), a dedicated user and database have to be
created:
.. code-block:: console
postgres@host$ createuser --echo --pwprompt byceps_test
postgres@host$ createdb --encoding=UTF8 --template=template0 --owner byceps_test byceps_test
Connect to the database:
.. code-block:: console
$ psql
