| От | Lee Harr |
|---|---|
| Тема | Re: Importing Database |
| Дата | |
| Msg-id | af8dmh$1c35$1@news.hub.org обсуждение исходный текст |
| Ответ на | Importing Database (acchung@mit.edu) |
| Список | pgsql-admin |
> When I type less 20020422_project_summaries.gz, I get the > text of the database of this file. So it seems that it's already unzipped > but has the .gz extension. how do I import this file > as a database into postgresql? I'm running cygwin and pgAdmin II > on a win2k computer. > I am no w2k or cygwin expert, but you could try: cd /dir/where/20020422_... exists psql create database my_new_db; \c my_new_db \i 20020422_project_summaries.gz This sort of assumes that file is from pg_dump and is not just a csv (or some other format) of plain data. If it is just data, you would need to create your table structure, then \copy or COPY the data in to the tables.
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера