nolly: (Default)
[personal profile] nolly
Any Postgres experts in the house?

I need to do CREATE TABLE ... (LIKE ...) or the equivalent, but I want the new table to have the permissions/priveleges (and, ideally, indexes) of the table it's modelled on. Any tips?

sneaky way

Date: 2006-02-15 08:11 pm (UTC)
From: [identity profile] tkil.livejournal.com
If it's not provided for in the DDL directly, you could always export the table definitions as DDL, change the names, and then execute that.

But I don't know PostgreSQL well enough to offer any further hints. :(

Profile

nolly: (Default)
nolly

December 2011

S M T W T F S
     123
45678910
11121314 151617
18192021 222324
25262728293031

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 27th, 2026 03:00 pm
Powered by Dreamwidth Studios