| От | Tom Lane |
|---|---|
| Тема | Re: ...ADD CONSTRAINT "$1"... ? |
| Дата | |
| Msg-id | 19489.1126379421@sss.pgh.pa.us обсуждение |
| Ответ на | ...ADD CONSTRAINT "$1"... ? (<kynn@panix.com>) |
| Список | pgsql-novice |
<kynn@panix.com> writes:
> In the output I get from pg_dump I see many instances of expressions
> like
> ...ADD CONSTRAINT "$1"...
> What does the "$1" mean?
It's just a constraint name (assigned by an older version of Postgres
apparently --- I don't think current releases generate names like that
anymore).
> I want to add more constraints "by hand" to the dump file. I imagine
> that the constraint would include the fragment
> ...ADD CONSTRAINT "$2"...
> ...or "$3", "$4", whatever, but I want to understand what I'm doing.
Use whatever name you want as long as it's not already used for another
constraint on the same table.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера