Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit69da310

Browse files
committed
Merge branch 'master' into picky_nodes
2 parents849b833 +2775b5a commit69da310

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎range.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,15 @@ DECLARE
912912
v_condTEXT;
913913
v_plain_partnameTEXT;
914914
v_plain_schemaTEXT;
915+
rel_persistenceCHAR;
915916
BEGIN
917+
/* Ignore temporary tables*/
918+
SELECT relpersistenceFROMpg_catalog.pg_classWHEREoid= p_partition INTO rel_persistence;
919+
IF rel_persistence='t'::CHAR THEN
920+
RAISE EXCEPTION'Temporary table % cannot be used as a partition',
921+
quote_ident(p_partition::TEXT);
922+
END IF;
923+
916924
/* Prevent concurrent partition management*/
917925
PERFORM @extschema@.acquire_partitions_lock();
918926

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp