Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9069435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:25:39+00:00 2026-06-16T17:25:39+00:00

Background Hundreds of database objects (views, packages, stored procedures, etc.) in a system have

  • 0

Background

Hundreds of database objects (views, packages, stored procedures, etc.) in a system have no formatting and no source code comments. We’d like to:

  1. Automatically reformat the code (using the General SQL Parser).
  2. Automatically copy a standard comment header into each object’s source file.

Problem

We cannot push such sweeping changes into production without being tested.

Question

How would you verify that the reformatted source code is functionally identical to the un-formatted code?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T17:25:41+00:00Added an answer on June 16, 2026 at 5:25 pm

    Easy:

    1. Run the unformatted code against a fresh new database
    2. Run the formatted code against a fresh new database
    3. Do a full export of both and compare the two files

    They should be identical.

    The reason they should be identical is that postgres parses the SQL into its standard, canonical form, so even adding unnecessary brackets for example should result in the same internal version of the code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I have a big solution where hundreds of functions take strongly typed collections
Background : I'm trying to convert some JavaScript code which uses the the Crossfilter
Background: I would like to dismiss a modalView that I have presented earlier and
Background I'm prototyping a conversion from our RDBMS database to MongoDB. While denormalizing, it
Some background: I have what I would consider a medium-sized GWT app deployed to
I don't have any background in programming and this is my first shot. I
I have the code below that makes a list of div's drag and droppable,
I'm trying to convert hundreds of images that Have an unknown subject centered in
I have a web form that is built dynamically with dozens/hundreds of form element
My app has a background thread that periodically retrieves data from an external source,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.