Wrong minimum PostgreSQL Version? #3724

Closed
opened 2025-12-29 18:30:47 +01:00 by adam · 1 comment
Owner

Originally created by @rmuehl on GitHub (May 25, 2020).

Environment

  • Python version: 3.6
  • NetBox version: 2.8.3
  • OS: RHEL7
  • PostgreSQL 9.4.24

Steps to Reproduce

Install Docs says minimum version of postgresql is 9.4.
But when I try to add Users or Groups to a secret role, I get a server error (see below).

It seams, that "ON CONFLICT" is introduced in postgres 9.5.

server error:

<class 'django.db.utils.ProgrammingError'>
syntax error at or near "ON"
LINE 1: ...ups" ("secretrole_id", "group_id") VALUES (12, 1) ON CONFLIC...

pg_log:

ERROR: syntax error at or near "ON" at character 85
STATEMENT: INSERT INTO "secrets_secretrole_users" ("secretrole_id", "user_id") VALUES (11, 18) ON CONFLICT DO NOTHING

Originally created by @rmuehl on GitHub (May 25, 2020). ### Environment * Python version: 3.6 * NetBox version: 2.8.3 * OS: RHEL7 * PostgreSQL 9.4.24 ### Steps to Reproduce Install Docs says minimum version of postgresql is 9.4. But when I try to add Users or Groups to a secret role, I get a server error (see below). It seams, that "ON CONFLICT" is introduced in postgres 9.5. <!-- What happened instead? --> server error: > <class 'django.db.utils.ProgrammingError'> syntax error at or near "ON" LINE 1: ...ups" ("secretrole_id", "group_id") VALUES (12, 1) ON CONFLIC... pg_log: >ERROR: syntax error at or near "ON" at character 85 STATEMENT: INSERT INTO "secrets_secretrole_users" ("secretrole_id", "user_id") VALUES (11, 18) ON CONFLICT DO NOTHING
adam closed this issue 2025-12-29 18:30:47 +01:00
Author
Owner

@DanSheps commented on GitHub (May 25, 2020):

Duplicate of #4645

@DanSheps commented on GitHub (May 25, 2020): Duplicate of #4645
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3724