I'm trying to load the current_user and current timestamp (as an audit)
in a set of data using the COPY FROM... statement.
I cannot get the session_user, current_user or user to give me anything
but the text itself...I even tried the obsolete getpgusername() and
thats exactly what it entered!
To get the current_timestamp, I had to use the now() function.
The declaration for the fields is:
updateUserId text DEFAULT current_user,
updateTimestamp timestamp DEFAULT current_timestamp,
Am I doing something wrong?
Thanks in advance,
pgsql-novice by date
|Next:||From: Josh Berkus||Date: 2001-10-09 15:56:25|
|Subject: Re: JDBC ResultSet|
|Previous:||From: Herb Blacker||Date: 2001-10-09 15:09:21|
|Subject: Loading current_user and current_timestamp using COPY|