PostgreSQL query with function gen_random_uuid() not working on Windows
I have the following query for creating a table, CREATE TABLE IF NOT EXISTS company ( id uuid CONSTRAINT companyid PRIMARY KEY DEFAULT gen_random_uuid(), name varchar(128) NOT NULL, db_uri varchar(255) NOT NULL, c_uri varchar(255) NOT NULL, date_c timestamp DEFAULT now(), date_m timestamp DEFAULT now() ) WITH (fillfactor=90); I am getting the following error when I run it through pgAdminIII. ERROR: function gen_random_uuid() does not exist HINT: No function matches the given name and argument types. You might need to add explicit type casts. ********** Error ********** ERROR: function gen_rand
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.