Closed zipperer closed 5 months ago
As I note in this comment, we will choose for the columns types more specific than varchar
.
During this meeting, we noticed that some of the columns in the mailing_list table are not varchar. So, we will: determine the type for each column edit the CREATE TABLE statement from
CREATE TABLE mailing_list ( column1 VARCHAR, ... columnN VARCHAR );
to a statement with improved types.
To go from all varchar to improved types may take a few steps and involve encountering errors when values do not match the type we propose for a column.
See also #14 .
During #3 , we edited the structure of table mailing_list
.
psql> DELETE FROM mailing_list;
psql> DROP TABLE mailing_list;
psql> CREATE TABLE mailing_list (
add_date DATE,
listenerid VARCHAR,
...
modification_date DATE,
...
);
psql> \copy mailing_list ...
Before deleting from the table and dropping the table, we tried to edit-in-place the datatype for column add_date
. It did not work.
We have imported sample data. We will import full data after we pick a machine to host the production postgres cluster.
For the table in Lotus Approach that holds the mailing list, we will:
Further, we will
PRIMARY KEY
. See #6 .mailing_list
and its new column that will serve as thePRIMARY KEY
to replace values forlistenerid
in other tables. See #6