I have the statement create table if not exists
so that my code does not try to create the table over and over. I would like to print a message of "Table already created" if the table already exists but I don't know how to access the "notice" spoken of in the documentation so I can use it in a conditional statement.
From documentation:
IF NOT EXISTS
Do not throw an error if a relation with the same name already exists. A notice is issued in this case. Note that there is no guarantee that the existing relation is anything like the one that would have been created.