/
Migrating from SQL Server to PostgreSQL

Migrating from SQL Server to PostgreSQL

Overview

The Ed-Fi Alliance does not plan to publish migration support from a SQL Server to a PostgreSQL database. If anyone needs to perform such a migration, please note that it should only be done from an ODS/API 3.3 database (Data Standard 3.2). Trying to migrate from an older SQL Server to PostgreSQL would be error prone because of the data standard change.

Most table and column names are identical, but the mapping exercise using an ETL tool will require some manual work because of the long name problem: some SQL Server tables in the ODS have more than the allowed 63 characters in PostgreSQL. The following sections describe the differences in schema for each of the three databases.

EdFi_Admin

Tables

There are no differences in table names.

Columns

There is one difference in column names:

TableSQL ServerPostgreSQL
​ApiClientApplicationEducationOrganizationsApplicationEducationOrganization_ApplicationEducationOrganizationIdapplicationedorg_applicationedorgid

EdFi_ODS

Tables

SQL ServerPostgreSQL
StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCodestaffdisciplineincidentassociationdisciplineincidentpart_7fa4be
StudentEducationOrganizationAssociationProgramParticipationProgramCharacteristicstudenteducationorganizationassociationprogramparticipat_810575
StudentEducationOrganizationAssociationStudentCharacteristicPeriodstudenteducationorganizationassociationstudentcharacteri_a18fcf
StudentEducationOrganizationAssociationStudentIdentificationCodestudenteducationorganizationassociationstudentidentifica_c15030
StudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessmentstudentlanguageinstructionprogramassociationenglishlangu_1ac620
StudentLanguageInstructionProgramAssociationLanguageInstructionProgramServicestudentlanguageinstructionprogramassociationlanguageinst_268e07
StudentMigrantEducationProgramAssociationMigrantEducationProgramServicestudentmigranteducationprogramassociationmigranteducatio_d9dcd7
StudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramServicestudentneglectedordelinquentprogramassociationneglectedo_520251
StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramServicestudentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb
StudentSpecialEducationProgramAssociationSpecialEducationProgramServicestudentspecialeducationprogramassociationspecialeducatio_a51ff9
StudentSpecialEducationProgramAssociationSpecialEducationProgramServiceProviderstudentspecialeducationprogramassociationspecialeducatio_bcba5c

Columns

There are no column name differences.

EdFi_Security

No differences.

Related content

Converting to PostgreSQL: Analysis
Converting to PostgreSQL: Analysis
More like this
Roadrunner Alpha 1
Roadrunner Alpha 1
More like this
How To: Upgrade an ODS Database from Version 2.x to Version 3.1
How To: Upgrade an ODS Database from Version 2.x to Version 3.1
More like this