Cmdlets for Amazon Redshift

Build 24.0.9062

UseUIDForStaging Parameter (Connect-Redshift Cmdlet)

Use this property in combination with InsertMode assigned with S3Staging or S3StagingWithIAM. By default the the driver creates staging files with names that prepend the targeted table's name, so the files are overwritten between sessions. When the property is set to True , the provider additionally attaches temporary unique identifiers to these names. It may be required if you use parallel jobs to insert rows into the same table. Thus, the staging files are not overwritten by the jobs. A caveat is that using this property adds to the number of staging files put onto S3 bucket, since the file names are not controlled by the driver between different sessions. In this case you may want to define an AWS S3 policy on the bucket to remove staging files that were stored in a bucket automatically.

Syntax

Connect-Redshift -UseUIDForStaging SwitchParameter

Data Type

bool

Default Value

false

Remarks

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9062