-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version 1.5.0 pg_repack the pg_repack command returns an ERROR: the request was not executed: ERROR: the tablespace ""XXXX"" does not exist #386
Comments
Can you quote the original commands and result? Without strange rephrasing of commands syntax. Well, |
Yes, I'm sorry, extra characters were added during auto-translation The problem seems to be in the new repack.create_table() function. There is an extra quote_ident(). postgres=# |
Indeed, there is call of Line 786 in 4c55e6e
I'd remove that call of As a temporary workaround you'd have to fix the |
I created a PR to fix the issue: #387. |
version 1.5.0 pg_repack the pg_repack command returns an ERROR: the request was not executed: ERROR: the tablespace ""XXXX"" does not exist
Steps for playback:
The name of the tablespace must start with a number. The error example is below:
CREATE A TABLESPACE "2c_cfs" AT THE LOCATION "/2c_cfs" WITH (compression=true);
CREATE THE appdb TABLESPACE OF THE "2c_cfs" DATABASE;
\c appdb
create the pg_repack extension;
CREATE A workbook TABLE (
PRIMARY KEY book_id INTEGER,
title text,
integer prices
);
INSERT INTO books(book_id, name, price)
values
('101', 'Jobs', '2000'),
('102', ' Gita', '250'),
('103', ' Ramayana', '354'),
('104', ' Vedas', '268');
delete from books;
pg_repack -U postgres -d appdb -t books --tablespace "2c_cfs" -e --elevation=debug
LOG: (query) SELECT THE pid FROM pg_locks, WHERE locktype = 'relation' And granted = false And relation = 16788 And mode = 'AccessExclusiveLock' AND pid <> pg_backend_pid()
DEBUGGING: There is no competing DDL to cancel.
LOG: (request) SET LOCAL lock_timeout = 100
LOG: (request) LOCK THE public.books TABLE IN SHARED ACCESS MODE
LOG: (request) RESET lock_timeout
LOG: (query) SELECT repack.create_table($1, $2)
LOG: (parameter:0) = 16788
journal: (parameter:1) = "2c_cfs"
ERROR: query failed: ERROR: tablespace ""2c_cfs"" does not exist
CONTEXT: SQL statement "CREATE A TABLE repack.table_16788 WITH A TABLESPACE (oids = false) " ""2c_cfs""" HOW TO SELECT book_id, name,price ONLY FROM public.books WITHOUT DATA"
Function PL/pgSQL repack.create_table(oid,name) line 3 when EXECUTING
DETAILS: the request was: SELECT repack.create_table($1, $2)
DEBUGGING: There are no work items to disable.
LOG: (query) SET search_path TO pg_catalog, pg_temp, public
LOG: (query) SET search_path TO pg_catalog, pg_temp, public
LOG: (request) START ISOLATION LEVEL READING IS FIXED
LOG: (request) SAVE POINT repack_sp1
LOG: (request) SET LOCAL lock_timeout = 100
LOG: (request) LOCK THE public.books TABLE IN EXCLUSIVE ACCESS MODE
LOG: (request) RESET lock_timeout
LOG: (request) SELECT repack.repack_drop($1, $2)
LOG: (parameter:0) = 16788
LOG: (parameter:1) = 3
LOG: (request) COMMIT
The text was updated successfully, but these errors were encountered: