Menu

#467 [PostgreSQL] Alter view case sensitivity problem

4.2.3
closed-fixed
nobody
PostgreSQL (42)
5
2018-01-30
2015-08-27
No

Alter view for PostgreSQL does not work if the name of view is in upper-case letters.

Example:

Trying to alter view with name VIEW_NAME leads to following error:
ERROR: relation "view_name" does not exist

If the name of view is lower-case letters alter view work ok.

Discussion

  • Jakub Vrána

    Jakub Vrána - 2017-02-20
    • status: open --> open-accepted
     
  • Jakub Vrána

    Jakub Vrána - 2017-02-20

    I was able to reproduce this. Adminer uses pg_get_viewdef(name) which is deprecated. It should probably use pg_get_viewdef(oid) but we would need to get the OID first.

    It's really a PostgreSQL bug (unlikely to be fixed as the function is deprecated). However, Adminer can get around it.

     
  • Jakub Vrána

    Jakub Vrána - 2018-01-30
    • summary: Alter view case sensitivity problem in postgresql --> [PostgreSQL] Alter view case sensitivity problem
     
  • Jakub Vrána

    Jakub Vrána - 2018-01-30
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB