Skip to content

PostgreSQL support for SNPRC modules#888

Merged
labkey-adam merged 18 commits intodevelopfrom
fb_pg_support
Feb 18, 2026
Merged

PostgreSQL support for SNPRC modules#888
labkey-adam merged 18 commits intodevelopfrom
fb_pg_support

Conversation

@labkey-adam
Copy link
Contributor

@labkey-adam labkey-adam commented Feb 11, 2026

Rationale

We want the SNPRC modules to run on PostgreSQL. https://github.com/LabKey/kanban/issues/1577

This adds preliminary support for PostgreSQL. Most SNPRC modules won't run until SND is converted, so key modules have not even been loaded or run. And there are several issues with snprc_ehr-0.000-25.000.sql that need to be addressed or at least reviewed.

Also, delete stupid webpart

Copy link
Contributor

@labkey-jeckels labkey-jeckels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spot checked a few of the tables and all looked OK.

Copy link
Contributor

@labkey-martyp labkey-martyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few things to check out.

RETURN 0;
END IF;

trimmed_value := TRIM(value);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sql server version also removes internal whitespace. Maybe this should be TRIM(REPLACE(value, ' ', ''))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Comment on lines 19 to 21
CreatedBy INTEGER NOT NULL,
Modified TIMESTAMP NOT NULL,
ModifiedBy INTEGER NOT NULL,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

USERID for createdBy and modifiedBy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@@ -0,0 +1 @@
DROP VIEW IF EXISTS HL7_GroupNTE;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DROP VIEW IF EXISTS snprc_ehr.HL7_GroupNTE;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@labkey-adam labkey-adam merged commit 77ef092 into develop Feb 18, 2026
7 checks passed
@labkey-adam labkey-adam deleted the fb_pg_support branch February 18, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants