That'd likely be useful. Either specify the column names with COPY or \copy, or put them in the data file and pass an option to the command to look for them. The only time this could be a problem is if you forget to tell COPY to look for the field names in the file (AND specify the field names to COPY), and the values for the field names are such that they don't cause data errors (probably pretty slim chance).
I'd also really like to see the ability to specify default values for fields not included in the data file (field defaults in the table definition is limited and doesn't fill the order when you need to specify various foreign key ids, specific times, etc.). CSN >>>>>>>>>>>>>>>>>>> Someone just asked about a COPY capability to supply the column headings as the first line of the copy statement. Do we want to support something like that? Does anyone else want such functionality? __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend