Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-28487

Implement primary keys on hibernate_unique_key and cwd_application_address to facilitate transactional replication on SQL Server

    XMLWordPrintable

Details

    • 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.

    Description

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.

      Reference material:
      http://msdn.microsoft.com/en-us/library/ms151254.aspx

      Administrators who wish to implement transactional replication as part of their disaster recovery framework are blocked because 2 tables in confluence do not have primary keys.

      conf50od27=# \d hibernate_unique_key
      Table "public.hibernate_unique_key"
       Column  |  Type   | Modifiers 
      ---------+---------+-----------
       next_hi | integer | 
      
      conf50od27=# \d cwd_application_key
      Did not find any relation named "cwd_application_key".
      conf50od27=# \d cwd_application_address
                 Table "public.cwd_application_address"
              Column         |          Type          | Modifiers 
      -----------------------+------------------------+-----------
       application_id        | bigint                 | not null
       remote_address        | character varying(255) | not null
       remote_address_binary | character varying(255) | 
       remote_address_mask   | integer                | not null
      Foreign-key constraints:
          "fk_application_address" FOREIGN KEY (application_id) REFERENCES cwd_application(id)
      
      
      

      I'm not sure of any reason why these couldn't be added.

      Hibernate_unique_key shouldn't be nullable anyway, and it gets updated seldomly so the extra overhead of having it be primary shouldn't be a big deal. There's only ever 1 row in that table anyway.

      application_id in the cwd_application_address seems like a perfect primary key: integer based and not nullable already.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              twong Tim Wong (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: