mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
ALTER LANGUAGE RENAME has never worked. Per Sergey Yatskevich.
This commit is contained in:
parent
73f5c9d90e
commit
db58ee5be9
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/commands/proclang.c,v 1.56 2004/12/31 21:59:41 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/commands/proclang.c,v 1.57 2005/02/14 06:17:44 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -246,7 +246,7 @@ RenameLanguage(const char *oldname, const char *newname)
|
|||||||
HeapTuple tup;
|
HeapTuple tup;
|
||||||
Relation rel;
|
Relation rel;
|
||||||
|
|
||||||
rel = heap_openr(ShadowRelationName, RowExclusiveLock);
|
rel = heap_openr(LanguageRelationName, RowExclusiveLock);
|
||||||
|
|
||||||
tup = SearchSysCacheCopy(LANGNAME,
|
tup = SearchSysCacheCopy(LANGNAME,
|
||||||
CStringGetDatum(oldname),
|
CStringGetDatum(oldname),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user