0
I’m having a problem creating a view
CREATE MATERIALIZED VIEW table_name
You’re making this mistake:
ERROR: syntax error at or near "MATERIALIZED" LINE 1: CREATE MATERIALIZED VIEW sige.view_geral_lote AS ******** Error
ERROR: syntax error at or near "MATERIALIZED" SQL state: 42601 Character: 8
when I try to create this view but do not know the reason for the error, could help me ?
Olá Gabriel, "but I don’t know the reason for the mistake" we also do not, what error message? can put the full sql code that is running to help understand the error?
– Ricardo Pontual
Sorry for the lack of information , below is the error you are giving ERROR: syntax error at or near "MATERIALIZED" LINE 1: CREATE MATERIALIZED VIEW sige.view_geral_lote AS *********************** ERROR: syntax error at or near "MATERIALIZED" SQL state: 42601 Character: 8
– Gabriel Silva
Gabriel, you can add the message in the question, it is better to analyze. Click on the link "edit" or here and add the message there
– Ricardo Pontual
ah, put the full command too, is giving error in the view body, in the select part probably
– Ricardo Pontual
What is the version of Postgresql? Remembering that the
CREATE MATERIALIZED VIEW
is only available after 9.3 https://www.postgresql.org/docs/9.3/static/sql-creatematerializedview.html– William John Adam Trindade