1. Sign up for a Neon Cloud account
Start by signing up for a free Neon Cloud account, which will grant you access to PostgreSQL services. To create your account, visit Neon Cloud Account.2. Create your first Neon project
Navigate to the Neon Console and select “Create a project.” Assign a name and region to your first Neon PostgreSQL project. You will be presented with connection details for your Neon project, so be sure to save them for later use when connecting to your PostgreSQL server.3. Connect to the Neon PostgreSQL server
You can connect to Neon through the SQL Editor in Neon, psql, or from other clients or applications. For more information about Neon, please refer to the official documentation of Neon.4. Configure Neon for CDC
- Ensure that
wal_levelislogical. Check by using the following statement.
replica. For CDC, you will need to set it to logical through the SQL Editor in Neon, psql, or from other clients. The following command will change the wal_level.
- Assign
REPLICATION,LOGIN,andCREATEDBrole attributes to the user. For an existing user, run the following statement to assign the attributes:ALTER USER <username> REPLICATION LOGIN CREATEDB;For a new user, run the following statement to create the user and assign the attributes:CREATE USER <username> REPLICATION LOGIN CREATEDB;You can check your role attributes by using the\dupsql command:
- Grant required privileges to the user. Run the following statements to grant the required privileges to the user.
5. Ingest CDC data from Neon into RisingWave
The following example creates a table in RisingWave that reads CDC data from thecustomer table in Neon. The customer table is in the public schema within the dev database. When connecting to a specific table in Neon, use the CREATE TABLE command.
orders table in Neon with a public schema within the dev database.