Anja Klein wrote: > how can i tell postgres. that it should only create the sample table, > when the original table to be created has the name "origin" or > something like that? or that it should only act, if some user wants > to create the table, not postgres itself?
You would presumably do a strcmp() on the name of the table to be created before you jump into your new code that creates the sample table. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster