Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 72070

Data Definition Language; defining database structures but not their contents.

37 votes
Accepted

CREATE TABLE LIKE another table but with additional columns

You can use the syntax below; CREATE TABLE old_table_name ( id serial, my_data text, primary key (id) ); CREATE TABLE new_table_name ( like old_table_name including all, new_col1 integer, …
Sahap Asci's user avatar
  • 3,094
0 votes
Accepted

Does issuing DDL against a view in PostgreSQL take out the same locks as issuing DDL against...

Direct answers to your three questions would be; Yes it does. When you replace your view, the lock of view object will be AccessExclusiveLock. Yes, even the 'select' queries that uses that specific …
Sahap Asci's user avatar
  • 3,094