Skip to content

Examples: further postgres setup? #49

@vdice

Description

@vdice

I needed a few more postgres setup commands (edit: on Mac via homebrew-installed postgres) before I could successfully run the postgres examples and wanted to check in to see if I have them right.

I followed the README in each postgres example but hit the following errors in short order (here is the postgres server output):

2024-11-26 14:24:06.819 MST [66187] FATAL:  role "postgres" does not exist
2024-11-26 14:24:06.821 MST [66188] FATAL:  role "postgres" does not exist
2024-11-26 14:33:41.690 MST [66324] FATAL:  role "postgres" is not permitted to log in
2024-11-26 14:33:41.691 MST [66325] FATAL:  role "postgres" is not permitted to log in
2024-11-26 14:36:25.222 MST [66435] ERROR:  permission denied for table articletest

I ran the following commands to get past these errors. Are these correct and should we add them (or similar) to the READMEs?

$ psql -d spin_dev -c 'CREATE ROLE postgres;'
CREATE ROLE

$ psql -d spin_dev -c 'ALTER ROLE "postgres" WITH LOGIN;'
ALTER ROLE

$ psql -d spin_dev -c 'GRANT ALL ON articletest TO postgres;'
GRANT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions