You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently upgraded from single server PostgreSQL 11 to flexible server PostgreSQL 15.4.
When using the explorer and navigating to the Views folder within a schema, right clicking on a view, and selecting Script as Create, an editor will open and list the correct name of the view with comments and a drop statement, but the contents of the view will always be of whatever the first view within the folder is.
E.g. the first view. alphabetically will present as correct:
-- View: public.a_view
-- DROP VIEW public.a_view;
CREATE OR REPLACE VIEW public.a_view AS
SELECT a.name,
a.description
FROM authr.a_table a
But the second will be a copy
-- View: public.b_view
-- DROP VIEW public.b_view;
CREATE OR REPLACE VIEW public.b_view AS
SELECT a.name,
a.description
FROM authr.a_table a
When it's actually defined as:
-- View: public.b_view
-- DROP VIEW public.b_view;
CREATE OR REPLACE VIEW public.b_view AS
SELECT b.definition,
b.environment
FROM authr.b_table b
Expected behavior would be that the appropriate view script would be generated in the editor.
Desktop (please complete the following information):
OS: Windows 11
ADS (please complete the following information):
ADS Version 1.47.0
ADS PostgresSQL extension version 0.6.0
PostgreSQL version 15.4
The text was updated successfully, but these errors were encountered:
Thank you, @samir-puranik! I wasn't sure if you were still waiting on the additional approval to you pull request. I can definitely tell you, my colleagues and I will be incredibly excited when this is fixed! Thank you for the support!
Any updates on this? I've seen some local fixes tossed around but trying to follow them I find that I don't have a lib folder in my pgsqltoolsservice folder so I don't really know where to go from there. Help is very welcome!
Recently upgraded from single server PostgreSQL 11 to flexible server PostgreSQL 15.4.
When using the explorer and navigating to the Views folder within a schema, right clicking on a view, and selecting Script as Create, an editor will open and list the correct name of the view with comments and a drop statement, but the contents of the view will always be of whatever the first view within the folder is.
E.g. the first view. alphabetically will present as correct:
But the second will be a copy
When it's actually defined as:
Expected behavior would be that the appropriate view script would be generated in the editor.
Desktop (please complete the following information):
ADS (please complete the following information):
The text was updated successfully, but these errors were encountered: