Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-25818

Fix Connect Bamboo to a PostgreSQL database documentation on Bamboo 9.1 and later versions

    • 0
    • 3
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Issue Summary

      This suggestion was created to fix our documentation related to Postgres database creation: Connect Bamboo to a PostgreSQL database.

      Description

      Starting Bamboo 9.1, Postgres 15 became supported by Bamboo as per Bamboo 9.1 - Supported platforms, but in Connect Bamboo to a PostgreSQL database documentation there's dedicated section to help users to create the database in case if Postgres 15 is being used.

      Suggestion

      Add to Connect Bamboo to a PostgreSQL database documentation some similar information that is present in Connecting Jira applications to PostgreSQL. For example:

      With PostgreSQL 15, there has been a change in the way table creation permissions are handled for users. PostgreSQL 15 revokes the CREATE permission from all users except a database owner from the public (or default) schema. According to the Postgres 15 documentation, you can fix it by creating a user-private schema for the Bamboo database user.

      However, you can also grant the permission to the public schema by running the following commands:

      1. Create the user that Bamboo will be using.
        CREATE USER bamboo WITH PASSWORD 'atlas';
      2. Create the database.
        CREATE DATABASE bamboo WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;
      3. Grant the necessary privileges to the database:
        GRANT ALL PRIVILEGES ON DATABASE bamboo TO atlas;
      4. Connect to the database.
        \c bamboo postgres
      5. Grant the required schema privileges:
        atlas=# GRANT ALL ON SCHEMA public TO atlas;

            [BAM-25818] Fix Connect Bamboo to a PostgreSQL database documentation on Bamboo 9.1 and later versions

            SET Analytics Bot made changes -
            Support reference count New: 3
            Shashank Kumar made changes -
            Labels New: doc-medium
            SET Analytics Bot made changes -
            UIS Original: 1 New: 0
            SET Analytics Bot made changes -
            UIS New: 1
            Karel Miranda made changes -
            Description Original: h3. Issue Summary

            This suggestion was created to fix our documentation related to Postgres database creation: [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html].
            h3. Description

            Starting Bamboo 9.1, Postgres 15 became supported by Bamboo as per [Bamboo 9.1 - Supported platforms|https://confluence.atlassian.com/bamboo0901/supported-platforms-1188401523.html], but in [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html] documentation there's dedicated section to help users to create the database in case if Postgres 15 is being used.
            h3. Suggestion

            Add to [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html] documentation some similar information that is present in [Connecting Jira applications to PostgreSQL|https://confluence.atlassian.com/adminjiraserver0904/connecting-jira-applications-to-postgresql-1188767592.html]. For example:
            {quote}With PostgreSQL 15, there has been a change in the way table creation permissions are handled for users. PostgreSQL 15 revokes the CREATE permission from all users except a database owner from the public (or default) schema. According to the [Postgres 15 documentation|https://www.postgresql.org/docs/15/ddl-schemas.html], you can fix it by creating a user-private schema for the Bamboo database user.

            However, you can also grant the permission to the public schema by running the following commands:
             # Create the user that Bamboo will be using.
            {code:sql}
            CREATE USER bamboo WITH PASSWORD 'atlas';{code}
             # Create the database.
            {code:sql}
            CREATE DATABASE bamboo WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;{code}
             # Grant the necessary privileges to the database{*}:{*}
            {code:sql}
            GRANT ALL PRIVILEGES ON DATABASE bamboo TO atlas;{code}
             # Connect to the database.
            {code:sql}
            bamboo postgres{code}
             # Grant the required schema privileges:
            {code:sql}
            atlas=# GRANT ALL ON SCHEMA public TO atlas;{code}
            {quote}
            New: h3. Issue Summary

            This suggestion was created to fix our documentation related to Postgres database creation: [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html].
            h3. Description

            Starting Bamboo 9.1, Postgres 15 became supported by Bamboo as per [Bamboo 9.1 - Supported platforms|https://confluence.atlassian.com/bamboo0901/supported-platforms-1188401523.html], but in [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html] documentation there's dedicated section to help users to create the database in case if Postgres 15 is being used.
            h3. Suggestion

            Add to [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html] documentation some similar information that is present in [Connecting Jira applications to PostgreSQL|https://confluence.atlassian.com/adminjiraserver0904/connecting-jira-applications-to-postgresql-1188767592.html]. For example:
            {quote}With PostgreSQL 15, there has been a change in the way table creation permissions are handled for users. PostgreSQL 15 revokes the CREATE permission from all users except a database owner from the public (or default) schema. According to the [Postgres 15 documentation|https://www.postgresql.org/docs/15/ddl-schemas.html], you can fix it by creating a user-private schema for the Bamboo database user.

            However, you can also grant the permission to the public schema by running the following commands:
             # Create the user that Bamboo will be using.
            {code:sql}
            CREATE USER bamboo WITH PASSWORD 'atlas';{code}
             # Create the database.
            {code:sql}
            CREATE DATABASE bamboo WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;{code}
             # Grant the necessary privileges to the database{*}:{*}
            {code:sql}
            GRANT ALL PRIVILEGES ON DATABASE bamboo TO atlas;{code}
             # Connect to the database.
            {code:sql}
            \c bamboo postgres{code}
             # Grant the required schema privileges:
            {code:sql}
            atlas=# GRANT ALL ON SCHEMA public TO atlas;{code}
            {quote}
            Karel Miranda made changes -
            Description Original: h3. Issue Summary

            This suggestion was created to fix our documentation related to Postgres database creation: [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html].
            h3. Description

            Starting Bamboo 9.1, Postgres 15 became supported by Bamboo as per [Bamboo 9.1 - Supported platforms|https://confluence.atlassian.com/bamboo0901/supported-platforms-1188401523.html], but in [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html] documentation there's dedicated section to help users to create the database in case if Postgres 15 is being used.
            h3. Suggestion

            Add to [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html] documentation some similar information that is present in [Connecting Jira applications to PostgreSQL|https://confluence.atlassian.com/adminjiraserver0904/connecting-jira-applications-to-postgresql-1188767592.html]. For example:
            {quote}With PostgreSQL 15, there has been a change in the way table creation permissions are handled for users. PostgreSQL 15 revokes the CREATE permission from all users except a database owner from the public (or default) schema. According to the [Postgres 15 documentation|https://www.postgresql.org/docs/15/ddl-schemas.html], you can fix it by creating a user-private schema for the Bamboo database user.

            However, you can also grant the permission to the public schema by running the following commands:
             # Create the user that Bamboo will be using.
            {code:sql}
            CREATE USER bamboo WITH PASSWORD 'atlas';{code}

             # Create the database.

            {code:sql}
            CREATE DATABASE bamboo WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;{code}
             # Grant the necessary privileges to the database{*}:{*}

            {code:sql}
            GRANT ALL PRIVILEGES ON DATABASE bamboo TO atlas;{code}
             # Connect to the database.

            {code:sql}
            atlas postgres{code}
             # Grant the required schema privileges:
              
            {code:sql}
            atlas=# GRANT ALL ON SCHEMA public TO atlas;{code}
            {quote}
            New: h3. Issue Summary

            This suggestion was created to fix our documentation related to Postgres database creation: [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html].
            h3. Description

            Starting Bamboo 9.1, Postgres 15 became supported by Bamboo as per [Bamboo 9.1 - Supported platforms|https://confluence.atlassian.com/bamboo0901/supported-platforms-1188401523.html], but in [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html] documentation there's dedicated section to help users to create the database in case if Postgres 15 is being used.
            h3. Suggestion

            Add to [Connect Bamboo to a PostgreSQL database|https://confluence.atlassian.com/bamboo0901/connect-bamboo-to-a-postgresql-database-1188402822.html] documentation some similar information that is present in [Connecting Jira applications to PostgreSQL|https://confluence.atlassian.com/adminjiraserver0904/connecting-jira-applications-to-postgresql-1188767592.html]. For example:
            {quote}With PostgreSQL 15, there has been a change in the way table creation permissions are handled for users. PostgreSQL 15 revokes the CREATE permission from all users except a database owner from the public (or default) schema. According to the [Postgres 15 documentation|https://www.postgresql.org/docs/15/ddl-schemas.html], you can fix it by creating a user-private schema for the Bamboo database user.

            However, you can also grant the permission to the public schema by running the following commands:
             # Create the user that Bamboo will be using.
            {code:sql}
            CREATE USER bamboo WITH PASSWORD 'atlas';{code}
             # Create the database.
            {code:sql}
            CREATE DATABASE bamboo WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;{code}
             # Grant the necessary privileges to the database{*}:{*}
            {code:sql}
            GRANT ALL PRIVILEGES ON DATABASE bamboo TO atlas;{code}
             # Connect to the database.
            {code:sql}
            bamboo postgres{code}
             # Grant the required schema privileges:
            {code:sql}
            atlas=# GRANT ALL ON SCHEMA public TO atlas;{code}
            {quote}
            Karel Miranda created issue -

              Unassigned Unassigned
              kmiranda Karel Miranda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: