# postgres skip table from restore

Restore done in 3 steps:

1. Generate task list

   ```
   pg_restore -l dump-path/ > task
   ```
2. Edit the generated `task file` and remove the step that we wanted to ignore. Example, if we want to skip the restoring `sometable`, we remove this line from the file.

   ```
   4749; 0 106924 TABLE DATA public sometable someuser
   ```
3. Restore using the task file

   ```
   pg_restore -d somedatabase -L ./task dump-path/
   ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://til.yulrizka.com/db/postgres-skip-table-from-restore.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
