postgresqlimdb
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| postgresqlimdb [2024/03/08 10:22] – z0hpvk | postgresqlimdb [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| The import of the data was based on the script here: [[https:// | The import of the data was based on the script here: [[https:// | ||
| - | Run the below script as the postgres | + | Run the below script as the postgres user to avoid permission issues.\\ |
| <code BASH> | <code BASH> | ||
| - | printf " | + | printf " |
| rm -rf imdb-datasets/ | rm -rf imdb-datasets/ | ||
| - | |||
| - | printf " | ||
| mkdir imdb-datasets/ | mkdir imdb-datasets/ | ||
| - | printf "Downloading | + | printf "Download |
| cd imdb-datasets | cd imdb-datasets | ||
| curl -O https:// | curl -O https:// | ||
| Line 72: | Line 70: | ||
| ALTER TABLE name_basics ALTER knownfortitles TYPE text[] USING string_to_array(knownfortitles, | ALTER TABLE name_basics ALTER knownfortitles TYPE text[] USING string_to_array(knownfortitles, | ||
| ALTER TABLE title_basics ALTER genres TYPE text[] USING string_to_array(genres, | ALTER TABLE title_basics ALTER genres TYPE text[] USING string_to_array(genres, | ||
| + | ALTER TABLE title_crew ALTER directors TYPE text[] USING string_to_array(directors, | ||
| + | ALTER TABLE title_crew ALTER writers TYPE text[] USING string_to_array(writers, | ||
| </ | </ | ||
postgresqlimdb.1709893355.txt.gz · Last modified: (external edit)
